-
Notifications
You must be signed in to change notification settings - Fork 1
Guide
Hanwool edited this page Oct 8, 2016
·
14 revisions
- File Structure
- Life Cycle
- Draw Scene
- User Interface
- [Development Stack](Development Stack)
CC의 전체적인 생명주기는 /js/GameFramework.js 에서 설정이 된다. 파일이 로드되는 순간 HTML의 load이벤트와 unload이벤트를 다음처럼 설정한다. HTML에서 제공하는 이벤트들은 여기참조.
window.addEventListener("load", onPageLoadComplete, false);
window.addEventListener("unload", onGameDestroy, false);
현재 Campus Canvas는 의존성 관리를 html페이지에서
<script href='...'></script>
형식을 사용합니다. 점점 내용이 많아질수록 이러한 의존성 관리는 좋지 않기 때문에 의존성 관리 모듈을 사용하려고 합니다. 다음과 같은것을 고려하고 있습니다.
- WebPack
- CommonJs