gfx, shit
This commit is contained in:
parent
364a34ce33
commit
0151304d05
8 changed files with 140 additions and 33 deletions
|
|
@ -23,7 +23,9 @@ u32 score;
|
|||
char debugStr[8];
|
||||
void EMPTY(s16 i){(void)i;}
|
||||
|
||||
bool started;
|
||||
bool gameOver;
|
||||
bool paused, isPausing;
|
||||
s16 enemyCount, bulletCount;
|
||||
|
||||
// controls
|
||||
|
|
@ -98,16 +100,19 @@ struct enemy enemies[ENEMY_COUNT];
|
|||
#define HUMAN_WALKING 0
|
||||
#define HUMAN_CARRIED 1
|
||||
#define HUMAN_FALLING 2
|
||||
#define HUMAN_COLLECTED 3
|
||||
|
||||
struct human {
|
||||
bool active;
|
||||
u8 state;
|
||||
s16 carriedBy;
|
||||
s16 trailIndex;
|
||||
Vect2D_f32 pos, vel;
|
||||
Sprite* image;
|
||||
};
|
||||
struct human humans[HUMAN_COUNT];
|
||||
bool humanBeingCarried;
|
||||
s16 collectedCount;
|
||||
|
||||
void killHuman(u8 i){
|
||||
if(humans[i].state == HUMAN_CARRIED && humans[i].carriedBy >= 0){
|
||||
|
|
@ -152,7 +157,7 @@ void killEnemy(u8 i){
|
|||
humans[h].state = HUMAN_FALLING;
|
||||
humans[h].carriedBy = -1;
|
||||
humans[h].vel.x = 0;
|
||||
humans[h].vel.y = FIX32(2);
|
||||
humans[h].vel.y = FIX32(3);
|
||||
}
|
||||
humanBeingCarried = FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue