/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (GibbonSwinger game = new GibbonSwinger()) { game.Run(); } }
public ScrollingBackground(GibbonSwinger aGame) { game = aGame; bgSprite = game.Content.Load <Texture2D>("scrollbg"); this.Restart(); }
public GameStartScreen(GibbonSwinger game) { this.game = game; lastState = Keyboard.GetState(); lastPadState = GamePad.GetState(PlayerIndex.One); gameDiff = easy; startbg = game.Content.Load <Texture2D>("startscreen"); }
public Gibbon(GibbonSwinger aGame) { game = aGame; r = game.r; this.Restart(1); gibbonSprite = game.Content.Load <Texture2D>("gibbon_body"); gibbonArm = game.Content.Load <Texture2D>("gibbon_arm2"); circleSprite = game.Content.Load <Texture2D>("circleSprite"); rectSprite = game.Content.Load <Texture2D>("rectSprite"); }
public EnterTextScreen(GibbonSwinger game) { this.game = game; currentIndices = new int[3]; currentIndices[0] = (int)'A'; currentIndices[1] = (int)'A'; currentIndices[2] = (int)'A'; updateOutput(); }
public Leaderboard(GibbonSwinger game, String aTitle, int aDrawCenter) { this.game = game; this.title = aTitle; this.drawCenter = aDrawCenter; leaders = new List <Leader>(num_to_follow); for (int i = 0; i < num_to_follow; i++) { leaders.Add(new Leader("LIMS", (float)20 - 2 * i)); } }
public GameOverScreen(GibbonSwinger game) { this.game = game; exitCase = 1; }
public HealthBar(GibbonSwinger aGame) { game = aGame; healthBarFill = game.Content.Load <Texture2D>("HealthBarFill"); healthBarBorder = game.Content.Load <Texture2D>("HealthBarBorder"); }