예제 #1
0
        public Controller(PartMenu partsMenu)
        {
            prevState      = new KeyboardState( );
            this.partsMenu = partsMenu;

            tillBulletFire = 0;
            timeSwordUp    = 0;
        }
예제 #2
0
        public Display(GraphicsDevice graphics, ContentManager content,
                       GameWindow gameWindow, PartMenu partsMenu)
        {
            window         = gameWindow;
            this.partsMenu = partsMenu;

            upperLeft     = new Vector2(0, 0);
            lastPlayerPos = new Vector2(0, 0);

            spriteBatch  = new SpriteBatch(graphics);
            spriteFont   = content.Load <SpriteFont>("GameFont");
            tileTextures = new Dictionary <Tile, Texture2D>( );

            LoadTileTextures(content);
            LoadObjectTextures(content);
            LoadActorTextures(content);
        }