bzr branch
http://gegoxaren.bato24.eu/bzr/%2Bjunk/invaders_vala
9
by Gustav Hartvigsson
Implimented Time based movement... |
1 |
using SDL; |
2 |
using SDLGraphics; |
|
3 |
using SDLImage; |
|
4 |
||
5 |
namespace invadersGame{ |
|
6 |
class ResourceHandler { |
|
7 |
|
|
8 |
public static SDL.Surface player = null; |
|
9 |
public static SDL.Surface invader = null; |
|
10 |
public static SDL.Surface explosion = null; |
|
11 |
public static SDL.Surface bullet = null; |
|
12 |
public static SDL.Surface image_null = null; |
|
13 |
|
|
14 |
public static void init () { |
|
15 |
player = SDLImage.load("./media/images/player.png"); |
|
16 |
invader = SDLImage.load("./media/images/invader.png"); |
|
17 |
explosion = SDLImage.load("./media/images/explosion.png"); |
|
18 |
bullet = SDLImage.load("./media/images/bullet.png"); |
|
19 |
image_null = SDLImage.load("./media/images/null.png"); |
|
20 |
} |
|
21 |
|
|
22 |
|
|
23 |
} |
|
24 |
}
|