Esempio n. 1
0
        public BaseGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            IsFixedTimeStep       = false;
            graphics.SynchronizeWithVerticalRetrace = false;
            //TODO: fullscreen on alt+enter
            //graphics.IsFullScreen = true;

            cam = new Camera2d();
            if (AndroidStuff.RunningOnAndroid)
            {
                cam.Pos       = new Vector2(7000f, 5500f);
                cam.Zoom      = 0.1f;
                ScorePosition = new Vector2(4500, 7000);
            }
            else
            {
                cam.Pos       = new Vector2(7000f, 4500f);
                cam.Zoom      = 0.11f;
                ScorePosition = new Vector2(4500, 6250);
            }

            World = new World(cam);
        }
Esempio n. 2
0
 public InputRepository(Camera2d Camera2d)
 {
     this.Camera2d = Camera2d;
 }
Esempio n. 3
0
 public World(Camera2d Camera2d)
 {
     this.Camera2d = Camera2d;
     PlayerInputs  = new InputRepository(Camera2d);
 }