Ejemplo n.º 1
0
        public ProgramingGame()
        {
            Graphics = new GraphicsDeviceManager(this);
            MyGraphics = new Graphics();
            Content.RootDirectory = "Content";

            Graphics.PreferredBackBufferWidth = 640;
            Graphics.PreferredBackBufferHeight = 480;

            IsFixedTimeStep = true;
            IsMouseVisible = true;

            random = new Random();
        }
Ejemplo n.º 2
0
 public static void Setup(ProgramingGame game)
 {
     GameObject.game = game;
     GameObject.graphics = game.MyGraphics;
     GameObject.imageTable = game.ImageTable;
     GameObject.camera = game.Camera;
 }