TUTORIALS
간단한 점프맵 월드를 만들어 봅니다.
38 분
샘플 프로젝트 📘 강의 영상에서 사용된 프로젝트 파일 https //github com/naverz/zepeto world sample/tree/main/assets/chapter1 https //github com/naverz/zepeto world sample/tree/main/assets/chapter1 요약 요약 zepeto 월드 개발 입문자들을 위한 무작정 따라하기 강의입니다 zepeto 월드 개발을 위한 세팅을 하고, zepeto 캐릭터 컨트롤러를 학습합니다 간단한 gameobject 이동 코드와 텔레포트 고드만 있으면 완성하는 점프맵입니다 난이도 초급 필요한 시간 30분 프로젝트 목표 제페토 템플릿을 사용한 유니티 프로젝트 제작 방법 이해 월드 id 연동 및 제페토 로그인 제페토 캐릭터 불러오기 및 캐릭터 컨트롤러 이해 기본 점프 맵 제작 제페토 스크립트를 활용한 gameobject 이동 제어 제페토 스크립트를 활용한 캐릭터 텔레포트 완성 월드 예시 https //www youtube com/watch?v=i4zmjqpn7zw https //www youtube com/watch?v=i4zmjqpn7zw part 1 월드 콘솔 설정하기 ❗️ 주의 본 영상을 시청하기 전에 월드 개발 시작하기 docid 5d92ybp4jsvcrl tdmjkf 가이드 를 따라 기본 설치를 완료하세요 zepeto studio 월드 콘솔 설정 방법을 배워 봅니다 zepeto templete을 사용한 유니티 프로젝트 세팅 방법을 배워 봅니다 영어 버전 https //www youtube com/watch?v=qlv1z723gem https //www youtube com/watch?v=qlv1z723gem 한국어 버전 https //www youtube com/watch?v=jqpu5azn0wo https //www youtube com/watch?v=jqpu5azn0wo part 2 제페토 플레이어 세팅하기 zepeto 캐릭터를 월드에 등장시키는 방법을 배워 봅니다 영어 버전 https //www youtube com/watch?v=gsw jxi4c6q https //www youtube com/watch?v=gsw jxi4c6q 한국어 버전 https //www youtube com/watch?v=zmwd1qhlyp8 https //www youtube com/watch?v=zmwd1qhlyp8 charactercontroller 스크립트 import { zepetoscriptbehaviour } from 'zepeto script'; import { spawninfo, zepetoplayers, localplayer, zepetocharacter } from 'zepeto character controller'; export default class charactercontroller extends zepetoscriptbehaviour { start() { zepetoplayers instance createplayerwithzepetoid("", "\[zepeto id]", new spawninfo(), true); zepetoplayers instance onaddedlocalplayer addlistener(() => { let player localplayer = zepetoplayers instance localplayer; }); } } part 3 오브젝트 움직이기 움직이는 gameobject를 만드는 방법을 배워 봅니다 영어 버전 https //www youtube com/watch?v=ecw59kg0jos https //www youtube com/watch?v=ecw59kg0jos 한국어 버전 https //www youtube com/watch?v=hxr9bexwb60 https //www youtube com/watch?v=hxr9bexwb60 회전기 스크립트 import { zepetoscriptbehaviour } from 'zepeto script'; export default class rotator extends zepetoscriptbehaviour { public rotationspeedx number = 0 5; public rotationspeedy number = 0; public rotationspeedz number = 0; update() { this transform rotate(this rotationspeedx, this rotationspeedy, this rotationspeedz); } } movement script import { zepetoscriptbehaviour } from 'zepeto script'; import { vector3, gameobject, object, time } from 'unityengine'; export default class movement extends zepetoscriptbehaviour { public movingtime number = 1; public movingrangex number = 0; public movingrangey number = 2; private delta number = 0; private directionflag bool = true; update() { this delta += time deltatime; if (this delta > this movingtime) { this delta = 0; this directionflag = !this directionflag; } if (this directionflag) { // move upward during the set moving time this transform translate(this movingrangex time deltatime, this movingrangey time deltatime, 0); } else { // move downward during the set moving time this transform translate( 1 this movingrangex time deltatime, 1 this movingrangey time deltatime, 0); } } } part4 제페토 캐릭터 텔레포트하기 오브젝트에 닿았을 때 캐릭터를 텔레포트 시키는 방법을 배워 봅니다 영어 버전 https //www youtube com/watch?v=8lxwq7k23uy https //www youtube com/watch?v=8lxwq7k23uy 한국어 버전 https //www youtube com/watch?v=hhakkpgt2vm https //www youtube com/watch?v=hhakkpgt2vm teleport script import { collider,vector3,quaternion } from 'unityengine'; import { zepetocharacter, zepetoplayer, zepetoplayers } from 'zepeto character controller'; import { zepetoscriptbehaviour } from 'zepeto script'; export default class teleport extends zepetoscriptbehaviour { private zepetocharacter zepetocharacter; start() { // zepeto character object zepetoplayers instance onaddedlocalplayer addlistener(() => { this zepetocharacter = zepetoplayers instance localplayer zepetoplayer character; }); } ontriggerenter(collider collider) { if (this zepetocharacter == null || collider gameobject != this zepetocharacter gameobject) { return; } // teleport to origin position this zepetocharacter teleport(new vector3(0, 0, 0), quaternion identity); } } part 5 테스트 플레이하기 모바일에서 테스트 플레이하는 방법을 배워 봅니다 영어 버전 https //www youtube com/watch?v=wfwao8uzlsc https //www youtube com/watch?v=wfwao8uzlsc 한국어 버전 https //www youtube com/watch?v=ixj2z47wp k https //www youtube com/watch?v=ixj2z47wp k part 6 에셋스토어 활용하기 월드를 더 풍성하게 꾸미는 방법을 배워 봅니다 영어 버전 https //www youtube com/watch?v=xfmrcr skjy https //www youtube com/watch?v=xfmrcr skjy 한국어 버전 https //www youtube com/watch?v=nq10qeyec1m https //www youtube com/watch?v=nq10qeyec1m part 7 월드 출시하기 월드를 출시하는 방법을 배워봅니다 영어 버전 https //www youtube com/watch?v=cnloh28ezf8 https //www youtube com/watch?v=cnloh28ezf8 한국어 버전 https //www youtube com/watch?v=trgrk3gezwo https //www youtube com/watch?v=trgrk3gezwo