sonolus.js-compiler v1.4.0
Sonolus.js Compiler
Compiler for Sonolus.js
Links
Usage
Compiler is not meant to be used directly, instead use Sonolus.js.
Limitations
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.
API
Building and Assembling
Building
buildMainTaskbuildCompileTask
Assembling
assemble
Standard Library
Archetypes
Play:
ArchetypeSpawnableArchetype
Watch:
ArchetypeSpawnableArchetype
Preview:
Archetype
Blocks
Play:
levelDatalevelMemory
Watch:
levelDatalevelMemory
Preview:
previewData
Tutorial:
tutorialDatatutorialMemory
Data types
CollectionContainerContainerTypeDataTypeDictionaryMatQuadRectTupleVec
Defines
defineOptionsdefineSkin
Play:
defineArchetypesdefineBucketsdefineEffectdefineParticle
Watch:
defineArchetypesdefineEffectdefineParticle
Preview:
defineArchetypes
Tutorial:
defineEffectdefineInstructiondefineParticle
Enums
Play:
CallbackEntityStateHorizontalAlignJudgment
Watch:
CallbackEntityStateHorizontalAlignJudgment
Preview:
CallbackHorizontalAlignPrintColorPrintFormatScroll
Tutorial:
NavigationDirectionTutorialCallback
Ids
SkinSpriteId
Play:
EffectClipIdParticleEffectId
Watch:
EffectClipIdParticleEffectId
Tutorial:
EffectClipIdInstructionIconIdInstructionTextIdParticleEffectId
Instance ids
Play:
LoopedEffectClipInstanceIdParticleEffectInstanceIdScheduledLoopedEffectClipInstanceIdTouchId
Watch:
LoopedEffectClipInstanceIdParticleEffectInstanceIdScheduledLoopedEffectClipInstanceId
Tutorial:
LoopedEffectClipInstanceIdParticleEffectInstanceIdScheduledLoopedEffectClipInstanceId
Misc
compilerdebugnativescreenui
Play:
audiobackgroundbpmChangesentityInfosinputlifescoretimetimeScaleChangestouches
Watch:
audiobackgroundbpmChangesentityInfosinputlifescoretimetimeScaleChanges
Preview:
bpmChangescanvasentityInfostimeScaleChanges
Tutorial:
audiobackgroundnavigationtime
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago