Honey Is Made From Dead Bees

… and other insights into the world from Daftspaniel

HTML5 – Generate Landscapes with Canvas

leave a comment »

I have been hacking away at the HTML5 canvas again and have moved away from the building block look of previous efforts. I did venture to Java and back to Javascript which means I need a less intensive way to generate the landscape. Thankfully I turned up some good ideas and even pseudocode on a few games forums. I have not decided yet on a platform for this program and each prototype iteration has been a move. Python/Pygame would be nice, .Net has potential (Xbox?), Java (web, Android) – right now the portability of HTML5 is very tempting though getting worker threads running has issues and a few other vital features are a little immature. Most platforms have enough drawing primitives to support it (though alpha channels on Java in Linux are really slow). Hmm bit of ramble there but any suggestions appreciated 🙂

Anyway, here’s a screenshot of the current HTML5 output which renders near instantly at page load. The clouds are a recent addition and are slightly alpha blended.

When sufficiently mature I’ll add some buttons and pop it up here again. Not likely to be this side of Christimas though maybe before 2011.

Advertisements

Written by daftspaniel

December 23, 2010 at 10:25 pm

Posted in 2011, Android, ChromeOS, Web

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: