資源簡介
嵌入式下,基于MiniGUI的貪吃蛇小游戲全套源碼,可編譯運行。
代碼片段和文件信息
/*
**?$Id:?russia.cv?1.10?2003/08/15?08:45:46?weiym?Exp?$
**
**?russia.c:?little?game?russia?black
**?
**?Copyright?(C)?2001?~?2002?Song?Lixin?and?others.
**?Copyright?(C)?2003?Feynman?Software.
*/
/*
**??This?source?is?free?software;?you?can?redistribute?it?and/or
**??modify?it?under?the?terms?of?the?GNU?General?Public
**??License?as?published?by?the?Free?Software?Foundation;?either
**??version?2?of?the?License?or?(at?your?option)?any?later?version.
**
**??This?software?is?distributed?in?the?hope?that?it?will?be?useful
**??but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
**??MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the?GNU
**??General?Public?License?for?more?details.
**
**??You?should?have?received?a?copy?of?the?GNU?General?Public
**??License?along?with?this?library;?if?not?write?to?the?Free
**??Software?Foundation?Inc.?59?Temple?Place?-?Suite?330?Boston
**??MA?02111-1307?USA
*/
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?“snake.h“
#define?ETCFILENAME?“RussiaSquare.conf“
#define?DIFFICULTY_HOP??5000
#define?HIGHEST_SCORE?1000000
#define?ID_NEWONE???????????????8000
#define?ID_NEWTWO?? 8010
#define?ID_NEWTWOTEASE??????8011
#define?ID_HIGHSCORE? 8020
#define?ID_EXIT 8040
#define?ID_KEYSARRANGE? 8500
#define?ID_BACKGROUND 8520
#define?ID_ABOUT 9010
#define??WIDTH_LARGEWIN???380
#define??HEIGHT_LARGEWIN??520
#define?RUSSIA_SQUARE_TIMER1?600
#define?RUSSIA_SQUARE_TIMER2?800
//#define?RUSSIA_SQUARE_BASIC_INTERVAL?1100
#define?RUSSIA_SQUARE_HEIGHT?22
#define?RUSSIA_SQUARE_WIDTH?10
#define?RUSSIA_SQUARE_GRID??20
#define?ACTION_INIT? 0
#define?ACTION_PUTIN????1
#define?ACTION_LEFT? 2
#define?ACTION_RIGHT? 3
#define?ACTION_ROTATE 4
#define?ACTION_DOWN?????5
#define?LINE_FULL?0
#define?LINE_EMPTY?1
#define?LINE_PARTLYFULL?2
#define?IDC_STATIC_NUMBER_1?10010
#define?IDC_STATIC_NUMBER_2?10020
#define?IDC_STATIC_NUMBER_3?10030
#define?IDC_STATIC_NUMBER_4?10040
#define?IDC_STATIC_NUMBER_5?10050
#define?IDC_DIFFICULT_1?????10060
#define?IDC_DIFFICULT_2?????10070
#define?IDC_UP_1 ????10080?
#define?IDC_UP_2 ????10090?
#define?IDC_DOWN_1 ????10100?
#define?IDC_DOWN_2 ????10110?
#define?IDC_LEFT_1 ????10120?
#define?IDC_LEFT_2 ????10130?
#define IDC_RIGHT_1 ????10140
#define IDC_RIGHT_2?????????10150
#define?IDC_ROTATE_1????????10160?
#define?IDC_ROTATE_2????????10170?
#define?IDC_PAUSE_1?????????10180?
#define?IDC_PAUSE_2?????????10190?
#define?IDC_START_1?????????10200?
#define?IDC_START_2?????????10210?
#define?IDC_NAMEINPUT???????10220
#define?SETTING_TABLE_ORIGINX?14
#define?SETTING_TABLE_ORIGINY?14
#define?SETTING_TABLE_HEIGHT?30
#define?SETTING_TABLE_WIDTH1
- 上一篇:EC20 4G模塊應用程序編程
- 下一篇:asn1c_v2x_app.rar
評論
共有 條評論