自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 python1~6

2022-04-02 23:21:36 732

原创 吃食物增加长度

#include<stdio.h>#include<stdlib.h>#include<conio.h>#include<windows.h>#define High 20//游戏画面尺寸#define Width 30//全局变量int moveDirection;//小蛇移动位置,上下左右分别用1、2、3、4表示int food_x,food_y;//食物的位置int canvas[High][Width] ..

2022-03-29 22:12:38 50

原创 判断游戏失败

#include<stdio.h>#define High 20#define Width 30int moveDirection;int canvas[High][Width] = {0};void moveSnakeByDirection(){ int i,j; for (i=1;i<High-1;i++) for(j=1;j<Width-1;j++) if(canvas[i][j>0]) ...

2022-03-26 22:36:44 3818

原创 玩家控制小蛇移动

#include<stdio.h>#include<stdlib.h>#include<conio.h>#include<windows.h>#define High 20//游戏画面尺寸#define Width 30//全局变量int moveDirection;//小蛇移动的方向,上、下、左、右分别用1、2、3、4表示int canvas[High][Width] = {0};//二维数组存储游戏画布中对应元素//0为空格,-1为边框

2022-03-22 16:50:21 4288

原创 1.构造小蛇

#include<stdio.h>#include<stdlib.h>#include<conio.h>#include<windows.h>#define High 20 //游戏画面尺寸#define Width 30//全局变量int canvas[High][Width] = {0};//二维数组存储游戏画布中对应的元素 //0为空格,-1为边框#,1为蛇头@,大于1的正数为蛇身* void gotoxy(int x,...

2022-03-17 21:36:56 4091

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除