Skip to content

StrawberryMaster/cyclone-sim

 
 

Repository files navigation

cyclone-sim

GitHub issues GitHub last commit GitHub repo size GitHub code size in bytes P5.js Luxon.js

A fork of Monsoonjr99's cyclone-sim, a p5.js tropical cyclone simulation game, intended to be more efficient in terms of code and performance. Formerly known as Mona Spoon's Gerrymandered World. This is a work in progress, and is not yet finished. If you want to contribute, see the contributing section.

How can I play this?

You can play the game here. Alternatively, download the files, extract them to a folder and open index.html in your browser.

You said this is more efficient. How so?

I have made a few changes to the code to make it more efficient, or at least easier to update. Among these changes are:

  • Updating the p5.js library to the latest version - old one was from 2019!
  • Replacing moment.js with luxon.js, which is a smaller library that does the same thing.
  • Cacheing the results of some functions, so that they don't have to be recalculated every frame.
  • Replacing constants with enums, for simplicity.
  • Lots of other small changes.

Can I contribute?

Sure! You can fork this repository, make your changes, and then create a pull request. Make sure to test your changes before creating a pull request. I will review your changes and merge them if they seem good. If you are not sure what to work on, you can look at the issues tab, which contains a list of issues that need to be fixed.

How can I report a bug?

You can create an issue on the issues tab. Make sure to include a description of the bug, and how to reproduce it. If you can, include a screenshot of the bug, and check to see if the bug can be reproduced in the original Cyclone Simulator. If you are not sure how to create an issue, you can look at the GitHub documentation.

About

A p5.js tropical cyclone simulation game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.3%
  • Other 0.7%