Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Objects are tiles too?

This topic is 5648 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a simple question. An object, for example, a key. Is this a tile too? Example: tile is 32x32 pixels. You want to draw a key, and the other pixels are black, so they are drawn transparent. That works for me. But is this the normal way, because, how to check if you walk over the key? When you ''touch'' the tile of the key, you don''t touch the key itself. I hope you guys understand me help Thanks

Share this post

Link to post
Share on other sites
Whatever way you want to represent it.

I re-programmed Gauntlet a long time ago and treated objects as square tiles. It worked just fine. It actually makes the game seem more like a game, as if the objects to pickup are powerups or something.

Forcing the player to move closer to pick up a smaller object just because they haven't actually touched the pixels might be a little annoying, but only a little.

Ultimately, what it comes down to is a separation between the graphics for the object and the collision model for the object, which I think is a good way to approach game development, anyway (to treat them separately, that is).

[edited by - Waverider on January 29, 2003 2:32:05 PM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!