https://github.com/kessler/layla-engine
https://github.com/kessler/layla-engine
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kessler/layla-engine
- Owner: kessler
- Created: 2014-01-01T22:57:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-18T16:59:25.000Z (about 9 years ago)
- Last Synced: 2025-03-08T08:12:42.582Z (about 2 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Layla
Old project, a standalone micro animation lib for javascript.
```javascript
var layla = require('layla')
var engine = new layla.Engine(25, update, draw)// the keyboard buffer
var keyboardBuffer = new layla.input.KeyboardEventBuffer(window)
keyboardBuffer.start()function update(currentTick) {
// update the scene
}function draw(currentTick) {
// draw the scene
}```
Based on
http://nokarma.org/2011/02/02/javascript-game-development-the-game-loop/index.html
http://www.koonsolo.com/news/dewitters-gameloop/TODO:
full working example