Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
GameWnd.h
Package: pfly523.rar [view]
Upload User: shyhai1508
Upload Date: 2007-06-11
Package Size: 48k
Code Size: 1k
Category:
BREW
Development Platform:
Visual C++
- #ifndef _GAMEWND_H_
- #define _GAMEWND_H_
- #include "AEESprite.h"
- typedef struct _PflyApp PflyApp;
- typedef struct _GameWnd GameWnd;
- struct _GameWnd{
- PflyApp* pMe;
- ISprite* pISprite;
- AEESpriteCmd rgCmds[14]; // wall sprites 2*4 + plane + 4 score sprites + terminator
- AEETileMap rgMaps[2]; // one background layers + terminator
- AEECallback cbTimer;
- AEEPoint frameStart; //屏幕的逻辑起始坐标
- AEEPoint frameMax; //屏幕的逻辑最大长宽
- byte direction; //飞行角度
- int layer; //游戏分数
- int crashCounter; //crash之后的计数器
- boolean keyRight; //右键是否按下
- boolean keyLeft; //左键是否按下
- boolean isCrash; //是否分解
- uint16 BackGroundLayer[16];//Tile 索引数组
- };
- boolean GameWnd_New(GameWnd *pthis, PflyApp* pMe);
- boolean GameWnd_Open(GameWnd *pthis);
- void GameWnd_Close(GameWnd *pthis);
- boolean GameWnd_HandleEvent(GameWnd* pthis, AEEEvent eCode, uint16 wParam, uint32 dwParam);
- void GameWnd_Free(GameWnd* pthis);
- #endif