Exemple #1
0
 public Cactus(DesertQuest game, GraphicsDeviceManager graphics, int bound1, int bound2)
 {
     this.game     = game;
     this.graphics = graphics;
     this.bound1   = bound1;
     this.bound2   = bound2;
 }
Exemple #2
0
 public Snake(DesertQuest game, float x, float y, bool up, float furthest, float closest)
 {
     this.game     = game;
     bounds.X      = x;
     bounds.Y      = y;
     this.up       = up;
     this.furthest = furthest;
     this.closest  = closest;
 }
Exemple #3
0
 public Tumbleweed(DesertQuest game, GraphicsDeviceManager graphics, double random1, double random2, float x, float y)
 {
     this.game     = game;
     this.graphics = graphics;
     velocity      = new Vector2(
         (float)(random1),
         (float)(random2)
         );
     //shrinks it to unit vector (same speed, random direction)
     velocity.Normalize();
     bounds.X = x;
     bounds.Y = y;
 }
Exemple #4
0
 public Heart(DesertQuest game, int bound1, int bound2)
 {
     this.game = game;
     bounds.X  = bound1;
     bounds.Y  = bound2;
 }
Exemple #5
0
 static void Main()
 {
     using (var game = new DesertQuest())
         game.Run();
 }
Exemple #6
0
 public Player(DesertQuest game)
 {
     this.game = game;
 }
 public PlayerMessage(DesertQuest game, int type)
 {
     this.game = game;
     this.type = type;
 }
Exemple #8
0
 public Diamond(DesertQuest game, int bound1, int bound2)
 {
     this.game     = game;
     this.bounds.X = bound1;
     this.bounds.Y = bound2;
 }