platformer
platformer copied to clipboard
Demo: https://game.z0.lv/
Custom Level properties
-
pixelPerUnit
-float
- (Default160.0
) - height in pixels of viewport vertically (horizontally adjusting based on screen ratio) -
offset.x
-float
- (Default0
) camera offset of left-bottom corner by horizontal axis in pixels -
offset.y
-float
- (Default0
) camera offset of left-bottom corner by vertical axis in pixels -
gravitiy
-float
- (Default-1.0
) - acceleration pixels pers second each second -
System.enable|disable
-string
enable or disable one of subsystem-
Config no working
jump
- (enable by default) characters can jum -
NOT IMPLEMENTED
slide
-
NOT IMPLEMENTED
wall-jump
-
NOT IMPLEMENTED
shoot
-
NOT IMPLEMENTED
smart-ai
-
Config no working
-
NOT IMPLEMENTED
camera
Static / follow and other stuff - find way how to discribe it
Custom Layer properties
#All Layers
-
scrollRatio
-float
- (Default1.0
)-
scrollRatio.x
- set relative scrolling speed to offset of screen horizontally -
scrollRatio.y
- set relative scrolling speed to offset of screen vertically -
scrollRatio
- set relative scrolling speed to offset of screen both dirrections
-
Image Layer
-
repeat
-string
- (Defaultrepeat
)-
repeat
repeated both vertically and horizontally -
repeat-x
repeated only horizontally -
repeat-y
repeated only vertically -
no-repeat
not repeated. The layer will only be shown once and repead last pixel (or tile) to fill empty space
-
-
NOT IMPLEMENTED
position
-string
- (Defaultleft bottom
)-
left top
- -
left center
- -
left bottom
- -
right top
- -
right center
- -
right bottom
- -
center top
- -
center center
- -
center bottom
-
-
Custom Object properties
-
onKey[event.key]
-string
-Move.south
|Move.west
|Move.east
|Move.north
|Fire
|Jump
or any other that supported by system -
ammo.(name).(id|tileset)
-int
:-
name
-string
- (default_
) - any name to reference inFire
action -
id
-int
- (default0
) - relative tile id -
tilset
- (default0
) -firstgid
of tileset to which id is relative
-
-
NOT IMPLEMENTED
atomove.x
-float
- auto move by horizontal axis -
NOT IMPLEMENTED
atomove.y
-float
- auto move by vertical axis -
NOT IMPLEMENTED
cameraOffset
-Vec2
of%, float(px)
-
NOT IMPLEMENTED
onHit.[ID].loadLevel
-filename
-
NOT IMPLEMENTED
onClick.[ID].loadLevel
-filename
Physics
-
mass
-float
- (default1
) -
Animactions
NOT IMPLEMENTED
Can be be assigned only to Tile-Object, and tile will be used as anim.idle.E.id
anim.(name).(direction).(id|tileset)
- Int
- Animation atlas
-
name
-
walk
- walk animation -
run
- run animation (if not definedwalk
will be used) -
stand
|idle
- no movement aninmation (default animation of tile) -
jump
- jumping animation -
fall
- animation on fall -
hit
- got hit animation -
die
- got killed animation
Advanced
-
land
- animation after land -
before_jump
- animation that take place befor jump (also freezes action for animation time) -
slide
-
dash
- air dash animation / hight speed (more than run) -
climbing
- sit on wall -
wall-jump
- jump out of wall
... More be added
-
-
direction
-
north
orN
- up (not used in platforme) -
north-east
orNE
-
east
orE
- right -
south-east
orSE
-
south
orS
- down (not used in platforme) -
south-west
orSW
-
west
orW
- left -
north-west
orNW
-
-
id
- TileID of animation -
tileset
- tileset name - default - same as tile-object
Info for feature work: https://medium.com/@porteneuve/mastering-git-subtrees-943d29a798ec - use that for levels
http://blogs.love2d.org/content/let-it-glow-dynamically-adding-outlines-characters -- Glow / characters under building
https://www.redblobgames.com/articles/visibility/ -- LIGHTS!!!
LOT OF SHADERS:https://www.raywenderlich.com/2323-opengl-es-pixel-shaders-tutorial