diff --git a/17_minihra/index.html b/17_minihra/index.html index d8879bd..f63eb60 100644 --- a/17_minihra/index.html +++ b/17_minihra/index.html @@ -52,7 +52,7 @@ - + \ No newline at end of file diff --git a/17_minihra/game.js b/17_minihra/js/game.js similarity index 97% rename from 17_minihra/game.js rename to 17_minihra/js/game.js index 08d3a96..c240ddf 100644 --- a/17_minihra/game.js +++ b/17_minihra/js/game.js @@ -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