Jump to content
  • Advertisement


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


Platform games - the best technique?

This topic is 6964 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 am creating a platform game (like mario, DKC etc..) and I am trying to figure out the best way to blit the construction of the levels. I was wandering what technique most games use? The techniques I know are...
1- Store the objects in an array with their x and y position in the level, and at every frame test each object if its co-ords are on the screen, then blit it.
2- Create a grid of the level, then fill the grid with the objects, then at every frame, only look at the current screen area of the grid and blit.

Any ideas? I need performance basically.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
This is what I do in my games,
I create a Large Array for each level,
Then each character in the array repersents a different picture. You can then write a function to animate the static pictures with a Timer, as I did, theres other ways to do it, but my game got GREAT performince, this was a DOS game, and I was getting over 80 fps.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!