/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public Camera(Game1 game, Vector3 Position, Matrix Projection,float yaw = 0.0f, float pitch = 0.0f) { _position = Position; Yaw = yaw; Pitch = pitch; Game = game; this.ProjectionMatrix = Projection; }
public Light(Game1 game, Vector3 Position, float power, Effect _effect) { this.Game = game; this.effect = _effect; renderTarget = new RenderTarget2D(game.GraphicsDevice, game.GraphicsDevice.PresentationParameters.BackBufferWidth, game.GraphicsDevice.PresentationParameters.BackBufferHeight, false, SurfaceFormat.Color, DepthFormat.Depth24); lightPos = Position; _vertices[8].Position = lightPos; lightPower = power; }
public Room(Game1 game, PhysicsManager physics) { this.Game = game; this.Physics = physics; this.GameComponents = new List<Interfaces.IComponent>(); }
public Revolving_ball(Game1 game) : base(game, Game1.models["sphere"], Color.Red) { SetWorld(new Vector3(14f, 19.2f, 18f), Quaternion.Identity); //this.SetVelocity(10*Vector3.UnitY + 5 *Vector3.UnitX, Vector3.Zero); }