1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
using SDL;
using SDLGraphics;
using SDLImage;
namespace invadersGame{
class ResourceHandler {
public static SDL.Surface player = null;
public static SDL.Surface invader = null;
public static SDL.Surface explosion = null;
public static SDL.Surface bullet = null;
public static SDL.Surface image_null = null;
public static void init () {
player = SDLImage.load("./media/images/player.png");
invader = SDLImage.load("./media/images/invader.png");
explosion = SDLImage.load("./media/images/explosion.png");
bullet = SDLImage.load("./media/images/bullet.png");
image_null = SDLImage.load("./media/images/null.png");
}
}
}
|