Misc fixes and code tidy.
This commit is contained in:
parent
f2c8359e59
commit
84c934a1cb
Binary file not shown.
Before Width: | Height: | Size: 4.2 MiB After Width: | Height: | Size: 4.2 MiB |
|
@ -33,8 +33,6 @@ extern void drawWidgets(void);
|
|||
extern Texture *getTexture(const char *filename);
|
||||
extern Atlas *getImageFromAtlas(char *filename);
|
||||
extern void doWidgets(void);
|
||||
extern void drawWidgets(void);
|
||||
extern void blitRect(SDL_Texture *texture, int x, int y, SDL_Rect *srcRect, int center);
|
||||
extern void blitRectScaled(SDL_Texture *texture, int x, int y, int w, int h, SDL_Rect *srcRect, int center);
|
||||
extern void saveConfig(void);
|
||||
extern void drawText(int x, int y, int size, int align, SDL_Color c, const char *format, ...);
|
||||
|
@ -44,4 +42,3 @@ extern void playSound(int snd, int ch);
|
|||
|
||||
extern App app;
|
||||
extern Colors colors;
|
||||
extern Game game;
|
||||
|
|
|
@ -31,7 +31,6 @@ extern Texture *getTexture(const char *filename);
|
|||
extern Atlas *getImageFromAtlas(char *filename);
|
||||
extern void blitRectScaled(SDL_Texture *texture, int x, int y, int w, int h, SDL_Rect *srcRect, int center);
|
||||
extern void drawText(int x, int y, int size, int align, SDL_Color c, const char *format, ...);
|
||||
extern void drawLine(int x1, int y1, int x2, int y2, int r, int g, int b, int a);
|
||||
extern float limit(float i, float low, float high);
|
||||
extern void playSound(int snd, int ch);
|
||||
extern int isAcceptControl(void);
|
||||
|
|
|
@ -34,7 +34,6 @@ extern void clearControl(int type);
|
|||
extern int collision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2);
|
||||
extern Texture *getTexture(const char *filename);
|
||||
extern Atlas *getImageFromAtlas(char *filename);
|
||||
extern void blitRect(SDL_Texture *texture, int x, int y, SDL_Rect *srcRect, int center);
|
||||
extern void textSize(const char *text, int size, int *w, int *h);
|
||||
|
||||
extern App app;
|
||||
|
|
|
@ -34,7 +34,7 @@ void initAtlasTest(void)
|
|||
|
||||
loadGame();
|
||||
|
||||
test = 1;
|
||||
test = 3;
|
||||
|
||||
switch (test)
|
||||
{
|
||||
|
@ -50,5 +50,12 @@ void initAtlasTest(void)
|
|||
case 2:
|
||||
initHub();
|
||||
break;
|
||||
|
||||
case 3:
|
||||
STRNCPY(game.worldId, "beachFront1", MAX_NAME_LENGTH);
|
||||
initWorld();
|
||||
stopMusic();
|
||||
initPostMission();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,8 +24,8 @@ extern void initWorld(void);
|
|||
extern void initHub(void);
|
||||
extern void loadGame(void);
|
||||
extern void initOptions(void);
|
||||
extern void loadMusic(char *filename);
|
||||
extern void playMusic(int loop);
|
||||
extern void initPostMission(void);
|
||||
extern void stopMusic(void);
|
||||
|
||||
extern Dev dev;
|
||||
extern Game game;
|
||||
|
|
Loading…
Reference in New Issue