00001 00005 // /** 00006 // *@defgroup maingameh maingame.h 00007 // *Updates the game state every frame, performs all animations and game logic 00008 // *@{ 00009 // */ 00010 00011 /*----------------------------------------------------------------------------------------------------------*/ 00012 00013 void update(void); 00014 00015 /*----------------------------------------------------------------------------------------------------------*/ 00016 00017 void update_background(void); 00018 00019 /*----------------------------------------------------------------------------------------------------------*/ 00020 00021 void update_stickman(void); 00022 00023 /*----------------------------------------------------------------------------------------------------------*/ 00024 00025 void update_lives(void); 00026 00027 /*----------------------------------------------------------------------------------------------------------*/ 00028 00029 void update_score(ALLEGRO_BITMAP *image, float x, float y, int nflags, ALLEGRO_COLOR color); 00030 00031 /*----------------------------------------------------------------------------------------------------------*/ 00032 00033 void update_survivaltime(ALLEGRO_BITMAP *image, float x, float y, int nflags, ALLEGRO_COLOR color); 00034 00035 /*----------------------------------------------------------------------------------------------------------*/ 00036 00037 void update_ameans(SPRITESPTR amean); 00038 00039 /*----------------------------------------------------------------------------------------------------------*/ 00040 00041 void update_brickwall(SPRITESPTR brickwall); 00042 00043 /*----------------------------------------------------------------------------------------------------------*/ 00044 00045 void update_steelwall(SPRITESPTR steelwall); 00046 00047 /*----------------------------------------------------------------------------------------------------------*/ 00048 00049 void update_clamp(SPRITESPTR clamp); 00050 00051 /*----------------------------------------------------------------------------------------------------------*/ 00052 00053 void update_spikes(SPRITESPTR spikes); 00054 00055 /*----------------------------------------------------------------------------------------------------------*/ 00056 00057 void update_fist(SPRITESPTR fist); 00058 00059 /*----------------------------------------------------------------------------------------------------------*/ 00060 00061 void update_raw(SPRITESPTR raw); 00062 00063 /*----------------------------------------------------------------------------------------------------------*/ 00064 00065 void update_plant(SPRITESPTR plant); 00066 00067 /*----------------------------------------------------------------------------------------------------------*/ 00068 00069 void update_clouds(void); 00070 00071 /*----------------------------------------------------------------------------------------------------------*/ 00072 00073 void update_ground(void); 00074 00075 /*----------------------------------------------------------------------------------------------------------*/ 00076 00077 void update_sprites(void *ptr, void* unused); 00078 00079 /*----------------------------------------------------------------------------------------------------------*/ 00080 00081 void logic(void); 00082 00083 /*----------------------------------------------------------------------------------------------------------*/ 00084 00085 void collision_end_win(cpSpace *Space, void *obj, void *unused); 00086 00087 /*----------------------------------------------------------------------------------------------------------*/ 00088 00089 void collision_end_lose(cpSpace *Space, void *obj, void *unused); 00090 00091 /*----------------------------------------------------------------------------------------------------------*/ 00092 00093 void maingame_cleanup(void); 00094 00095 /*----------------------------------------------------------------------------------------------------------*/ 00096 00097 // /** 00098 // *@} 00099 // */