示例#1
0
        public void Update(GameTime gT, Cursor cur)
        {
            KeyboardState cKS = Keyboard.GetState(); //currentKeyboardState
            UpdateMovement(cKS);
            pKS = cKS;
            base.Update(gT, Speed, Direction);

            Rotation = FindRotationDirection(this, cur);
        }
示例#2
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);
     turret1 = new Turret(this.Content, new Vector2(150, 200));
     turret2 = new Turret(this.Content, new Vector2(400, 400));
     turret3 = new Turret(this.Content, new Vector2(650, 150));
     // TODO: use this.Content to load your game content here
     mainCharacter = new Character(this.Content);
     cursor = new Cursor(this.Content);
 }