Page 1 of 1

How can be made a 3D game like Ortho Robot?

Posted: Thu Jan 24, 2013 9:13 pm
by tavuntu
I was wondering how could the Stabyourself.com team do that game with a 2D engine, the only reason I can think about is a simulated 3D game,
Am I right? and, How could I make a little cube spining on the screen? (only to probe a little of 3D).

Thank you very much.

Re: How can be made a 3D game like Ortho Robot?

Posted: Thu Jan 24, 2013 9:23 pm
by Jasoco
Ortho is not 3D. It's 2D with projection. 3D requires perspective, in which the further objects are scaled down smaller. Orthogonal projection keeps all "Z coordinates" the same scale with the proper offset.

Why not download Ortho Robot yourself and see how they did it? It's built with Löve.

Ok

Posted: Thu Jan 24, 2013 9:34 pm
by tavuntu
Thanks, I only want to know if they used a special class/classes to get help with that projection, but your right, I'm goint to look the files of ortho robot.

Re: How can be made a 3D game like Ortho Robot?

Posted: Fri Jan 25, 2013 12:43 am
by Jasoco
It's probably dead simple. Since you're not actually doing any distance calculations, it's basically just taking the Z offset and manipulating its X and Y by its distance. Okay, so hard to explain. Just look at the code. lol Maurice is amazing at Löve. Shame he never posts here at all.