+ 2
Help with a JS game.
So im working on a web game. built this meanwhile: https://code.sololearn.com/Wp610fMFUb0M/#html 2 stuff. in the javascript area there is a object called fighter. i took knight and copied the same object functions and everything but changed the stats. is there a way to just inherit classes as in other languages? and second of all. i want to let the user pick between what class he wants to play. is there a way to do that without buttons? i mean create a picking option between a given amount.
2 ответов
+ 4
Thanks martin