This is a text-based multiplayer game built in a week using React and Websockets, testing our technical skills and working collaboratively on a larger project. The socket.io library enabled us to keep track of global state on the client side. Using Websocket tech as a creative solution to keeping track of the current state of gameplay in place of something like Redux. This challenged us to think up creative ways of passing functions and data between components, which in turn reduced the frequency of database CRUD functions required.
This is currently a working prototype.
- TypeScript
- React
- Websocket
- Express
- SQLite
- SCSS
As a user I want to be able to...
- ...sign up securely
- ...create a character
- ...navigate through the world
- ...complete at least one quest
- ...collect gold and spend it on new items
- ...chat with friends currently online
- ...have my progress saved when I log out
Name | Type | Notes |
---|---|---|
user | string | pk, links to auth0 pub |
char_name | string | |
pronouns | string | |
description | text | |
inventory | text | # seperated strings, defaultTo(``) |
location | string | defaultTo(Town Square ) |
progress | string | defaultTo(``) |
gold | integer | defaultTo(0) |
Name | Type |
---|---|
Inventory | string[] |
Messages | {from: string, message: string}[] |
Nearby PCs | {name:string, pronouns:string, description:string}[] |