Class: Engine

게임 로직을 실행하고 물리효과를 적용시키며 화면에 렌더링하는 엔진이다.

Usage

                    
                        new Engine()
                    
                

Members

Methods

(static) init(settingsopt)

인자로 전달된 값을 이용해 엔진을 초기화한다.

Parameters:
Name Type Description
settingsopt object
Properties
Name Type Description
widthopt number
heightopt number
fpsopt number
titleopt string
faviconPathopt string
sceneopt GameObject

(async, static) initWithForm(options)

form으로부터 전달된 값으로 엔진을 초기화한다.

Parameters:
Name Type Description
options object
Properties
Name Type Description
thumbnailImagePath string
title string
scene GameObject

run()

게임 파이프라인에 대해서는 이 게시글을 참고했다. https://developer.ibm.com/tutorials/wa-build2dphysicsengine/#physics-loop-step