DRUNK TURTLE'S RANDOM DIFFUSION LIMITED AGGREGATION WALK
Diffusion Limited Automata script based on http://www.roguebasin.com/index.php?title=Diffusion-limited_aggregation
0 |
-- orbital composite | |
-- @mzxio | |
-- constants ------------------ | |
pi = 3.14159 | |
rad = 2 * pi | |
DRUNK TURTLE'S RANDOM DIFFUSION LIMITED AGGREGATION WALK
Diffusion Limited Automata script based on http://www.roguebasin.com/index.php?title=Diffusion-limited_aggregation
<div id="game"> | |
<div id="controls"> | |
<p><button onclick="lighterClick(1)">Make Spark</button> 💥 <span id="spark">0</span> </p> | |
<p><button onclick="growFire()">Grow Fire</button> 🔥 <span id="fire">0</span> </p> | |
<p><span id="fireCost">10</span>💥 = 🔥</p> | |
</div> | |
<div id="graph"></div> | |
</div> |
#portal |
//.controls | |
b Controls | |
ul | |
li Forward/back thrusters: Up/Down or W/S | |
li Rotation thrusters: Left/Right arrows | |
li Lateral thrusters: A/D |
a low friction slippery canvas space game component.
started by porting the guts of skidracer's How to make Asteroids in an hour or so from blitzbasic to js.