Giter VIP home page Giter VIP logo

livingphysics's Introduction

Living Physics

Artificial chemistry game. Live version: https://timhutton.github.io/livingphysics/ <-- CLICK TO PLAY

History:

  • OrganicBuilder was a version of this idea, written as a Java applet. Lots of people used it, and in 2007 I wrote a paper about what they created.
  • A port to Android was made, written in Processing, and was for several years available as an app on the Google Play Store. That had something like 30,000 downloads.
  • Now ported to the web using processing.js

TODO:

  • port to p5.js (a more modern version of processing.js) or to native javascript, or C++ and OpenGL through WebAssembly
  • make the interface more appropriate for the web

Testing locally:

livingphysics's People

Contributors

timhutton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

livingphysics's Issues

Cope with adaptive framerate

On Firefox on Windows on a laptop, the framerate drops to 30 after a few seconds, and even lower if the laptop is not plugged in. This is to save battery. Other browsers dont have this feature. Android doesn't seem to do this.

Whatever the cause, Living Physics should cope - by running the simulation at a constant speed whatever the framerate. Currently the atoms slow down when the framerate drops.

Challenge 'Mitosis' can be solved with only 3 reactions

y2-y1 -> y3+y4
y3+y3 -> y1-y1
y4+y4 -> y1-y1

This is not the intended sort of solution.

Thanks to Måns Grebäck for pointing this out. (In 2012.)

Add a check that the loop hasn't been broken. Maybe put stuff inside. One atom to go in each daughter cell?

can't dismiss reaction list

After I add a reaction on level 2 it looks like this:

image

I can't find a way to close that screen - I guess the button for it is off the edge of the screen?

Occasional lost reactions

Not easy to reproduce but I've seen cases where a set of reactions has been saved (and is visible in the localStorage in the browser) but only one is loaded for that challenge. This is annoying for the user because it means their work is lost.

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.