Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

game object attributes

// a game object for your custom games engine may have these attributes
public position: Vector
public width: number
public color: string
public velocity: Vector
public name: string
public hasDefaultGravity: boolean = false
public terminalVelocity: number = 10
 
PREVIOUS NEXT
Tagged: #game #object #attributes
ADD COMMENT
Topic
Name
5+7 =