Jump to content
  • Advertisement
Sign in to follow this  
Storyyeller

How to design a pseudo 3d game?

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

Currently, I'm making a 2d platform game in C++ with Box2d for physics. I have an EntityManager class, which is basically an entire instance of the game encapsulated. In addition to updating and drawing entities, it transforms input into commands for the player, plays music, saves the game, etc. When the player enters a new room, the EntityManager deletes all existing entities except the player, loads the entities of the new room, and then adds the player back. However, one of my level concepts requires major changes to this design. I'm trying to figure out the best way to redesign my game. I want the game to occur in multiple planes in a sort of 3d effect. Entities can be swapped between the planes but otherwise, the physics on each one happens independently. I guess what I want is pretty similar to the game Time Fcuk. So how can I redesign my game to make this effect possible? I'll probably need a different b2World instance for every plane of every level, as well as a separate list of entities, but I have no idea how to accomplish the swapping. I was also thinking of trying to decouple the entity groups from the game instance, so that I could preload the group of entities associated with a room to speed up room transitions. But the problem is that the entities need access to the game instance so that they can use callbacks to save the game, play sounds, unlock secret items, etc.

Share this post


Link to post
Share on other sites
Advertisement
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!