This is a Rails game I created during App Academy to solidify my understanding of the MVC framework. In the version I created, all the enemies were slimes (like from Dragon Quest) but you can make the enemies whatever you want!
-
Clone this project onto your computer.
-
In your terminal, change your directory to “game” and start the web server.
<tt>cd game; rails server</tt> (run with --help for options)
-
Go to localhost:3000/players and click the button to create a new character. I’m going to assume your playerID is 1 in the next few URLs.
-
Ask a friend to come over and create new enemies for you to fight by visiting localhost:3000/players/1/mobs/new You will be able to fight these enemies using other player IDs, too.
-
Now go back to localhost:3000/players and play the game as your character!
-
Images!
-
Random mob generation