Tiny RPG adventure set on a island with 'dynamic' terrain based on the weather.
Dynamic world
barely
Multiplayer
Install Node
git clone https://github.com/CoherentNonsense/island-game.git
cd island-game
npm install
npm run dev
Go to http://localhost:8080/
Packets start with a packet id and can be followed by numbers and strings
Writing this down here so I can reference it.
packet id | description | type |
---|---|---|
client messages | ||
000 | host a game | [] |
001 | join a game | [gameId: string, username: string] |
002 | leave game | [] |
003 | enter location | [userId: number, locationId: number] |
004 | leave location | [userId: number] |
005 | speak | [message: string] |
006 | join party | [partyPassword: string, userId: number] |
007 | make party | [partyPassword: string] |
008 | join party accepted | [userId: number, memberId: number, ...repeated for all party members, end: -1] |
009 | leave party | [userId: number] |
010 | assign party leader | [partyPassword: string, userId: number] |
011 | party exists | [partyPassword: string] |
012 | party leader location selection | [leaderId: number, selection: number] |
013 | party enter combat | [leaderId: number, monsterId: number] |
014 | party submit attack | [leaderId: number, weaponId: number, damage: number] |
015 | party submit enemy attack (sent by party leader) | [leaderId: number, attackId: number, damage: number] |
host messages | ||
100 | update new player with game data | [locationId: number, userId: number, ...repeated for all players, end: -1] |
server messages | ||
200 | game ended | [] |
201 | host id doesn't exist | [] |
202 | player left | [gameId: number] |
203 | receive userId | [userId: number] |
204 | host id already exists | [] |