|
|
@ -23,6 +23,7 @@ function initGame() { |
|
|
|
function hodkoustkou(steny) { |
|
|
|
// 1+zakrouhleni(gen<0-1>*6) -> [1-6] ;
|
|
|
|
// 1+zakrouhleni(gen<0-1>*x) -> [1-x] ;
|
|
|
|
// y+Math.round(Math.random*x) -> [y-x];
|
|
|
|
|
|
|
|
let x = 1+Math.floor(Math.random()*steny) ; |
|
|
|
console.log("x:"+x); |
|
|
@ -87,15 +88,7 @@ function battlelog(text2log) { |
|
|
|
document.getElementById("battlelog").innerHTML += text2log; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//GameDesign talkpoints????
|
|
|
|
//enemy -> generator enemy?
|
|
|
|
//hero -> generace hrdiny?
|
|
|
|
/*gameplay |