Let There Be LIFE In JavaScript

screenshot - javascript life simulator

Can you create life in JavaScript?

My new project, LIFE, is a simple javascript life simulator in which each digital citizen moves randomly, socializes, ages and breeds to replace citizens that die up to a maximum of 50 live citizens at a time. There is a limit of 50 citizens to avoid crashing the browser. Each citizen starts as a newborn and grows to adulthood. Citizens turn orange while socializing. When the citizens reach breeding age, there is a chance that socializing will result in a new citizen being born and added to the top of the pile. when citizens leave breeding age, they turn grey. When citizens die they turn black, stop moving and decompose until they are removed from the stack.

check it out here

Date
Categories
Tags
Permalink
Status

Published:March 6, 2016

code

Bookmark the permalink

Post a comment or leave a trackback: Trackback URL


Leave a Reply

Please wait...

Subscribe

Want to be notified when a new article is published? Enter your email address and name below to be the first to know.