Friday, 28 April 2017

Forest Fire - Now With Mountains and Lochs


The forest fire cellular automata was a lot of fun to work on and watch. It has now been updated thanks to a welcome pull request which adds a Speed slider to the UI.

I extended it further to add some simple procedurally generated mountains and lochs (lakes). One challenge here was to keep the time down (it takes a lot of recursion). A quick way to get some speed was to reduce the resolution so each cell is 3 pixels square rather than 1.

The interface isn't as phone friendly as it was but is still usable and runs fine and at a decent speed. This thing will happily keep a core of your CPU burning so be sure to close the tab if you are on low battery!

Thinking ahead I would like to make the mountains less round and add an isometric view. Feel free to beat me to it with a pull request. Enjoy!


Monday, 24 April 2017

Dart SDK and Dartium 1.23.0 Chocolatey Packages for Windows

Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface.

You can install unmoderated versions by specifiying the install version during installation.
Chocolatey has also been updated with versions 1.23.0
Command line installation:
choco uninstall dart-sdk

choco install -y dart-sdk  -version 1.23.0
To verify you have the right version on your path.
dart --version
Dart VM version: 1.23.0 (Fri Apr 21 03:13:00 2017) on "windows_x64"

Command line installation:
choco uninstall dartium

choco install -y dartium  -version 1.23.0