Blacksmith (JavaScript Game)
For a Web Development class, one of our assignments were to create a blacksmith game to showcase our understanding of JavaScript functions. The player uses the browser's console to call certain javascript functions to play the game, such as:
buy(wood)
to buy wood from the marketplace.
buy(ore)
to buy iron ore from the marketplace.
fire()
to start a fire in the Blacksmith's forge.
make(axe)
to forge an axe with available raw material.
The goal of the game was to reach 50 gold coins by selling the items you make. I'd also added a secret item that was enabled once a certain amount of gold coins were reached.
Inspired by games like Skyrim that I would play as a kid, I wanted to bring an atmosphere of adventure into playing the game by including a story, visuals, medieval style english and music.

Gameplay:


Thank you for scrolling till the end.