null check to squash bug. some gfx
This commit is contained in:
parent
19258268b0
commit
a3f0474ec9
11 changed files with 60 additions and 42 deletions
10
src/global.h
10
src/global.h
|
|
@ -8,6 +8,8 @@ u32 clock;
|
|||
#define SECTION_COUNT 4
|
||||
#define GAME_WRAP (SECTION_SIZE * SECTION_COUNT)
|
||||
|
||||
#define CULL_LIMIT FIX32(240)
|
||||
|
||||
u32 score;
|
||||
#define SCORE_LENGTH 8
|
||||
|
||||
|
|
@ -17,7 +19,7 @@ char debugStr[8];
|
|||
void EMPTY(s16 i){(void)i;}
|
||||
|
||||
bool gameOver;
|
||||
s16 enemyCount;
|
||||
s16 enemyCount, bulletCount;
|
||||
|
||||
// controls
|
||||
struct controls {
|
||||
|
|
@ -44,7 +46,7 @@ struct playerStruct {
|
|||
Vect2D_f32 pos, vel;
|
||||
s16 shotAngle;
|
||||
u8 lives;
|
||||
fix32 camera;
|
||||
fix32 camera, yCamera;
|
||||
Sprite* image;
|
||||
};
|
||||
struct playerStruct player;
|
||||
|
|
@ -71,10 +73,10 @@ struct bullet bullets[BULLET_COUNT];
|
|||
|
||||
|
||||
// enemies
|
||||
#define ENEMY_COUNT 24
|
||||
#define ENEMY_COUNT 16
|
||||
|
||||
struct enemy {
|
||||
bool active;
|
||||
bool active, onScreen;
|
||||
u8 type;
|
||||
s16 angle, off;
|
||||
u32 clock;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue