笔记
张朝阳吖
这个作者很懒,什么都没留下…
展开
-
2020-03-10
#导入pygame游戏模块 import timeimport sysfrom pygame.locals import initChessList = [] #保存的是棋盘坐标initRole = 1 #1:代表白棋; 2:代表黑棋resultFlag = 0 #结果标志class StornPoint(): def init(self,x,y,value): ‘’’ ...原创 2020-03-10 17:52:24 · 90 阅读 · 0 评论 -
2020-03-09
贪吃蛇代码 #include “stdafx.h” #include <stdio.h>#include <windows.h>#include <time.h>#include <conio.h>#include <stdlib.h> //方向键的ASCLL值:上72,左75,右77,下80//背景颜色的代码: 0=黑色 1蓝色 2 ...原创 2020-03-09 20:32:32 · 73 阅读 · 0 评论 -
2020-03-09
#include<graphics.h> #include<stdlib.h>#include<dos.h>#define LEFT 0x4b00#define RIGHT 0x4d00#define DOWN 0x5000#define UP 0x4800#define ESC 0x011bint i,key;int score=0;int gamespeed...原创 2020-03-09 20:18:39 · 127 阅读 · 0 评论