Wednesday, April 1, 2015

"They Live" Adblock mode

There's a browser extension called Adblock Plus which detects and removes ads from web pages.

A neat hack is to replace the images with something else -this has been done with Catblock, which replaces them with pictures of cute cats.

In the 80s classic action move They Live, the protagonist gets some high-tech sunglasses which allow him to see the world as it really is:

Today marks the 2nd April 1st in a row that I've failed to get around to implementing the idea, so I throw it out there to the world in the hope that someone else will do the hard work for me and I'll be able to use it in my browser. Good luck!

Tuesday, October 11, 2011

LSystem 4

Click the image on the left to launch the demo.

Added Google maps style scrolling, click & drag to move around.

Monday, June 6, 2011


"I think that I shall never see, a poem lovely as a tree"
-Alfred Joyce Kilmer

It's often said the beauty of nature far surpasses that of man. With the goal of this site being to generate pretty pictures algorithmically, I thought it would be interesting to think about how nature works from this perspective, so we can shamelessly rip off its ideas.

There are a small amount of types

Nature seems to work with "alphabets", ie a small number of types that combine together at different levels to produce different behaviour.

Eg quarks combine to form electrons/protons/neutrons which combine to form the chemical elements. I don't think this is just how science has been modelled by humans, but rather a necessary part of its ability to generate complex outcomes like the universe & nature and intelligent beings like us actually thinking and experiencing it all.

Sunday, June 5, 2011

Cloud fighter v0.1

One benefit of procedural content generation is to get a lot of content from a little bit of code. Traditionally this was done with clever algorithms, but another way is to utilise online cloud services to generate content for you.

A huge proportion of the effort required to make a game similar to 1942 is art and design of levels. By abusing free online services and the hard work of thousands, I can make a very quick version in minutes using Javascript. Click the image to play & use the arrow keys to turn and space to drop bombs.

Note: the game is currently really crap with no death or ending. I've been really slack on finishing this off, but will get around to it one day.

Tuesday, May 24, 2011

Reminiscing on XTux

Way back in 1999, I wrote a game (in C using raw X-Windows calls!) for Linux called XTux.

The graphics were made by my friend James Andrews (who recently started a blog on iPhone games)

Some interesting things I remember from the project:

-All data was in flat text. The maps kind of looked like ASCII art.

-You could write text strings onto the maps (see Slashdot level screenshot)

-Particle System (see railgun trail and blood splatter in screenshot). One of the most common forms of procedural graphics, now standard in most game engines - this was my 1st implementation and I got a lot of use out of the code (weapon effects, smoke, explosions, blood etc)

-Recording/playing demos was a nice hack: The client was very simple - read messages about what to draw from the server. By taking advantage of the polymorphism in Unix file descriptors, the source could be either a socket connected to the server, or a stored local file of previous gameplay.

-Generating different images (eg preview mini maps) from displaying the same map data in different ways.

-Because the levels were flat text, I was able to easily write a Perl script to generate levels, though I didn't take that beyond generating an arbitrary sized maps of grass with randomly placed trees.

Wednesday, April 6, 2011

WebGL - 3d in the browser

You may have noticed the software on this blog is written in javascript (HTML5 Canvas), with the goal being you don't have to download any software to view the demos.

The trade off is things run much slower than native code. But computers are really fast nowdays & and people's attention span and desire to install software is very low.

Finally there seems to a 3d web standard emerging, WebGL - a 3d version of the 2d canvas library I have been using, and so fits in the same niche described above. Click to find out "does your browser support WebGL?"

Some cool examples:

A Tron Lightcycle game on 3d surface:

Thursday, August 26, 2010

Skies & Silhouettes

Click the image on the left to start the demo. Update: There appears to be a bug that shows up in Chrome, where the sky is really blocky, but it works fine in FireFox.

I've got big plans for doing a project with heaps of skies and silhouettes (I'm kind of obsessed by them), and made this little program to quickly test out what different generated skies look like.

I had fun playing with it, hope you do too. Try out some examples, change the color values and click the button.

Update: (23/9/10) Added MaxAlpha setting, the actual alpha is a random number between 0 and this value, so the fact that you can set a number much higher than 255 is a feature not a bug.