Beispiel #1
0
        /// <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)));
        }
Beispiel #2
0
 public MoveState(FuSMAIControl control)
 {
     this.control = control;
 }
Beispiel #3
0
 public MoveState(FuSMAIControl control)
 {
     this.control = control;
 }
Beispiel #4
0
        /// <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)));
        }
Beispiel #5
0
 public EvadeState(FuSMAIControl control)
 {
     this.control = control;
 }
Beispiel #6
0
 public EvadeState(FuSMAIControl control)
 {
     this.control = control;
 }