Exemple #1
0
 static void Main(string[] args)
 {
     using (PokeSiGame game = new PokeSiGame())
     {
         game.Run();
     }
 }
Exemple #2
0
        public PokeSiGame()
        {
            instance = this;

            graphics = new GraphicsDeviceManager(this);

            graphics.PreferredBackBufferWidth  = PreferredWidth;
            graphics.PreferredBackBufferHeight = PreferredHeight;
            graphics.IsFullScreen = IsFullScreen;

            Keyboard = new KeyboardManager(this);
            Mouse    = new MouseManager(this);
            Input.Initilize(this);

            this.IsMouseVisible = true;

            Content.RootDirectory = "Content";

            // Framerate differs between platforms.
            TargetElapsedTime = TimeSpan.FromTicks(TimeSpan.TicksPerSecond / TargetFrameRate);

            screenManager = new ScreenManager(this);
        }
Exemple #3
0
        public PokeSiGame()
        {
            instance = this;

            graphics = new GraphicsDeviceManager(this);

            graphics.PreferredBackBufferWidth = PreferredWidth;
            graphics.PreferredBackBufferHeight = PreferredHeight;
            graphics.IsFullScreen = IsFullScreen;

            Keyboard = new KeyboardManager(this);
            Mouse = new MouseManager(this);
            Input.Initilize(this);

            this.IsMouseVisible = true;

            Content.RootDirectory = "Content";

            // Framerate differs between platforms.
            TargetElapsedTime = TimeSpan.FromTicks(TimeSpan.TicksPerSecond / TargetFrameRate);

            screenManager = new ScreenManager(this);
        }
Exemple #4
0
 public static void Load(PokeSiGame game)
 {
     PixelBlanc = game.Content.Load <Texture2D>("pixelBlanc.png");
 }
Exemple #5
0
 public static void Load(PokeSiGame game)
 {
     PixelBlanc = game.Content.Load<Texture2D>("pixelBlanc.png");
 }
Exemple #6
0
 public static void Initilize(PokeSiGame game)
 {
     Game = game;
 }
Exemple #7
0
 public static void Initilize(PokeSiGame game)
 {
     Game = game;
 }