spritegame.c

来自「这是一个运用SPRITE的做成的超级马莉的游戏,游戏当中很好的运用的层的概念.」· C语言 代码 · 共 25 行

C
25
字号
/*===========================================================================

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 + =
减小字号Ctrl + -
显示快捷键?