Skip to content

An adventure game using ReactJS, implementing snapshot tests

Notifications You must be signed in to change notification settings

ckrountree/adventure-game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adventure Game

GAME OBJECTIVE

This is an adventure game. The basic goal is to help the gnome find the Golden Chalice of Antioch. He will be faced with obstacles along the way, including impassable regions and a chalice-protecting ogre.

The gnome will have to traverse the fields and forest. Because he has no climbing gear, he cannot pass the mountains. There is also a river that the gnome will have to cross to be able to reach the chalice. However, without a boat, he can only cross it by walking across the bridge. This is not an easy task. For one, he must first find the key that unlocks the bridge gate. Secondly, he will encounter the ogre who is always watching the bridge for trespassers. The gnome must be prepared to fight the ogre in order to cross the bridge but he may also run up against the ogre at any other random place in Antioch. The gnome can either battle the ogre immediately or he can try to run from the ogre. However, if he is not fast enough, the gnome will be forced to battle an even more brutish ogre, now fueled by anger.

HOW TO PLAY

  • The player will be the gnome.
  • The player will use the 4-arrow keys to directionally move the gnome throughout Antioch. He will also use these to run while in battle.
  • To battle the ogre, the player will use the space bar to hit the ogre.
  • To win the game, the gnome must reach the chalice.
  • Antioch consists of the following landscapes:
    • fields (light green)
    • forests (dark green)
    • a river (blue)
    • mountains (gray)
    • a bridge (brown)

About

An adventure game using ReactJS, implementing snapshot tests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.5%
  • CSS 4.6%
  • HTML 1.9%