Classes
Actor
ActorAnimation
ActorAnimationTrack
ActorAnimationTrack
ActorComponent
App
Bounds
Camera
CameraShake
Chain
ChainNode
Chunk
ChunkMgr
ChunkUnit
CollisionComponent
Color
ColorGradient
ComponentManager
Controller
ControllerRegistry
CookieManager
DelayedTask
DrawableComponent
Engine
EventHandler
EventHandlerLayer
FrameTask
Heap
InputComponent
InputHandler
InputManager
KeyboardHandler
LayeredSprite
MouseHandler
MovingActor
NoiseProcess
NoiseSequence
NoiseStack
NumberGradient
Particle
ParticleEmitter
Path
PathBuilder
PhysicsComponent
Point
PositionTrack
PositionTrack
RepeatingTask
RotationTrack
RotationTrack
ScaleTrack
ScaleTrack
SoundEmitter
SoundRegistry
Space
SpaceManager
Sprite
SpriteGradient
SpritePartition
SpriteRegistry
Task
TaskManager
Triangle
Util
Vec2
from
Vec2Gradient
Vec2Track
Vec2Track
World
WorldGenerator
exports
Global
ActorEvent
FILL_COLOR
T
moveTo
On this page

Members

(constant) FILL_COLOR :Color

Default fill color for new units.
Type:
  • Color
Source
  • game/space/space.js, line 18

Methods

moveTo(pos)

Generate a path in the space to walk to a specified destination.
Parameters:
NameTypeDescription
posVec2Position to generate a path to
Source
  • game/actor/npc/npc.js, line 105

Type Definitions

ActorEvent

Type:
  • "init" | "update" | "delete" | "collide"
Source
  • game/actor/actor.js, line 505

T

Add a component to the actor.
Source
  • game/actor/component/component_manager.js, line 42
Type anything to view search result
Classes
Actor
ActorAnimation
ActorAnimationTrack
ActorAnimationTrack
ActorComponent
App
Bounds
Camera
CameraShake
Chain
ChainNode
Chunk
ChunkMgr
ChunkUnit
CollisionComponent
Color
ColorGradient
ComponentManager
Controller
ControllerRegistry
CookieManager
DelayedTask
DrawableComponent
Engine
EventHandler
EventHandlerLayer
FrameTask
Heap
InputComponent
InputHandler
InputManager
KeyboardHandler
LayeredSprite
MouseHandler
MovingActor
NoiseProcess
NoiseSequence
NoiseStack
NumberGradient
Particle
ParticleEmitter
Path
PathBuilder
PhysicsComponent
Point
PositionTrack
PositionTrack
RepeatingTask
RotationTrack
RotationTrack
ScaleTrack
ScaleTrack
SoundEmitter
SoundRegistry
Space
SpaceManager
Sprite
SpriteGradient
SpritePartition
SpriteRegistry
Task
TaskManager
Triangle
Util
Vec2
from
Vec2Gradient
Vec2Track
Vec2Track
World
WorldGenerator
exports
Global
ActorEvent
FILL_COLOR
T
moveTo