Basic entities
This commit is contained in:
parent
204f2180ae
commit
f35f38759e
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