Пример #1
0
        public Hero(ContentManager content, Level level)
        {
            this.content = content;
            this.level = level;

            spritePlayer.PlayAnimation(idleAnimation);
        }
Пример #2
0
        //        Texture2D monster;
        //        Texture2D ally;
        //        Vector2 monsterPosition;
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);

            this.content = Content;

            level = new Level(content);

            graphics.PreferredBackBufferWidth = Level.windowWidth;
            graphics.PreferredBackBufferHeight = Level.windowHeight;

            Content.RootDirectory = "Content";

            this.IsMouseVisible = true;

            this.content = Content;

            this.IsMouseVisible = true;
        }