Ejemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (GibbonSwinger game = new GibbonSwinger())
     {
         game.Run();
     }
 }
Ejemplo n.º 2
0
        public ScrollingBackground(GibbonSwinger aGame)
        {
            game = aGame;

            bgSprite = game.Content.Load <Texture2D>("scrollbg");
            this.Restart();
        }
Ejemplo n.º 3
0
        public GameStartScreen(GibbonSwinger game)
        {
            this.game    = game;
            lastState    = Keyboard.GetState();
            lastPadState = GamePad.GetState(PlayerIndex.One);
            gameDiff     = easy;

            startbg = game.Content.Load <Texture2D>("startscreen");
        }
Ejemplo n.º 4
0
        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");
        }
Ejemplo n.º 5
0
        public EnterTextScreen(GibbonSwinger game)
        {
            this.game = game;

            currentIndices    = new int[3];
            currentIndices[0] = (int)'A';
            currentIndices[1] = (int)'A';
            currentIndices[2] = (int)'A';

            updateOutput();
        }
Ejemplo n.º 6
0
        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));
            }
        }
Ejemplo n.º 7
0
 public GameOverScreen(GibbonSwinger game)
 {
     this.game = game;
     exitCase  = 1;
 }
Ejemplo n.º 8
0
 public HealthBar(GibbonSwinger aGame)
 {
     game            = aGame;
     healthBarFill   = game.Content.Load <Texture2D>("HealthBarFill");
     healthBarBorder = game.Content.Load <Texture2D>("HealthBarBorder");
 }