i have fair experience with java game programming,
i already made a simple mario game (side-Scrolling)
i'm wondering how can i make a "Java" Game like that
or that
the main problem is that i don't know how to make a 2D game looks like 3D
i just need a tutorial or the idea behind such things. Thanks in Advance :)

  • 1
    \$\begingroup\$ The idea behind is to use "pre-rendered" sprites to make it look like 3D, and some tricks to create the perspective and relief illusion. \$\endgroup\$ – Valkea May 24 '11 at 18:48
  • \$\begingroup\$ i guess that i need some explanation :D \$\endgroup\$ – Ahmed.Ibrahem May 24 '11 at 18:59

To elaborate on Valkea's comment, the trick is to use 2D sprites just as you would in a "true" 2D game, but shade and style them to give a sense of depth. The game feels 2D because your character has realistic shading that appears 3D, and because the map is constructed so that your character can go behind objects. This is achieved by making your character walk on a 2D space, but partially obscuring your view of him when he goes behind a wall (such as the wall transparency shown from your first link).

Dynamic shadows like those shown in your second link are trickier and uncommon. I would look into the "Sunburn Engine" mentioned in the description of that second video for more details.


If your serious about making proper games with java then you need to stop using stuff like Swing, AWT and Java2D and pick up a proper OpenGL binding, e.g. LWJGL or use a games library built on top of an OpenGL binding, like Slick2D, Ardor3D, jMonkeyEngine, jPCT, Xith3D or LibGDX.

  • 1
    \$\begingroup\$ This doesn't answer OP's question at all; you're just telling him that he is doing it wrong because you say so. \$\endgroup\$ – The Communist Duck May 24 '11 at 20:30
  • 1
    \$\begingroup\$ This should be a comment not an answer. \$\endgroup\$ – AttackingHobo May 24 '11 at 20:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.