/+junk/invaders_vala

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/invaders_vala

« back to all changes in this revision

Viewing changes to src/Game.vala

  • Committer: Gusatv Hartvigsson
  • Date: 2012-01-02 15:07:52 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20120102150752-jrxhb820jds5r1q5
* Started to work on a helper library (Under LGPL)
  GameHelper namespace
* Added a README
* Added a Readmed for the new HelperLibrary...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
using SDL;
2
2
using SDLGraphics;
3
3
using Gee;
 
4
using GameHelper;
4
5
 
5
6
namespace invadersGame{
6
7
  
20
21
    private uint32 fpsTimer;
21
22
    
22
23
    private unowned SDL.Screen screen;
23
 
    //private GLib.Rand rand = new GLib.Rand();
24
24
    
25
25
    private bool eventBool[322];
26
26
    private bool isRun;
27
27
    
28
28
    public static int getRandom(int i){
29
29
      /**getRandom
30
 
       * Returns a value between 0 and i
31
 
       *
 
30
       * Returns a value between 0 and i.
 
31
       * (This is probobly not the most efficient to do this).
32
32
       */
33
33
      GLib.Rand rand = new GLib.Rand();
34
34
      return rand.int_range(0, i);