protected override void Initialize() { base.Initialize(); Pai3D.Initialize(Content); Taku.Initialize(Content); Pai3DPool.Initialize(); Algorithm.Initialize(); Ribou3D.Initialize(Content); Ribou3DPool.Initialize(); SoundEffects.Initialize(); scene = new Scene3D(GraphicsDevice); camera = new Camera3D(); camera.Position = new Vector3(Taku.SIZE / 2, 200, Taku.SIZE * 1.5f); camera.Target = new Vector3(Taku.SIZE / 2, 0, Taku.SIZE / 2); camera.UpVector = Vector3.Up; camera.FieldOfView = MathHelper.ToRadians(45f); camera.AspectRatio = (float)GraphicsDevice.Viewport.Width / GraphicsDevice.Viewport.Height; camera.NearPlaneDistance = 1f; camera.FarPlaneDistance = 1000f; scene.Camera = camera; spriteBatch = new SpriteBatch(GraphicsDevice); spriteFont = Content.Load <SpriteFont>("SpriteFont1"); spriteFont2 = Content.Load <SpriteFont>("SpriteFont2"); gray = Content.Load <Texture2D>("gray"); if (Initialized != null) { Initialized(); } }
protected override void Initialize() { base.Initialize(); Pai3D.Initialize(Content); Taku.Initialize(Content); Pai3DPool.Initialize(); Algorithm.Initialize(); Ribou3D.Initialize(Content); Ribou3DPool.Initialize(); SoundEffects.Initialize(); scene = new Scene3D(GraphicsDevice); camera = new Camera3D(); camera.Position = new Vector3(Taku.SIZE / 2, 200, Taku.SIZE * 1.5f); camera.Target = new Vector3(Taku.SIZE / 2, 0, Taku.SIZE / 2); camera.UpVector = Vector3.Up; camera.FieldOfView = MathHelper.ToRadians(45f); camera.AspectRatio = (float)GraphicsDevice.Viewport.Width / GraphicsDevice.Viewport.Height; camera.NearPlaneDistance = 1f; camera.FarPlaneDistance = 1000f; scene.Camera = camera; spriteBatch = new SpriteBatch(GraphicsDevice); spriteFont = Content.Load<SpriteFont>("SpriteFont1"); spriteFont2 = Content.Load<SpriteFont>("SpriteFont2"); gray = Content.Load<Texture2D>("gray"); if (Initialized != null) Initialized(); }