Example #1
0
        public RightIdleTeno(Teno teno)
        {
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.rightIdleTeno);
            this.teno = teno;
        }
Example #2
0
        public LeftMovingTeno(Teno teno)
        {
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.leftMovingTeno);
            this.teno = teno;
        }
Example #3
0
        public LeftIdleTeno(Teno teno, Game1 game)
        {
            this.game = game;
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.leftIdleTeno);
            this.teno = teno;
        }
Example #4
0
        public RightMovingTeno(Teno teno, Game1 game)
        {
            this.game = game;
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.rightRunTeno);
            this.teno = teno;
        }
Example #5
0
        public DeadTeno(Teno teno)
        {
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.deadTeno);
            this.teno = teno;
            Game1.GetInstance().gameState = new DeadGameState(teno);
        }
Example #6
0
        public DeadTeno(Teno teno, Game1 game)
        {
            this.game = game;
            ISpriteFactory factory = new SpriteFactory();

            if (teno.state.GetType().Equals(new RightCrouchingTeno(teno, game).GetType()) || teno.state.GetType().Equals(new RightFallingTeno(teno, game).GetType()) ||
                teno.state.GetType().Equals(new RightIdleTeno(teno, game).GetType()) || teno.state.GetType().Equals(new RightJumpingTeno(teno, game).GetType()) ||
                teno.state.GetType().Equals(new RightMovingTeno(teno, game).GetType()))
            {
                Sprite = factory.build(SpriteFactory.sprites.rightDeadTeno);
            }
            else
            {
                Sprite = factory.build(SpriteFactory.sprites.leftDeadTeno);
            }
            this.teno      = teno;
            game.gameState = new DeadGameState(teno, game);
        }
Example #7
0
        public GUI(Game1 game)
        {
            this.game = game;
            options   = new List <KeyValuePair <ICommands, String> >();
            font      = Game1.gameContent.Load <SpriteFont>(StringHolder.hudPauseFont);
            factory   = new SpriteFactory();
            coin      = factory.build(SpriteFactory.sprites.star);

            //options.AddRange(new LoadLevelCommand(game.level.levelCurrent, game), "Level 1");
        }
Example #8
0
 public TitleScreenGameState()
 {
     factory = new SpriteFactory();
     logo    = factory.build(SpriteFactory.sprites.title);
     //SoundManager.PlaySong(SoundManager.songs.title);
     game = Game1.GetInstance();
     menu = new GUI(game);
     menu.options.Add(new KeyValuePair <ICommands, String>(new LoadLevelCommand(StringHolder.levelOne), "Level 1"));
     menu.options.Add(new KeyValuePair <ICommands, String>(new LoadLevelCommand(StringHolder.levelTwo), "Level 2"));
     menu.options.Add(new KeyValuePair <ICommands, String>(new LoadLevelCommand(StringHolder.levelThree), "Level 3"));
     menu.options.Add(new KeyValuePair <ICommands, String>(new LoadAchPageCommand(), "Achievements"));
     menu.options.Add(new KeyValuePair <ICommands, String>(new QuitCommand(), "Quit"));
     menu.currentCommand     = menu.options[0].Key;
     game.keyboardController = new TitleKeyController(menu);
 }
Example #9
0
        public RightGiaiTichState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.rightGiaiTich);
        }
Example #10
0
        public RightSmashedDinoState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.walkingRightSquishedDino);
        }
Example #11
0
        public RightLy2State()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.rightLy2);
        }
Example #12
0
        public LeftTallDinoState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.walkingLeftDino);
        }
Example #13
0
        public DeadShellessKS()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.deadShellessKoopa);
        }
Example #14
0
        public LeftDeadGiaiTichState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.leftDeadGiaiTich);
        }
Example #15
0
        public RightWalkingShellessKS()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.rightWalkShellessKoopa);
        }
Example #16
0
        public LeftDeadSXTKState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.leftDeadSXTK);
        }
Example #17
0
 public void MakeVictoryTeno()
 {
     state.Sprite = factory.build(SpriteFactory.sprites.victoryTeno);
 }
Example #18
0
        public DeadDinoState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.leftDeadDino);
        }
Example #19
0
        public LeftDeadHoaDCState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.leftDeadHoaDC);
        }
Example #20
0
        public RightDeadSXTKState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.rightDeadSXTK);
        }