Jump to content
  • Advertisement
Sign in to follow this  
ov3r_dr1v3

OpenGL drawing on top of tile

This topic is 4240 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

Hey... I am making a 2D racing game and so far its going ok, I have drawna track, which is based on a 2D array, and have a car moving around the track... The next stage i am looking to implement is to have little boxes of ammo scattered around the track, that when the car drives through increases the cars ammo count, and then the box of ammo disapears.. I'm having real trouble implementing thsi is opengl... My thinking was that when im searching through the 2D array and drawing the track tiles, if i come across the number 7, which i have assigned to mean 'piece of track with ammo on it', then i would draw the track tile as normal, and then draw a small box in the centre of the track tile.. However, when i tried to do this it seemed to jsut mess up the entire track.. If any one could hepl me id be greatful, thanks very much

Share this post


Link to post
Share on other sites
Advertisement
It's kind of hard to guess what the problem is from your description, so you might post some code (such as where you render the ammo item).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!