15 lines
No EOL
299 B
JavaScript
15 lines
No EOL
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);
|
|
}
|
|
} |