rudenate3 / jsRPG

A very basic Role Playing Game made in Javascript with the intention of teaching Javascript in pieces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsRPG

Version 3

Summary

Version 3 refactors much of the character code and makes them both objects. We finally have some user input via arguments that lets you set a player name. It is still pretty boring with only one class of character and one kind of enemy.

Running

To run the game, just run node main.js <playerName> from the root directory.

Changelog

Version 3

  • Change Hero and Entity declarations into objects
  • Create basic functions to handle attacking and defending
  • Move level up function to player object
  • Allow heroe's name to be set by argument list
  • Fixed typos and bugs

Version 2

  • adds max health for entities
  • adds generic attack function
  • adds experience and basic level up functionality
  • adds multiple fights until hero dies

About

A very basic Role Playing Game made in Javascript with the intention of teaching Javascript in pieces


Languages

Language:JavaScript 100.0%