public Cactus(DesertQuest game, GraphicsDeviceManager graphics, int bound1, int bound2) { this.game = game; this.graphics = graphics; this.bound1 = bound1; this.bound2 = bound2; }
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; }
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; }
public Heart(DesertQuest game, int bound1, int bound2) { this.game = game; bounds.X = bound1; bounds.Y = bound2; }
static void Main() { using (var game = new DesertQuest()) game.Run(); }
public Player(DesertQuest game) { this.game = game; }
public PlayerMessage(DesertQuest game, int type) { this.game = game; this.type = type; }
public Diamond(DesertQuest game, int bound1, int bound2) { this.game = game; this.bounds.X = bound1; this.bounds.Y = bound2; }