I am fairly new to android, although I have been using Java for a while. I am creating a 2d maze based game which consists of a bunch of walls and a rotating player piece (which rotates 360 degrees), while trying to get from the entrance to the exit of the maze - without touching the walls.
My question is, what is the best way to represent the walls of the maze and the playing piece (which rotates, hence doesn't always occupy the same location on screen) so that I can effectively check for collisions between the two entities? The level itself will be quite small so the maze will be a png background image which moves when the player moves up, down, left or right (the playing piece will remain at the center of the screen). I was thinking of drawing a polygon object over the walls of the png image and try to detect collisions between the rectangle playing piece and the polygon shape - is this possible? There may be a better way, if there is please let me know! Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---