Quintus JavaScript HTML5 Game Engine
Quintus - łatwy do nauki, zabawny w użyciu, silnik gier HTML5 dla urządzeń mobilnych i desktopów.
robert-kosekowski z- #
- #
- #
- #
- 2
Quintus - łatwy do nauki, zabawny w użyciu, silnik gier HTML5 dla urządzeń mobilnych i desktopów.
robert-kosekowski z
Komentarze (2)
najlepsze
var Q = Quintus()
.include("Sprites, Scenes, Input, 2D, Touch, UI")
.setup({ maximize: true })
.controls().touch()
Q.Sprite.extend("Player",{
init: function(p) {
this.super(p, { sheet: "player", x: 410, y: 90 });
this.add('2d, platformerControls');
this.on("hit.sprite",function(collision) {
if(collision.obj.isA("Tower")) {
Q.stageScene("endGame",1, { label: "You Won!" });
this.destroy();
}
});
}
});
Q.Sprite.extend("Tower", {
init: function(p) {
this.super(p, { sheet: 'tower' });
}
});
Q.Sprite.extend("Enemy",{
init: function(p) {
this._super(p, { sheet: 'enemy', vx: