File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ SRC_EXT = c
8
8
# Path to the source directory, relative to the makefile
9
9
SRC_PATH = .
10
10
# Space-separated pkg-config libraries used by this project
11
- LIBS = sdl12_compat SDL_mixer
11
+ LIBS = sdl12_compat SDL_mixer SDL_image
12
12
# General compiler flags
13
13
COMPILE_FLAGS = -D PC_VERSION -w
14
14
# Additional release-specific flags
Original file line number Diff line number Diff line change 1
- #include "SDL.h"
1
+ #pragma once
2
+
2
3
#include <stdio.h>
3
4
#include <stdlib.h>
4
5
6
+ #include "SDL.h"
7
+
5
8
#define MAX_SPRITE 500
6
9
#define MAX_IMAGE 30
7
10
#define MAX_TILE 500
31
34
#define GP2X_BUTTON_VOLDOWN (17)
32
35
#endif
33
36
34
- SDL_Surface * screen ;
35
- SDL_Surface * imagesBMP [10 ];
37
+ extern SDL_Surface * screen ;
38
+ extern SDL_Surface * imagesBMP [10 ];
36
39
extern int mapTiles [MAX_MAP ][MAX_MAP_WIDTH ][MAX_MAP_HEIGHT ];
37
40
extern int currentWorldMapX [MAX_MAP ];
38
41
extern int currentWorldMapY [MAX_MAP ];
You can’t perform that action at this time.
0 commit comments