Project
2D PlatForm게임
https://www.youtube.com/watch?v=GHUJMXtHKL0&list=PLO-mt5Iu5TeZGR_y6mHmTWyo0RyGgO0N_&index=8 유튜버 골드메탈님의 프로젝트 영상을 보며 제작 깃허브 링크 https://github.com/jaeil777/study_unity/tree/main/Unity%202D%20Learn Player 기본적으로 좌우로 이동과 점프를 가능하게 구현함 float h = Input.GetAxisRaw("Horizontal"); rigid.AddForce(Vector2.right * h, ForceMode2D.Impulse); //좌우방향을 사용해서 이동 if (rigid.velocity.x > maxSpeed) { rigid.velocity = new ..
2023. 4. 21. 22:06