Warning: Declaration of thesis_comment::start_lvl(&$output, $depth, $args) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /nfs/c03/h01/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0

Warning: Declaration of thesis_comment::end_lvl(&$output, $depth, $args) should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in /nfs/c03/h01/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0

Warning: Declaration of thesis_comment::start_el(&$output, $comment, $depth, $args) should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /nfs/c03/h01/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0

Warning: Declaration of thesis_comment::end_el(&$output, $comment, $depth, $args) should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /nfs/c03/h01/mnt/50298/domains/gamedev.michaeljameswilliams.com/html/wp-content/themes/thesis_18/lib/classes/comments.php on line 0
Avoider Game — Part 7 — Michael James Williams

Avoider Game — Part 7


{ 13 comments… read them below or add one }

MichaelJWilliams February 17, 2009 at 12:01 pm

800/16, not a bad score I guess.

MichaelJWilliams February 23, 2009 at 7:37 pm

It’s been pointed out that you can move the avatar outside of the “walls” of the game and just sit there racking up points. Oops. Check out the comments on Part 7 for hints on how to fix this.

Edit: Fixed! Check out this post for more info.

Manolis March 8, 2009 at 12:32 pm

how possible would it be to move the avatar and 2 directions at the same time? I mean if we press right and up arrows, then the character would move to up and right.(while now it moves only at one directions when 2 keys are both pressed).

MichaelJWilliams March 8, 2009 at 12:38 pm

Very possible! Check out the comments on the main part of the tutorial for more.

Michael Williams June 9, 2009 at 10:46 pm

…and also the tutorial, Diagonal Movement in the Avoider Game.

Ines November 25, 2009 at 8:09 pm

I’m pretty sure it displays half the actual time I stayed playing, I had to divide per 500 instead of 1000 to get the actual time in seconds… anyone knows why this happens?

Michael Williams November 25, 2009 at 8:32 pm

Odd… what’s your timer’s delay?

Ines November 25, 2009 at 10:01 pm

25 miliseconds, just like in the example. In fact, if you time the game in the example embedded in this very page, it also counts half the seconds, so I guess this is not happening just in my code (sorry for any mistake – not a native English speaker).

Michael Williams November 27, 2009 at 6:28 pm

Hmm, I just timed it, and it is a little off (22 seconds in real life, but game reported it as 19 seconds) but not half the speed.

The AS3 Timer class does not keep perfect time, it’s true. I know someone who is working on improving it 🙂 I’m surprised to find it so far off in your case, though. Are you running a lot of other things on your computer?

Ines November 30, 2009 at 2:54 pm

Hehe, in fact, I’ve been using the slowest and oldest MacBook in all of my office for a couple of months now =P I hope that’s not the reason!

Michael Williams November 30, 2009 at 7:08 pm

Ha! Well, it’s possible 🙂

Touchi November 23, 2010 at 7:32 pm

It seems to be an error in the source code of part 7, the score and time elapsed dont work correctly, could you give a check to that?

GeorgeMan March 8, 2012 at 5:58 pm

Are you Greek??
If you are:
Όπα ρε! Έχουμε και Έλληνες εδώ;

Leave a Comment

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