示例#1
0
文件: Player.cs 项目: friit/Jo-ivy
        public override void Update(GameTime gameTime)
        {

            playerRun.position = playerPostion;
            playerRun.active = true;
            currentAnimation = playerRun;
            currentAnimation.Update(gameTime);

            if (Input.InputManager.Instance.KeyDown(Keys.Right)){
                playerPostion.X += playerMoveSpeed; 
            }
            
               // currentAnimation = playerIdle;
        }
示例#2
0
文件: Player.cs 项目: friit/Jo-ivy
 public void Init(Animation run)
 {
     playerPostion = Vector2.Zero;
     playerRun = run;
 }