贪吃蛇
网络刺客伍六七
1
展开
-
c++编写极快贪吃蛇
#include <windows.h>#include <stdlib.h>#include <conio.h>#include <time.h>#include <cstring>#include <cstdio>#include <iostream>#define N 22using namespace std;int gameover;int x1, y1111; // 随机出米int原创 2022-01-18 17:00:56 · 143 阅读 · 0 评论 -
pygame编写贪吃蛇
import pygame, sys, random, timefrom pygame.locals import * # 从pygame模块导入常用的函数和常量#定义颜色变量black_colour = pygame.Color(28, 56, 20)white_colour = pygame.Color(255, 144, 20)red_colour = pygame.Color(255,34 , 20)grey_colour = pygame.Color(150, 150, 150)#原创 2020-10-05 19:36:19 · 287 阅读 · 1 评论