1. Isomatric Tilemap

화면 캡처 2023-06-15 114627.png

isomatric 타일맵은 평지, 언덕, 콜라이더 타일맵으로 구분한다.

화면 캡처 2023-06-15 114553.png

콜라이더 타일 표시

  1. 캐릭터

    화면 캡처 2023-06-15 114850.png

https://assetstore.unity.com/account/assets 에셋스토어 링크

화면 캡처 2023-06-15 115135.png

화면 캡처 2023-06-15 115143.png

Idle 상태 / 위 & 아래 이동 상태

        moveH = Input.GetAxisRaw("Horizontal"); // 가로 세로 입력값을 받아 변수에 대입
        moveV = Input.GetAxisRaw("Vertical");

        if (moveH > 0)  //이동 키 입력값에 따라 플레이어 스프라이트 회전
        {
            characterRenderer.flipX = false;
        }
        else if(moveH < 0)
        {
            characterRenderer.flipX = true;
        }

        if (Mathf.Abs(rb.velocity.y) > 0) // 플레이어의 y velocity의 절대값이 0 이상이면 위아래 이동 애니메이션 재생 
        {
            anim.SetBool("Direction", true);
        }
        else
        {
            anim.SetBool("Direction", false);
        }

private void FixedUpdate() // 가로 세로 입력값으로 리지드바디2D의 속도를 직접적으로 변화시킴
    {
        rb.velocity = new Vector2(moveH, moveV).normalized * moveSpeed;
    }
  1. Decoration

화면 캡처 2023-06-15 120102.png

데코레이션이 있는 상태

화면 캡처 2023-06-15 120115.png

데코레이션이 없는 상태

  1. 추가기능 1

화면 캡처 2023-06-15 120239.png