예제 #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;
 }