Basic entities
This commit is contained in:
parent
5451d5d660
commit
a1c967c2f9
1 changed files with 11 additions and 1 deletions
12
entities.js
12
entities.js
|
@ -1 +1,11 @@
|
|||
// cool objects here
|
||||
var Clock = function(sides) {
|
||||
this.sides = sides;
|
||||
this.blocks = [];
|
||||
for(var i=0; i<sides; i++) {
|
||||
this.blocks.push([]);
|
||||
}
|
||||
}
|
||||
|
||||
var Block = function(color) {
|
||||
this.color = color;
|
||||
};
|
Loading…
Reference in a new issue