Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Would it be impractical to code a game that is running a 2d and 3d version of the game?

A topic by tic458 created 19 days ago Views: 140 Replies: 4
Viewing posts 1 to 3

As a new game developer I know I'm filled with a lot of big ideas so before I go spending hours trying to brute force myself an answer, is trying to code a game that would be playing a 3d and 2d version of a game a huge coding task? I understand logically I'm now essentially making two versions of the same game but would the transfer from a 3d version to 2d version be as simple as having the 2d game world happening above the 3d game world and just changing cameras and adding the basic code ideas of "if camera is 2d use 2d inputs" and "if camera is 3d use 3d inputs"?  

(+1)

I have no idea what you mean. There are games that switch between 2D and 3D, but they’re still 3D internally. Sonic Colors, for one. I think the Super Mario Galaxy series also does that from time to time.

I want two game worlds. a 3d world and a 2d world. when the character moves 5 ft in the 3d world I want the character to be moving that same 5ft in the 2d world. I want the player to be able to freely choose between the 2d world and the 3d world.  Would coding a game like that be extremely advanced for a new programmer like myself or would the solution be as simple as having the 2d world float physically above the 3d world and having a button to change your camera view thus changing  which world the players are playing in?

(+1)

I would say it is not practical to have two separate worlds, because they will inevitably desynchronize over time as numerical errors add up.

On the other hand, it is completely normal to switch between views of the same world, and have different control schemes for each.

(+1)

Uhh. What.

First of all, if all that happens, happens in "both" worlds, than you do not have two worlds, where one is 3d and one is 2d. You have a 2d world with two viewports. Unless you have some clever ways of implementing height despite being 2d. I think that early Doom game was a 2d map as in, you could not be at the same spot in  a different elevation.

You can have the game logic and output it via the 2d engine or the 3d engine. But of course your game logic is dependent on user interface and what the player can do in response to what the player sees and there is a fundamentally different approach if you shift your point of view. Of course it is trivial if you just switch from isometric 3d view to "2d" top down view. You just shift the axis to have the 3d world be a 2d projection.

Secondly, what do you think a minimap or a full map is? ;-) If you do not deactivate controls, your map view is 2d.

I remember a game that could for some parts or all of it played in such a fashion. Hidden & Dangerous. You could switch to top down view from ego perspective.