~gustav-hartvigsson/+junk/invaders_vala

« back to all changes in this revision

Viewing changes to src/ResourceHandler.vala

  • Committer: Gustav Hartvigsson
  • Date: 2012-10-09 21:59:24 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20121009215924-bsntg7a4ocaxkhoh
Implimented Time based movement...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}