목록2D 콘텐츠 제작 (6)
아카이브
유튜브 채널 골드메탈님의 유니티 기초 뱀서라이크 강좌를 보고 구현함 https://youtube.com/playlist?list=PLO-mt5Iu5TeZF8xMHqtT_DhAPKmjF6i3x&si=mv4187lEN3zDNYcN 유니티 기초 뱀서라이크🧟언데드서바이버 요즘 인기많은 장르인 뱀서라이크를 직접 유니티로 개발해보아요! www.youtube.com 원래 세웠던 계획 1일차 : 플레이어 이동, 애니메이션 제작 2일차 : 맵 만들기 3일차 : 몬스터 만들고 소환 4일차 (주말) : 무기 만들고 공격 시스템 구현 5일차 (주말) : 몬스터 처치, 기본 UI 만들기 6일차 : 능력 업그레이드 구현 7일차 : 플레이어 무기 장착 표현, 레벨업 시스템 만들기 8일차 : 게임 시작 / 종료 UI 만들기 직접 만..

자동 원거리 공격 구현 Enemy 레이어 추가 후 프리팹에 지정 몬스터 스캔을 담당할 스크립트 추가 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Scanner : MonoBehaviour { //범위, 레이어, 스캔 결과 배열, 가장 가까운 목표를 담을 변수 생성 public float scanRange; public LayerMask targetLayer; public RaycastHit2D[] targets; public Transform nearestTarget; void FixedUpdate() //스캔을 하기위한 로직 { //CircleCastAll: 원형의 캐스트를 쏘고 모든..

소환 레벨 적용 근접무기 구현 프리팹을 만든다 Bullet.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bullet : MonoBehaviour { public float damage; public int per; public void Init(float damage, int per) { this.damage = damage; this.per = per; } } 충돌로직 작성 Bullet 컴포넌트로 접근하여 데미지를 가져와 피격계산 남은 체력을 조건으로 피격과 사망 나누기 사망할 땐 SetActive 함수를 통한 비활성화 Enemy.cs using System.Collections..

몬스터 만들기 Enemy.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy : MonoBehaviour { public float speed; public Rigidbody2D target; bool isLive = true; Rigidbody2D rigid; SpriteRenderer spriter; // Start is called before the first frame update void Awake() { rigid = GetComponent(); spriter = GetComponent(); } // Update is called once per frame void..