@steelydylan/atlasjs
v1.0.3
Published
Class Based Simple Game Engine using canvas element
Downloads
7
Readme
Atlas.js
==========
JavaScript Game Engine
Download
- Atlas.js
- Atlas.min.js (compressed)
Documentation
Usage
<script src='Atlas.js'></script>
<canvas id="app"></canvas>
<script>
window.onload = function(){
var game = new Atlas.App("app");
game.load("chara.png");
game.setQuality(500,500);
game.setSize(500,500);
var sprite = new Atlas.Sprite("chara.png",32,32);
sprite.setPosition(220,220)
.animate([0,1,2],5).and().moveBy(0,50,30)
.animate([6,7,8],5).and().moveBy(50,0,30)
.animate([9,10,11],5).and().moveBy(0,-50,30)
.animate([3,4,5],5).and().moveBy(-50,0,30)
.loop();
game.addChild(sprite);
game.start();
}
</script>
Design
- Compact
- object-type
License
MIT License
Platform
- Chrome
- Safari
- Firefox
- IE9
- iOS
- Android 2.1+