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