Level
Every Layer can be Animated in a very primitive way via frame-animations.
Base Properties
sceneNameThe name of the level
descriptionA short description
unlockCostHow much gold does the player have to pay to unlock this
0 means it's free of charge and directly available
previewImageNameThe file name of the preview image
SHOULD be square
needed for steam workshop
would be stretched otherwise
Can have transparency
biomesa list of biomes names
empty list means allowing all enemy types
enemyDyingRe-colors dying enemies according to your color specifications matching your artwork.
enemyDeadRe-colors dead enemies according to your color specifications matching your artwork.
Re-Colors
saturationdecimal in %
contrastdecimal in %
huedecimal in %
colorhtml color code with leading
#
Layer
There are 6 base-layer with hard-coded layer indexes.
See Layer Breakdown for more details.
sky
background1
background2
background3
middleground
foreground
Layer Properties
timePerFrame
Time in seconds between frames
Can be 0 if there is only 1 Frame
See Times for examples
The file names of the layer frames.
If there is only 1 frame then there is only 1 file name.
Advanced Properties
Not necessary for a level to work, but to improve its awesomeness.
freeAnimations
A list of free-placeable animations.
A free animation is a static object that can be placed anywhere.
The free comes from freely placeable.
freeAnimations properties
A freely placeable, not moving animation element.
locationXYPosition in the scene
movingObjects
Complex moving, animatable objects.
startLocationXYx, y coordinates of the starting position
endLocationXYx, y coordinates of the end position
movementModeThe method of movement, available settings:
teleportstopbackForth
movementSpeedFloat of movement
movementStartTimeSimulates the " time " that has passed on start
Makes an object start between startLocationXY and endLocationXY by simulating the time that "has passed"
flipXBoolean if the sprite should be flipped on it's X axis when reaching its destination
flipYBoolean if the sprite should be flipped on it's Y axis when reaching its destination
orderInLayertimePerFrameTime in seconds
frameNamesList of frames
The file names of the frames
If there is only 1 frame then there is only 1 file name
frameNamesOnStop(optional)The list of image names that are played when the
movementModestopis chosenCan be 1 or more frames
Uses also
timePerFrame
Example JSON Files
Some examples for the JSON files.
You can always look directly into the game files to see how "we" did it.