Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

microracer game

 
bab javier
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi! anyone familiar with the codes of this game? it came from the book "Micro Java Game Development" by David Fox...actually, i just downloaded the code
there are methods there from the GameCanvas class, like initEnemies and initPowerups, that doesn't have specific method calls for them. i have pieced through the codes of the other classes but cannot find one. these are user-defined methods and they are always executed. i can't make sense out of it


thanks for the help in advance, guys!
 
Fernando Sanz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can I download the code from, so that I can have a look and see if I understand it?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go to www.awprofessional.com and type the ISBN (0672323427) into the search field. Click the book and you'll see links to the source code.
And the initXXX() methods are being called from a command listener block in RacingGame/src/Tracks.java (apparently when the user selects one of the available tracks)...
[ August 18, 2003: Message edited by: Lasse Koskela ]
 
bab javier
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tnx again i kinda overlooked it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic