public GameWorld(ChopperGame game) { _content = game.Content; _spriteBatch = game.SpriteBatch; _graphicsDevice = game.GraphicsDevice; _gameInput = game.GameInput; _camera = new Camera2D(_graphicsDevice); _world = new World(new Vector2(0, 10)); _timeStep = (float)game.TargetElapsedTime.TotalSeconds; _debugView = new DebugViewXNA(_world); _debugView.Flags = 0; _debugView.AppendFlags(DebugViewFlags.Shape); _debugView.AppendFlags(DebugViewFlags.Joint); _debugView.SleepingShapeColor = Color.YellowGreen; _crates = new List<Crate>(); }
public GameWorld(ChopperGame game) { _content = game.Content; _spriteBatch = game.SpriteBatch; _graphicsDevice = game.GraphicsDevice; _gameInput = game.GameInput; _camera = new Camera2D(_graphicsDevice); _world = new World(new Vector2(0, 10)); _timeStep = (float)game.TargetElapsedTime.TotalSeconds; _debugView = new DebugViewXNA(_world); _debugView.Flags = 0; _debugView.AppendFlags(DebugViewFlags.Shape); _debugView.AppendFlags(DebugViewFlags.Joint); _debugView.SleepingShapeColor = Color.YellowGreen; _crates = new List <Crate>(); }