🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Platform games - the best technique?

Started by
1 comment, last by SikCiv 24 years, 7 months ago
The second choice would be a better one, in my opinion.

------------------
- mallen22@concentric.net
- http://members.tripod.com/mxf_entertainment/

Advertisement
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.

  Downloads:  ZeroOne Realm

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.

This topic is closed to new replies.

Advertisement