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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
tavuntu
Citizen
Posts: 65
Joined: Mon Dec 24, 2012 6:56 am
Contact:

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

Post 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.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

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

Post 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.
User avatar
tavuntu
Citizen
Posts: 65
Joined: Mon Dec 24, 2012 6:56 am
Contact:

Ok

Post 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.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests