Giter Site home page Giter Site logo

apridgeon / whatstomata Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.1 MB

Plant science stomatal outreach game project

Home Page: https://apridgeon.github.io/WhatStomata/

License: GNU General Public License v3.0

HTML 1.82% JavaScript 98.18%
science stomata plants phaser3 biology guardcells leaves science-outreach plant-science gas-exchange

whatstomata's Introduction

What's Stomata?

A javascript based game using the Phaser3 game engine that I started to make. The idea was this could be used potentially for science outreach events to introduce people to the concept of stomata and plant gas exchange control. Additionally, this was a project I started to learn javascript . Although incomplete, here is a rough idea of what this game would have become. All of the code is here, so I welcome any people who want to take this further.

Gameplay Aims

Balance a plants uptake of CO2 against water loss by controlling the opening and closing stomata
Accumulate as much biomass as possible
If the water levels go below 0 the game ends

Mechanics

ATP is generated by using up CO2
You can increase the amount of ATP generated per CO2 molecule by upgrading ATP production
You can use accumulated ATP to generate more stomata, upgrade plant processes, water stomata etc...

Future Ideas

Currently the game mechanics have not been optimised (a lot of balancing is required)
Add night and day (close stomata at night, open in the day - unless a CAM plant?)
Add more potential upgrades. There are lots of potential directions in which this could go
Add a grass stomata element with subsiduary cells, faster dynamics etc...
Add better instructions

Disclaimer

Having had no major exposure to the language prior to this there were points where I have likely not coded it in the most efficient/logical way. However, I've tried to comment what each bit of the code is doing. My defense is this was my first attempt!

Play the current version of the game

https://apridgeon.github.io/WhatStomata/

whatstomata's People

Contributors

apridgeon avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

zetx2024

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.