https://github.com/numtel/webgl-isometric
Orthographic (not isometric) view game engine from Tiled maps
https://github.com/numtel/webgl-isometric
Last synced: about 1 year ago
JSON representation
Orthographic (not isometric) view game engine from Tiled maps
- Host: GitHub
- URL: https://github.com/numtel/webgl-isometric
- Owner: numtel
- License: mit
- Created: 2020-01-03T21:24:11.000Z (over 6 years ago)
- Default Branch: ortho
- Last Pushed: 2021-09-02T22:21:34.000Z (over 4 years ago)
- Last Synced: 2025-02-15T04:42:30.197Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://numtel.github.io/webgl-isometric/
- Size: 1010 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebGL orthographic view
* Maps created with [Tiled Map Editor](https://thorbjorn.itch.io/tiled)
* Art under CC license from [Open Game Art](https://opengameart.org/content/zelda-like-tilesets-and-sprites)
## Layer Properties
Each layer can have a selection of the following properties:
Name | Description
-----|----------------
`aboveChar` | `bool` Layer is to be drawn above the character
`blocking` | `boolean` Layer tiles will block the character's path
## Tile objects
Tile objects may be animated along a horizontal strip in a sprite sheet.
Property | Description
--------|--------------
`tileXAnim` | `boolean` True for animation to play
`tileXAnimStage2Frame` | `int` Optional. After animating to end, restart at this frame instead of `tileXMin`
`tileXMax` | `int` Required for animating, the x-index in the sprite sheet at the end of the sequence
`tileXMin` | `int` Required for animating, the x-index in the sprite sheet at the beginning of the sequence
`tileXTime` | `int` Duration to show each frame in milliseconds
## Available trigger actions
Rectangular objects can perform actions when the character stops inside the area.
Property | Description
--------|----------------
`trigger` | `string` These tiles invoke an action when stopped atop. Layer will not be drawn. Each trigger defines its own additional properties.
### `loadMap`
Transport the player to a new scene. All properties required.
Additional Property | Description
-----|-----------------
`mapFile` | `string` Filename ending in `.tmx` to load
`setCharX` | `string` Character starting point in new map
`setCharY` | `string` Character starting point in new map
### `msgBox`
Display a message to the player.
Additional Property | Description
-----|-----------------
`text` | `string` Required
`triggerAnim` | `string` Optional, named of a tile object with `tileXAnim` initialized as `false`