자바스크립트 턴제 게임 만들기
test2.html Start 1. Adventour 2. Healing 3. Exit Input 1. Attack 2. Healing 3. escape Input test2Js.js var TurnGame = (function(){ var instance; var initiate = function(heroName){ var hero = { name : heroName, lev : 1, maxHp: 100, hp : 100, xp : 0, att : 10 }; var monsters =[{ name : "Slime", hp : 25 + hero.lev *3, att : 10 +hero.lev, xp : 10 + hero.lev },{ name : 'Skelleton', hp : 50 + hero.lev..
2016. 12. 15.