예제 #1
0
 public ShipStateMoving(
     Settings settings, Ship ship,
     [Inject("Main")]
     Camera mainCamera)
     : base(ship)
 {
     _settings = settings;
     _mainCamera = mainCamera;
 }
예제 #2
0
파일: ShipState.cs 프로젝트: Aszan/Zenject
 public ShipState(Ship ship)
 {
     _ship = ship;
 }
예제 #3
0
파일: Game1.cs 프로젝트: randoro/Asteroids
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            ship = Content.Load<Texture2D>("ship");
            font = Content.Load<SpriteFont>("font");
            objList = new List<GameObject>();
            controlShip = new Ship(new Vector2(500, 500));
            AIcontrol = new FuSMAIControl();
            // TODO: use this.Content to load your game content here

            //objList.Add(new Ball(new Vector2(800, 400)));
            //objList[0].currentVelocity = new Vector2(-2.1f, 0.0f);
            //objList.Add(new Ball(new Vector2(300, 300)));
        }
예제 #4
0
 public ShipStateDead(Settings settings, Ship ship, IInstantiator gameObjectCreator)
     : base(ship)
 {
     _settings = settings;
     _gameObjectCreator = gameObjectCreator;
 }
예제 #5
0
 public GameController(Ship ship, AsteroidManager asteroidSpawner)
 {
     _asteroidSpawner = asteroidSpawner;
     _ship = ship;
 }
예제 #6
0
 public ShipStateWaitingToStart(Settings settings, Ship ship)
     : base(ship)
 {
     _settings = settings;
 }