Mech Walker
During an Intro to Scripting class in my Computer Science degree, we learned Python. Python is a very easy to use language that is recommended to first timer programmers. This game was created by myself in one Python script. Now, I have decided to take the idea and use React/JavaScript to build it, but much more complex than just a single script.
Play It!
There is a playable version of this react webpage on Vercel! Vercel is an easy to use deployment site that allows you to create projects, deploy them, and use GitHub in the process to manage files and versions!
You must know that this is very early stages of development. You may or may not have anything to play, or do. It is being updated constantly, so it may work one day, and break completely the next.
​
Vercel is not a sponsor.
The Game!
This React.js text based game is about an explorer venturing out and scavenging. It was inspired by Fallout 4 at the time, and the mech-walker is inspired by the Power Armor in the game. The player needs to navigate the bunker's rooms via typing commands like: east, west, south, north. Each room may or may not contain an item the player can pick up. Certain items require other items to be in the player's inventory already in order to be obtained. The end goal of the game is the obtain all the items and beat the monster in the middle of the bunker.
​
Below is a button linked to the GitHub Repository that currently holds the code.
Does it....REACT?
React is the main application that is being used to develop this webserver game, in tandem with Node, JavaScript, and TypeScript. The game will allow the player to import their own bunkers or create new ones. Even saving and loading with correct bunker is planned. Even though it is possible to just store data within the webserver, local storage/cache will be used instead. I'm planning it this way so I can learn to use it, as most webservers rely on client caches.
Some cool Snippets
The current state of this game allows only the managing of the bunkers. Currently, bunker creation, managing of the bunkers, and very basic game input exists. The reason for the slow step into the actual development is because I want to get the webserver to be able to handle creating, loading, saving, and editing bunkers from local storage. Each time I get to a certain point, I go, "Oh this can be done better!" and I do it better. This is contrary to my regular coding, well, because this is a personal project, so no deadline, I'm learning more React, and the "better" code is way more clean and efficient.
One friend suggested I use Material UI for the user interface. .... If only I had known this existed before starting!
Once I added it, I was amazed by how easy it was to make a pleasing interface.