Advertisement

World Objects (Sprites vs Tiles)

Started by July 13, 2001 06:50 PM
2 comments, last by Xorcist 23 years, 7 months ago
I have a quickie question and would like some opinions on the best way to approach a simple problem. I''m working on a Pacman clone and I am trying to decide how to handle the pellets. Should they be sprites? or would it be better to leave them as tile graphics? They are not animated in any way, and I figured doing a tile collision test would be the simplest way to approach eating one (tesing of course that pacman is well enough inside the tile to have actually eaten the pellet). What would be the benefits, if any, of using sprites over tiles? Should I use sprites? Any advice would be greatly appreciated. Thank you.
Tiles would be the easiest, but both would work. As long as you want them to all be spaced out evenly, then I would just use tiles for them.
Advertisement
I think it makes more sense to draw them as sprites, but test the collision on a per-tile basis. eg, whenever you enter a new tile, test to see if it contains a pellet, if so, eat it.
yeah, just draw the pellets and then use tile collision.

thuned.dhs.org/projectxf/pacman
is what we did for a group final in java last year.

life is unfair, take advantage of it.
UNMB2 - if the link doesn''t work, try clicking it
life is unfair, take advantage of it.UNMB2 - if the link doesn't work, try clicking it :)

This topic is closed to new replies.

Advertisement