示例#1
0
 public void HandleInput(GameTime gameTime, GInputState Input)
 {
     if (getListState().Count != 0)
     {
         getListState()[getListState().Count - 1].HandleInput(gameTime, Input);
     }
 }
示例#2
0
 public override void UpdateMove(GameTime gameTime, GInputState Input)
 {
     if (this.POSITION.X < 0 || this.POSITION.X > 450)
     {
         this.m_Veloc.X *= -1;
     }
     if (this.POSITION.Y < 0 || this.POSITION.Y > 750)
     {
         this.m_Veloc.Y *= -1;
     }
     base.UpdateMove(gameTime, Input);
 }
示例#3
0
 virtual public void HandleInput(GameTime gameTime, GInputState Input)
 {
 }
示例#4
0
 public override void HandleInput(Microsoft.Xna.Framework.GameTime gameTime, GInputState Input)
 {
     square.UpdateMove(gameTime, Input);
     base.HandleInput(gameTime, Input);
 }
示例#5
0
 virtual public void UpdateMove(GameTime gameTime, GInputState Input)
 {
     m_Position.X += VELOC.X * gameTime.ElapsedGameTime.Milliseconds / 10;
     m_Position.Y += VELOC.Y * gameTime.ElapsedGameTime.Milliseconds / 10;
 }