Example #1
0
 protected override void Initialize()
 {
     // TODO: Add your initialization logic here
     cam = new FreeCamera(new Vector3(10, 10, 60), 0, 0, GraphicsDevice);
     setupworld();
     groundeffect = new BasicEffect(GraphicsDevice);
     groundeffect.TextureEnabled = true;
     groundeffect.EnableDefaultLighting();
     groundeffect.Texture = Content.Load<Texture2D>("Checker");
     ground = new VertexPositionNormalTexture[6];
     setupground();
     base.Initialize();
 }
Example #2
0
 protected override void Initialize()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     cam = new FreeCamera(new Vector3(10, 10, 60), 0, 0, GraphicsDevice);
     groundeffect = new BasicEffect(GraphicsDevice);
     groundeffect.TextureEnabled = true;
     groundeffect.EnableDefaultLighting();
     groundeffect.Texture = Content.Load<Texture2D>("Checker");
     ground = new VertexPositionNormalTexture[6];
     setupground();
     setupworld();
     addboat();
     base.Initialize();
 }
Example #3
0
 protected override void Initialize()
 {
     // TODO: Add your initialization logic here
     cam = new FreeCamera(new Vector3(10, 10, 60), 0, 0, GraphicsDevice);
     setupworld();
     addparticles();
     thr = new Thread(new ThreadStart(applyphysics));
     thr.Name = "Physics";
     thr.Start();
     //addparticle(new Vector3(0, 30, 0), Color.Red, 10);
     groundeffect = new BasicEffect(GraphicsDevice);
     groundeffect.TextureEnabled = true;
     groundeffect.EnableDefaultLighting();
     groundeffect.Texture = Content.Load<Texture2D>("Checker");
     ground = new VertexPositionNormalTexture[6];
     setupground();
     base.Initialize();
 }
Example #4
0
 protected override void Initialize()
 {
     cam = new FreeCamera(new Vector3(0, 10, 60), 0, 0, GraphicsDevice);
     setupworld();
     addparticles();
 }