@sonolus/sonolus.js-compiler

1.5.2 • Public • Published

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

  • buildMainTask
  • buildCompileTask

Assembling

  • assemble

Standard Library

Archetypes

Play:

  • Archetype
  • SpawnableArchetype

Watch:

  • Archetype
  • SpawnableArchetype

Preview:

  • Archetype

Blocks

Play:

  • levelData
  • levelMemory

Watch:

  • levelData
  • levelMemory

Preview:

  • previewData

Tutorial:

  • tutorialData
  • tutorialMemory

Data types

  • Collection
  • Container
  • ContainerType
  • DataType
  • Dictionary
  • Mat
  • Quad
  • Rect
  • Tuple
  • Vec

Defines

  • defineOptions
  • defineSkin

Play:

  • defineArchetypes
  • defineBuckets
  • defineEffect
  • defineParticle

Watch:

  • defineArchetypes
  • defineBuckets
  • defineEffect
  • defineParticle

Preview:

  • defineArchetypes

Tutorial:

  • defineEffect
  • defineInstruction
  • defineParticle

Enums

Play:

  • Callback
  • EntityState
  • HorizontalAlign
  • Judgment

Watch:

  • Callback
  • EntityState
  • HorizontalAlign
  • Judgment

Preview:

  • Callback
  • HorizontalAlign
  • PrintColor
  • PrintFormat
  • Scroll

Tutorial:

  • NavigationDirection
  • TutorialCallback

Ids

  • SkinSpriteId

Play:

  • EffectClipId
  • ParticleEffectId

Watch:

  • EffectClipId
  • ParticleEffectId

Tutorial:

  • EffectClipId
  • InstructionIconId
  • InstructionTextId
  • ParticleEffectId

Instance ids

Play:

  • LoopedEffectClipInstanceId
  • ParticleEffectInstanceId
  • ScheduledLoopedEffectClipInstanceId
  • TouchId

Watch:

  • LoopedEffectClipInstanceId
  • ParticleEffectInstanceId
  • ScheduledLoopedEffectClipInstanceId

Tutorial:

  • LoopedEffectClipInstanceId
  • ParticleEffectInstanceId
  • ScheduledLoopedEffectClipInstanceId

Misc

  • 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

/@sonolus/sonolus.js-compiler/

    Package Sidebar

    Install

    npm i @sonolus/sonolus.js-compiler

    Weekly Downloads

    52

    Version

    1.5.2

    License

    MIT

    Unpacked Size

    465 kB

    Total Files

    1103

    Last publish

    Collaborators

    • nonspicyburrito