15 lines
299 B
JavaScript
15 lines
299 B
JavaScript
|
//variables and functions for game state
|
||
|
Game = {
|
||
|
currentLine: undefined,
|
||
|
currentLevel: undefined,
|
||
|
level: 1
|
||
|
}
|
||
|
|
||
|
Game.parabula = {
|
||
|
fh: function () {
|
||
|
return Math.floor(Math.random() * 9 - 4);
|
||
|
},
|
||
|
fk: function () {
|
||
|
return Math.floor(Math.random() * 5 - 3);
|
||
|
}
|
||
|
}
|