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();
        }
Exemplo n.º 2
0
 public static void Setup(ProgramingGame game)
 {
     GameObject.game = game;
     GameObject.graphics = game.MyGraphics;
     GameObject.imageTable = game.ImageTable;
     GameObject.camera = game.Camera;
 }