https://github.com/andersevenrud/tilegame
Top-down 2D tile engine with infinite terrain generation (JavaScript)
https://github.com/andersevenrud/tilegame
Last synced: 2 months ago
JSON representation
Top-down 2D tile engine with infinite terrain generation (JavaScript)
- Host: GitHub
- URL: https://github.com/andersevenrud/tilegame
- Owner: andersevenrud
- Created: 2013-06-28T21:59:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-01T16:39:32.000Z (almost 12 years ago)
- Last Synced: 2025-03-26T20:55:00.058Z (3 months ago)
- Language: JavaScript
- Homepage: http://andersevenrud.github.io/
- Size: 363 KB
- Stars: 57
- Watchers: 8
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Top-down 2D tile based game engnine with infinite procedural chunk generation using only browser JavaScript.
**This is just an experiment and not complete in any way**
## Installation
Just clone and open _index.html_ in your browser.## Compability
Latest _Chrome_ and _Firefox_ works fine (Chrome has better performance)## Controls
* `W` Forward
* `A` Strafe Left
* `S` Backward
* `D` Strafe Right
* `SHIFT` Hold to run
* `MOUSE` Look around
* `MWHEEL` Change weapon
* `LMB` Shoot/Action### Debugging controls
* `1` Toggle tile overlay
* `2` Toggle chunk overlay
* `3` Toggle data overlay
* `7` Toggle cheat mode (noclip, speedup, disable stats)
* `8` Toggle metadata and bounding overlays
* `9` Toggle UI## Configuration
Game config is located in `main.js`
Engine config is located in `config.js`
You can supply these arguments in the URL:
* `seed` Seed string
* `x` Starting X position
* `y` Starting Y position**Example:** `?seed=foo&x=1000`
## Features
* Infinite 2D procedural tile generation using Perlin and Simplex noise
* Map Generation using seeds
* Chunk/Region based rendering
* Character controls and weapons
* Collision detection
* AnimationsYou can see it in action on my YouTube channel
## TODO
Lots of stuff...