Added DB support

This commit is contained in:
Thomas FORGIONE
2015-05-18 15:33:14 +02:00
parent 1101c74132
commit 0d5406cfa4
5 changed files with 42 additions and 2 deletions

View File

@@ -75,6 +75,11 @@ CameraSelecter.prototype.update = function(event) {
CameraSelecter.prototype.click = function(event) {
var newCamera = this.pointedCamera(event);
if (newCamera !== undefined && !(newCamera instanceof Coin)) {
var event = new BD.Event.ArrowClicked();
event.arrow_id = cameras.cameras.indexOf(newCamera);
event.user_id = 1;
event.send();
this.cameras.mainCamera().moveHermite(newCamera);
buttonManager.updateElements();
} else if (newCamera instanceof Coin) {