Init effects.

This commit is contained in:
Steve 2018-02-05 08:39:02 +00:00
parent 9128fd84e9
commit 43ec9435f2
3 changed files with 6 additions and 4 deletions

View File

@ -29,5 +29,4 @@ extern void drawOutlineRect(int x, int y, int w, int h, int r, int g, int b, int
extern Dev dev;
extern Camera camera;
extern Colors colors;
extern Game game;
extern World world;

View File

@ -39,6 +39,8 @@ static Texture *background;
void initWorld(void)
{
SDL_ShowCursor(SDL_DISABLE);
background = getTexture(world.background);
initQuadtree(&world.quadtree);
@ -50,6 +52,8 @@ void initWorld(void)
initHud();
initWeapons();
initEffects();
world.enemySpawnTimer = (FPS * rrnd(world.minEnemySpawnTime, world.maxEnemySpawnTime));
@ -74,10 +78,8 @@ void initWorld(void)
startMission();
/*
world.bob->x = 166 * MAP_TILE_SIZE;
world.bob->x = 90 * MAP_TILE_SIZE;
world.bob->y = 98 * MAP_TILE_SIZE;
*/
}
static void logic(void)

View File

@ -56,6 +56,7 @@ extern void initHud(void);
extern void initWeapons(void);
extern void initQuadtree(Quadtree *root);
extern void initParticles(void);
extern void initEffects(void);
extern void drawParticles(int plane);
extern App app;