Exemplo n.º 1
0
        public MainScene(ContentManager content, GraphicsDeviceManager graphicsManager)
        {
            Stuff.Initialize(content, graphicsManager);
            graphics = graphicsManager;
            onScreenMessages = new OnScreenMessages();
            Camera2d.Position = Stuff.ScreenCenter;
            input = new Input();
            characters = new List<Character>();
            player = new Player(characters);

            debugTiles = new List<Sprite>();
            for (int i = -10; i < 30; i++)
            {
                Sprite s = new Sprite("SpriteSheet");
                s.Source = new Rectangle(1 * 150, 9 * 150, 150, 150);
                s.Position = new Vector2(i * 150, 400);
                debugTiles.Add(s);
            }
            for (int i = 0; i < 100; i++)
            {
                Sprite tempSprite = new Sprite("SpriteSheet");
                tempSprite.Source = new Rectangle(11 * 150, 9 * 150, 150, 150);
                tempSprite.Position = new Vector2(150*i, 250 + (-150*i));
                debugTiles.Add(tempSprite);
            }
        }
Exemplo n.º 2
0
 public void ResetGame()
 {
     characters = new List<Character>();
     player = new Player(characters);
 }