Git Product home page Git Product logo

island-game's Introduction

Island Game

Tiny RPG adventure set on a island with 'dynamic' terrain based on the weather.


Submission for olc::CodeJam

Itch.io Page

Screenshots

Dynamic world

barely

game thumbnail

Multiplayer

game thumbnail

Local Build

Prerequisites

Install Node

1 - Clone Repository
git clone https://github.com/CoherentNonsense/island-game.git
2 - Download dependecies
cd island-game
npm install
3 - Run development development server
npm run dev

Go to http://localhost:8080/

Packet Protocol

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 []

island-game's People

Contributors

cohnon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.