⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fan.h

📁 手机开发环境BREW实例
💻 H
字号:
#include "AEEModGen.h"          // Module interface definitions
#include "AEEAppGen.h"          // Applet interface definitions
#include "AEEShell.h"
#include "AEEStdLib.h"	
	typedef struct
	{
		int x;
		int y;
	}point;						//屏幕上的方格位置
	typedef struct
	{
		AEEApplet a;
		int cx;					//屏幕宽
		int cy;					//屏幕高
		int count;				//积分累计
		int index;				//小方块索引(共7种)
		int cor[14][10];		//14X10的小方格
		int R;					//小方块的纵向位子(方格数)
		int H;					//小方块的横向位子(方格数)
		int K;					//同步小方块的产生与绘画
		boolean flag;			//标志小方块是否在移动
		boolean flag2;			//标志是否重画方格与小方块
		int Y;					//标志是否响应按键事件
		RGBVAL TempColor;		//小方块的颜色
		RGBVAL color[14][10];//14X10个方格中被小方块填充的颜色
		point aa[4];			//当前显示的小方块
		point bb[4];			//临时小方块(旋转时用)
		point dd[4];			//上次显示的小方块(当前被清除的小方块)
	}TimerApp;

	//函数定义
	void myDraw(TimerApp * sTimerApp);
	void Star(TimerApp * sTimerApp);
	void Isover(TimerApp * sTimerApp);
	int dop(TimerApp * sTimerApp);
	int Isbottom(TimerApp * sTimerApp);
	int Isout(TimerApp * sTimerApp);
	int round(TimerApp * sTimerApp);
	void clean(TimerApp * sTimerApp);


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -