コード例 #1
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
コード例 #2
0
        public static void Initialize(Game1 game1, SpriteBatch spriteBatch, ContentManager manager, GraphicsDevice device)
        {
            graphics = device;
            game = game1;
            sB = spriteBatch;
            Content = manager;

            rand = new Random();
            dot = new Texture2D(device, 1, 1);
            dot.SetData<Color>(new Color[1] { Color.White });
            font = Content.Load<SpriteFont>("Font1");
        }