목록전체 글 (382)
Priv's Blog
출처 FPS Mod: Player Properties - Unity Learn Your character can only run so fast, jump so high, and jet for so long. Or can it? Set the run speed, jump height, and jet strength to whatever you want. learn.unity.com 1. 더 빨리, 더 높이, 더 오래 메인 캐릭터의 이동 속도 값을 바꾸는 것부터 시작해봅시다. 1) MainScene 씬을 Project 창에서 더블 클릭으로 열어주세요. 2) Hierarchy 창에서 Player 게임오브젝트를 선택해주세요. 3) Inspector 창을 스크롤하셔서 Player Character Controll..
출처 FPS Mod: Hit points - Unity Learn Your character has a preset health parameter. The amount of health determines how many hits the player can take before dying. You can adjust the health to be less or more. learn.unity.com 1. 캐릭터 체력 조정하기 캐릭터가 가질 수 있는 체력 수치를 바꿔봅시다. 1) MainScene 씬을 Project 창에서 더블-클릭으로 열어주세요. 2) Player 게임오브젝트를 Hierarchy 창에서 선택해주세요. 3) Inspector 창을 스크롤하시고, Health (Script) 컴포넌트를 찾아..
출처 FPS Mod: Changing and adding Game Objectives - Unity Learn The Game Objectives tell the player what they need to accomplish in order to win the game. In this Mod you’ll learn how to change the current objectives and add new ones. learn.unity.com 1. 유니티에서 FPS Microgame 열기 아직 Microgame 프로젝트가 없으신가요? 그럼 처음으로 돌아가 Getting Started with Unity 튜토리얼을 먼저 진행해주세요. 시작하기에 앞서, 이번 튜토리얼(과 다른 튜토리얼들)을 완수하기 위해서 몇..
출처 FPS Mod: Tune up your game's performance - Unity Learn Optimize the performance of your game by using the MiniProfiler. learn.unity.com 1. MiniProfiler 도구를 이용해 게임 성능을 최적화하기 위한 몇 가지 팁을 알아봅시다. 1) MainScene 씬을 열었는지 확인해주세요. (Project 창에서 씬을 찾아 더블 클릭하시면 열 수 있습니다.) 2) Tools > MiniProfiler 로 이동하셔서 MiniProfiler 창을 열어주세요. 3) MiniProfiler 창이 표시되고 WebGL로 빌드할 때 게임을 보다 잘 동작하도록 만들 수 있는 방법에 대해 살펴볼 수 있습니다. 여기..
출처 All Microgames: Share your game on the web - Unity Learn Share the fun! No matter which Microgame you're customizing, follow these steps to generate a link that you can share with friends and family so they can play your game (for free) on desktop. learn.unity.com 1. WebGL 빌드 지원 확인하기 해당 튜토리얼 문서에서는 FPS Microgame을 사용하겠습니다. 물론 다른 Microgame으로도 아래 단계를 따라오실 수 있습니다. 웹에 게임을 배포하기 전에, 먼저 에디터 상에 "WebGL ..
출처 FPS Mod: Adjusting Sound FX and Volumes using the Audiomixer (NEW) - Unity Learn The FPS Microgame comes with tons of unique audio and sound effects (fx). Learn how to adjust these using the Audiomixer window. learn.unity.com 1. Audiogroup으로 볼륨 조절하기 1) Project 창에서, MainScene 을 더블 클릭해서 열어주세요. 2) project 창에서 AudioMixer를 찾아주세요. 파일 명은 MainAudioMixer 입니다. 3) 파일을 더블 클릭하셔서 열어주세요. 이제 AudioMixer 창이 보이..
1) 마우스의 벡터 값에 캐릭터의 벡터 값을 빼서 방향을 알아낸다. 2) 알아낸 방향을 Vector 변수에 저장한다. 3) 마우스를 클릭했을 때, 발사체(총알)을 복제해낸다. 4) 각각의 발사체 게임오브젝트에는 총알 이동과 충돌 시, 총알 사라짐 등을 구현할 스크립트가 할당되어 있다. 5) 복제된 발사체의 스크립트를 GetComponent. (프리팹의 컴포넌트를 가져오면 아무 소용이 없다.) 6) 발사체에 연결된 스크립트 내에 총알 발사를 위한 함수를 인자에 맞게 호출 7) 발사체에 할당되어 있는 스크립트에서는 6단계에서 전달 받은 인자에 맞게 총알을 이동시켜야 한다. rigidbody2D.AddForce(Vector2)를 이용하면 이동시킬 수 있다. 8) 충돌이 발생할 경우, 총알이 사라지도록 만들어야..
RGB 게임 제작하면서 추가한 기능. 게임 플레이 도중에 스프라이트를 변경하는 코드를 응용해 구현했다. (중간 부분만 따로 자르기가 애매해서 전체 다 업로드) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 using..