Compiler for Sonolus.js
Compiler is not meant to be used directly, instead use Sonolus.js.
Compiler is designed to compile only a subset of JavaScript, as a sizable portion of JS features are not needed for Sonolus engine scripting.
Notably, language features that do not exist in Sonolus runtime (strings, objects, arrays, etc) are only partially supported to the extend where they must be resolved at compile time.
buildMainTask
buildCompileTask
assemble
Play:
Archetype
SpawnableArchetype
Watch:
Archetype
SpawnableArchetype
Preview:
Archetype
Play:
levelData
levelMemory
Watch:
levelData
levelMemory
Preview:
previewData
Tutorial:
tutorialData
tutorialMemory
Collection
Container
ContainerType
DataType
Dictionary
Mat
Quad
Range
Rect
Tuple
Vec
defineOptions
defineSkin
Play:
defineArchetypes
defineBuckets
defineEffect
defineParticle
Watch:
defineArchetypes
defineBuckets
defineEffect
defineParticle
Preview:
defineArchetypes
Tutorial:
defineEffect
defineInstruction
defineParticle
Play:
Callback
EntityState
HorizontalAlign
Judgment
Watch:
Callback
EntityState
HorizontalAlign
Judgment
Preview:
Callback
HorizontalAlign
PrintColor
PrintFormat
Scroll
Tutorial:
NavigationDirection
TutorialCallback
SkinSpriteId
Play:
EffectClipId
ParticleEffectId
Watch:
EffectClipId
ParticleEffectId
Tutorial:
EffectClipId
InstructionIconId
InstructionTextId
ParticleEffectId
Play:
LoopedEffectClipInstanceId
ParticleEffectInstanceId
ScheduledLoopedEffectClipInstanceId
TouchId
Watch:
LoopedEffectClipInstanceId
ParticleEffectInstanceId
ScheduledLoopedEffectClipInstanceId
Tutorial:
LoopedEffectClipInstanceId
ParticleEffectInstanceId
ScheduledLoopedEffectClipInstanceId
compiler
debug
native
screen
ui
Play:
audio
background
bpmChanges
entityInfos
input
life
score
time
timeScaleChanges
touches
Watch:
audio
background
bpmChanges
entityInfos
input
life
score
time
timeScaleChanges
Preview:
bpmChanges
canvas
entityInfos
timeScaleChanges
Tutorial:
audio
background
navigation
time