This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Killer game programming in java - three questions - Worm
 
It's not a secret anymore!