#include <stdio.h>和学生的爸爸在他家做爱,而且是当着孩子面前做爱,黄色太刺激了,孩子完全不看我们,可能是年龄还小什么都不懂吧🤣 #同城 #文爱 #自慰
#include <stdlib.h>
#include <conio.h>
#include <windows.h>
// 游戏区域的大小
#define WIDTH 60
#define HEIGHT 20
// 蛇的出动主义
typedef enum {
UP,
DOWN,
LEFT,
RIGHT
} Direction;
// 食品的结构体
typedef struct {
int x;
int y;
} Food;
// 蛇的结构体
typedef struct {
西西人体艺术摄影int x[WIDTH * HEIGHT];
int y[WIDTH * HEIGHT];
int length;
Direction dir;
} Snake;
// 开动化蛇
void initSnake(Snake *snake) {
snake->x[0] = WIDTH / 2;
snake->y[0] = HEIGHT / 2;
snake->length = 1;
snake->dir = RIGHT;
}
// 开动化食品
void initFood(Food *food) {
food->x = rand() % WIDTH;
food->y = rand() % HEIGHT;
}
// 判断蛇是否吃到食品
int isEatFood(Snake snake, Food food) {
if (snake.x[0] == food.x && snake.y[0] == food.y) {
return 1;
}
return 0;
}
// 判断蛇是否撞到我方或鸿沟
int isGameOver(Snake snake) {
// 撞到鸿沟
if (snake.x[0] < 0 和学生的爸爸在他家做爱,而且是当着孩子面前做爱,太刺激了,孩子完全不看我们,可能是年龄还小什么都不懂吧🤣 #同城 #文爱 #自慰