Skip to content

michaelchadwick/gemwarrior-web

Repository files navigation

Gem Warrior (web)

A web version of the Gem Warrior RubyGem.

/-+-+-+ +-+-+-+-+-+-+-\
|G|E|M| |W|A|R|R|I|O|R|
\-+-+-+ +-+-+-+-+-+-+-/

logo courtesy of ascii generator

Gem Warrior is a text adventure that takes place in the land of Jool, where randomized fortune is just as likely as mayhem.

You take up the mantle of [RANDOM NAME HERE], a gifted young acolyte who has been tasked by the queen herself, Ruby, to venture off into the unknown to recapture a Shiny ThingTM that holds great power within its crystallized boundaries. Unfortunately, it was stolen recently by a crazed madperson named Emerald, bent on using its frightening power for Evil. You are Good, obviously, and the rightful caretaker of such power, but he will not give it up willingly, and has cursed all the creatures of the land into doing his bidding, which is largely tearing you limb from limb.

Start in your poor, super lame cottage, where you live alone, subsisting off the sale of polished rocks you scavenge all day for in the neighboring caves. Once tasked with your quest, travel throughout the land of Jool, eventually reaching the sky tower that Emerald resides in with his stolen goods, laughing to himself, occasionally.

As you travel you will discover sights and sounds of the land, all of which are new to you because you don't really get out much. Visit towns with merchants willing to trade coin for wares they bought off of other adventurers who didn't last the previous attempts at thwartion. Sleep in a tent (or on the ground, if that's all that's available) to regain your enumerated status points, which are conveniently located in your peripheral vision (i.e. the console window). Eventually, if you're skilled, you'll reach Emerald's Sky Tower, part him from his ShinyThingtm, and then do what is "right".

Main Commands

> (c)haracter - character check for weapon/armor/status > (i)nventory - check your inventory > (si)t - change status to sitting > (st)and - change status to standing > (sl)eep - change status to sleeping

> (l)ook [object] - look at current location and its items and monsters > (g)et/(p)ickup/(t)ake [object] - take an item from the current location > (dr)op [object] - drop an item to the current location > (u)se [object] - use an item from your inventory or current location (use 'with' or 'on' to combine with other item)

> go [direction] - go in a direction, if possible (north|east|south|west work as shortcuts)

> (h)elp - display available commands > (hist)ory - display command history > (a)bout - display information about the creator of GemWarrior > (ch)ange [attribute] - change some things about yourself or the game

Subsystems

Avatar

Uses a Web Worker to change your avatar (if you so choose to display it) and its characteristics.

Audio

Uses webaudio-tinysynth for making noise.

Favicon

Uses SVGs from icones.netlify.app.

Storage

Uses CacheStorage to save your adventure's records.

Contributing

Clone repo and get to messing with things. It's all HTML, CSS, and JS (with some jQuery).