Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Pedro Gilbert   on May 16 In Java Category.

  
Question Answered By: Constance Reid   on May 16

Sorry about the delay, my connection degraded to the point of having
to call SBC and having them replace the line... actually they
switched me to "another?" line, while they repair my old one... end
result 4 days no connection with hyperworld, but now i'm back...

Glad to see you've figured out your problem on your own, actually I
may have never thought of that... I've implemented something similar
to what you are doing by drawing my "snake" to an array and having
my "snake" class draw itself everytime it was called. This makes
collision detection easy. Utilizing the game engine class just make
a call to the "snake" array and test every segment of the "snake" for
collision with walls, jumpgates, snake treats, enemy snakes, ect.
Although it may not work as well with your implementation as your
snake grows constantly... I was planning ahead thinking maybe you
might later plan on having your snake only grow when it eats enemy
snakes or whatever... well that is my 7.5 cents...

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Image/Graphics color Or get search suggestion and latest updates.


Tagged: