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