Rendering graphics in JavaScript games

Thursday, January 7th, 2010

As I've been rewriting TankWar, I've been thinking of various approaches to displaying the game's graphics. At the moment, I can count three feasible approaches for rendering game graphics: DHTML - In other words, using divs with images and moving them around Canvas A hybrid: Canvas with DHTML I've considered each of these, and ...

Rewriting TankWar: Assessing the damage

Wednesday, December 16th, 2009

I have decided to rewrite TankWar, and I'll be writing a bunch of blog posts about the process. If you ever wanted to know how to write a scorched earth/worms-like game using just JavaScript, now is your chance to learn ;) This is the first one: Assessing the damage. In other ...

TankWar has online mode again: This time on Opera Unite

Wednesday, December 2nd, 2009

You may recall an earlier post about TankWar, my 100% JavaScript cannons-game. Back when I wrote it, I included online play, but the server went down with a hard disk failure. Now, I have rewritten the online mode - this time that part is also all JavaScript - continue reading to ...

Using canvas to do bitmap sprite animation in JavaScript

Friday, August 21st, 2009

Have you ever thought about writing a game? If you have, you've probably wondered how to render animations for your game characters. In this post, I'll show you how you can use JavaScript to do time-based sprite animations, drawing them on canvas - vital if you want to do a ...

Opera Command, JavaScript based Missile Command game

Tuesday, July 14th, 2009

Firstly I'd just like to let you know that the lack of posts lately is because I have a new full time job which I'm enjoying quite much so far, but it still means I have less time / motivation to write stuff. The unit testing series and other postings ...

TankWar Online, my JavaScript based cannons game

Tuesday, June 30th, 2009

Back in late 2006 I wrote my most ambitious JavaScript/game project so far: TankWar Online, which as you may guess from the name was about tanks, shooting stuff, and it had a real-time online game mode - as far as I know, the first such ever in a JS based ...

How WidgetCity does a tile-based map using just CSS

Monday, June 15th, 2009

My city building game, WidgetCity, displays the city as a table, each cell of a table representing one tile. The tile map is done purely using just CSS, and CSS classes. The map is also scrollable. How is this all done?

I wrote a Sim City clone in JavaScript

Tuesday, April 28th, 2009

This is why I haven't been updating lately: I have been working on a Sim City clone, written purely in HTML, CSS and JavaScript! The game is called WidgetCity, and I'm participating with it in the Betavine Widget Competition 2009. The game was designed to run in Opera Widgets mode, but it ...

GroupFight: My old PHP-based game

Monday, January 26th, 2009

First an announcement: During 2008, CodeUtopia had about 120 000 visitors! I think that's amazing, and I want to thank everyone who has been reading the blog. I'm going to try and keep posting interesting things for you to read this year too. :D Now, to the post: Back in 2003 ...

Programming language guessing game

Tuesday, December 9th, 2008

Some of you asked me about the "quiz" thing that showed up in one of the screenshots in my NetBeans review... Well, here it is: During that weekend when I was trying out NetBeans, I wrote a small Zend Framework + Doctrine application which attempts to guess a programming language ...