(This is part 1 of 2) This tutorial will teach you how to make a Java side scroller 2D game such as Super Mario.
Points to note:
A) You can loop the background so that your character stays in one spot and the background moves (like how it is in old Mario games)
B) You can use different images for your "main character" such as one of him walking left, crouching, etc. so that when you press left it seems as if the character actually turns left
C) You can add jumping capabilities by using a thread and a run method to make it look like the jump is animated (I've talked about this in previous videos)
D) For every other object you add (such as an "enemy" that must be killed or a missile that is shot) you must create another class to hold that item's x coordinates, y coordinates, etc.
If you need help implementing any of the above items send me a message and I will send you code to do so since I'm working on a full side scroller (2D and 3D) with enemies, missiles, save points, etc. Also, I will make videos in the future talking about some basics of these items.
Thank you
Nesta página do site você pode assistir ao vídeo on-line 1 - Java 2D Game Tutorial/Help (part 1) - Side-scrolling game duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário MrJavaHelp 01 Janeiro 2010, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 175,626 vezes e gostou 622 espectadores. Boa visualização!