-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
23 lines (23 loc) · 791 Bytes
/
Copy pathapp.js
File metadata and controls
23 lines (23 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
jwk.ajax({url:"games/prueba.json"}).done(function (json) {
var saber = new LightSaber({
spec: json,
full_document: false,
container_id: 'container',
create: function (game) {
for (var i in game.world.children) {
if (game.world.children[i].instance_name == "card") {
console.log("create---------->", [game.world.children[i]]);
console.log("create---------->", [game.saber]);
}
}
},
update: function (game) {
// console.log("update", game);
},
render: function (game) {
// console.log("render", game);
}
});
}).fail(function (e) {
console.error(e);
})