📄 spritegame.c
字号:
/*===========================================================================
FILE: spritegame.c
SERVICES: Sample applet demonstrating usage of ISprite
DESCRIPTION
This file contains a simple game built with ISprite.
The program flow procedes as follows:
1) SpriteGame_HandleKeyEvent() initializes everything and registers a
timer callback, SpriteGame_NextFrame().
2) The event handler catches key events for LEFT, RIGHT, and SELECT, and
maintains the proper flags in pMe->unKeyState.
3) SpriteGame_NextFrame() does the following:
a) registers itself for another callback to draw the next frame
b) draws the current frame based on the state in pMe
c) calculates the state for the next frame based on the current state
and the key states stored in pMe->unKeyState.
PUBLIC CLASSES:
N/A
Copyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -