Beispiel #1
0
 static void Main(string[] args)
 {
     using (PokeSiGame game = new PokeSiGame())
     {
         game.Run();
     }
 }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #4
0
 public static void Load(PokeSiGame game)
 {
     PixelBlanc = game.Content.Load <Texture2D>("pixelBlanc.png");
 }
Beispiel #5
0
 public static void Load(PokeSiGame game)
 {
     PixelBlanc = game.Content.Load<Texture2D>("pixelBlanc.png");
 }
Beispiel #6
0
 public static void Initilize(PokeSiGame game)
 {
     Game = game;
 }
Beispiel #7
0
 public static void Initilize(PokeSiGame game)
 {
     Game = game;
 }