File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Game Development and the fly likes Killer game programming in java - three questions - Worm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Killer game programming in java - three questions - Worm" Watch "Killer game programming in java - three questions - Worm" New topic
Author

Killer game programming in java - three questions - Worm

Fernando hiar
Greenhorn

Joined: Jan 11, 2008
Posts: 29
I have three questions about the game Worm in the Killer game in java book´s, why I use the value 0.7 in the bearing NorhWest, NorhtEast, SouthEast and SouthWest Why Don´t used the value 0.5 because this value is a half of 1 who i will walk in the straight ???
Why the fixedOfss[] = { 2, -2, -4}; has the value -4 and the value 2 and -2 the Points "walks" in two position is more quickly than 1 or - 1 whos walk in 1 position???
Why I used the cells[headPosn].x - RADIUS - x, it is to get the head more halfhead who´s the error if I don´t click in the center of head of Worm???

thank you,

Fernando.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Killer game programming in java - three questions - Worm