SingleBaseProcess

Create a single player game in a Base

Constructor

new SingleBaseProcess(gameObject3D, frame3DBase, assetManager, inputManager, options)

Parameters:
NameTypeDescription
gameObject3DObject3D

root game object3D of your game

frame3DBaseBase

frame3DBase where the game is taking place

assetManagerAssetManager

assetManager of the game AssetManager

inputManagerInputManager

input manager of the game InputManager

optionsobject

single player game planar options

Properties
NameTypeAttributesDescription
gameScriptClassObject.<string, ScriptBase><optional>

custom game scripts class of your object3D

externalGameScriptClassObject.<string, ExternalScriptBase><optional>

custom external scripts class of your object3D

interpolatorDelaynumber<optional>

delay between state computed in game process and the ones in external context

Classes

SingleBaseProcess

Members

assetManager :AssetManager

asset manager

externalGameContext :ExternalContext

render audio external script context

Type:
  • ExternalContext

frame3DBase :Base

game view

Type:
  • Base

gameContext :Context

game script + collision context

Type:

inputManager :InputManager

input manager

interpolator :StateInterpolator

interpolator to smooth comminucation between the two process

Type:
  • StateInterpolator

process :RequestAnimationFrameProcess

Type:
  • RequestAnimationFrameProcess

Methods

start() → {Promise}

Returns:
  • promise resolving when game has started
Type: 
Promise