+ 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.

2nd Apr 2018, 4:09 PM
Tomer Sim
Tomer Sim - avatar
1 Resposta
+ 4
Thanks martin
2nd Apr 2018, 5:28 PM
Tomer Sim
Tomer Sim - avatar