목록전체 글 (19)
DINO NET
Git repository url https://github.com/Gongju-Unity-Bootcamp/HANDSOMEDINO GitHub - Gongju-Unity-Bootcamp/HANDSOMEDINO: 잘생김디노 잘생김디노. Contribute to Gongju-Unity-Bootcamp/HANDSOMEDINO development by creating an account on GitHub. github.com 2023.11.15 11.11 ~ 11.12: 게임 로 레퍼런스 연구 및 정리. 2D 횡스크롤 플랫포머 장르의 대략적인 구상을 시작. 11.15: 본격적인 협업 시작. 게임의 전체적인 스토리 라인 및 진행 방향을 기획. 그에 대한 Issue를 정리. 처음에는 게임을 크게 세 덩어리로 나누..
QuitButton.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class QuitButton : MonoBehaviour { // Start is called before the first frame update void Start() { Button button = GetComponent(); button.onClick.AddListener(ExitGame); } void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { ExitGame(); } } public void ExitGame() { #if UNIT..
https://www.notion.so/dino-universe/Git-a72b3e76e04f4baca6f4a077824ac654?pvs=4 +) git reset은 협업에서 많이 사용하지 않음! (다시 돌아가기 어렵기 때문에) 그래서 github처럼 remote repository에서 다른 사람과 협업을 할 시에는 git revert를 사용해야 함을 기억해야한다.
FPS 게임 만들 때 사용했었던 코드 1. player의 움직임 구현 (PlayerMove.cs) - 키보드의 입력 값을 받아 player 움직임 - 점프 space로 구현 (중력 계산) 2. 카메라 조정 (PlayerRotate.cs, CamFollow.cs, CamRotate.cs) - camera가 player에 붙는 1인칭. 마우스로 시선을 따라가는 느낌. - camera가 수직으로 넘어가지 않게 상하 제한 두기 (y축 회전 제한) - 회전은 Quatation! 3. 공격 및 체력 시스템 (PlayerFire.cs, EnemyFSM.cs) - 마우스로 클릭 -> ray로 mass 감지(건물 및 적에게 rigidbody가 존재해야함) -> 부딪힌 rigidbody에 이펙트 효과(총알이 맞는 효과) ..