Avoider Game: Two Tutorials, One Discussion (and a New Game!)

by Michael James Williams on July 27, 2009 · 1 comment

in Avoider Game Extras,Guest Posts,Tutorial

I had a nice month off, but I’m back now. In my absence, a few awesome readers provided some guest posts over on avoidergame.com! Here’s a round-up…

screenshot

First up is Bram Van Damme’s game, Wesley (with code based on the avoider game tutorial). It’s about a man trying to protect his pizza from rhinos using cola. Same old story. You can read more about it here, or just click here to go play it.

Next, a tutorial by DanielSidhion on a feature that’s been demanded for a long time: mouse follow.

In the avoider game as I’ve written it, the avatar acts more like a mouse cursor, snapping instantly to the coordinates of the pointer. This means you can do the old “right-click teleport” trick. Daniel shows us how to make the avatar follow the mouse at a constant speed, removing these kind of problems.

Also, he uses cool diagrams:

diagram

Click here to read Moving With the Mouse and Using Speed.

Finally, we have two posts by Kevin Neal, aka rescue86k from the forums.

The first, Win the Game Based On Score, is a brief tutorial explaining how to modify the Counter class from the base to add a few new features (with the eventual aim, naturally, of allowing the player to win the game based on their score).

In the second, Kevin starts off a discussion on the efficiency of nested loops, showing that the optimum code in one case may turn out to be a poor solution in another. It’s open-ended, so throw in your opinion here :)

Thanks for filling in for me, everyone :D

{ 1 comment… read it below or add one }

Matthew Ammann July 28, 2009 at 6:38 pm

What a fun game! The fact that you have to guard the pizza is a great addition to the gameplay. Thanks for the link to the constant mouse speed; I’ll have to put that in my next game.

Leave a Comment

Writing code? Write <pre> at the start and </pre> at the end to keep it looking neat.

Anti-Spam Protection by WP-SpamFree

Previous post:

Next post: