1
0
Fork 0
Grow emojis together
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
André Jaenisch 213aab9d66
feat: blow plant
1 year ago
.husky ci: enforce commit message format using commitlint 1 year ago
dist refactor: allow for static build 1 year ago
gdd Jot down elements of Game Design Doc 1 year ago
scripts refactor: allow for static build 1 year ago
src feat: blow plant 1 year ago
test feat: blow plant 1 year ago
.eslintrc.json chore: switch to ESLint to be able to turn off certain rules 1 year ago
.gitignore test: generate coverage reports using nyc 1 year ago
.mocharc.cjs refactor: switch to ESM modules and mocha 1 year ago
.nycrc.json test: generate coverage reports using nyc 1 year ago
LICENSE.txt Rename LICENSE to .txt 1 year ago
README.md feat: extend credits for kudos 1 year ago
commitlint.config.cjs ci: enforce commit message format using commitlint 1 year ago
index.d.ts ci: finally set up boilerplate code for Fastify, tests and typechecks 1 year ago
index.test-d.ts ci: finally set up boilerplate code for Fastify, tests and typechecks 1 year ago
package-lock.json test: generate coverage reports using nyc 1 year ago
package.json test: generate coverage reports using nyc 1 year ago
tsconfig.json ci: finally set up boilerplate code for Fastify, tests and typechecks 1 year ago

README.md

emoji-plants

Grow emojis together

I use that jam for exploring some multiplayer ideas I wouldn't be able to implement for js13kgames.

Right now, the game is about growing a plant …

One player can control the weather, the other the plant. They communicate via emojis.

Weather can consist of 🌞or 🌧 or 🌬, I guess. It corresponds to 🙂 / 😭 / 😗.

Now, on the other hand, I'd like to see a plant grow.

I have 🌱and 🌳 and 🍃and 🍂.

TODOs

Models

These are the core entities in my game. They collect properties in a structure.

Person

The UI first asks for a nickname. It then generates a nanoid and associates it with this person. A person can either have the role host or guest.

Party

A party has a person nanoid as host and a list of people nanoids as guests.

A person can create a party. In this case, that person will become the host. Alternatively, a person can join an existing party as guest. The host has to accept the request to join. Each person can only be in one party at any given time. With closing of the connection, that person will leave its party.

Session

A session has a nanoid, that maps to a party. That is the only information the server will ever hold. The server maintains a list of parties. The remaining communication uses WebRTC DataChannels.

Plant

A plant evolves through all four seasons. It starts in spring. To grow, it needs fresh air, rain and sunlight. It needs to exceed a certain treshold to reach the next level.

Actions

Models are interacting with each other in a defined way.

Create a party

The user creates a request to the server to create a new session and adds the id of that user as host. The guests are an empty array.

Kudos

All emojis designed by OpenMoji – the open-source emoji and icon project. License: CC BY-SA 4.0