Your own JAVA game
By wildfruit
@wildfruit (233)
Philippines
October 6, 2008 10:16am CST
Have you tried creating your own game using JAVA? If so, can you guys give tips because I'm planning to do so as well but I don't know where to start. I have a background on JAVA but to me, creating an actual game is another thing. So please, can anyone help me?
1 person likes this
2 responses
@mr_mlk (364)
•
19 Oct 08
I've created a few small games in Java. As with any project, in any language - start small and work up.
I would look up the Java Fullscreen API. Create a full screen frame, then get the graphics object for it. Create loop on the lines of:
Check key events
Game logic
Draw to a buffered image
Paint buffered image on the frame.
Start small, so first get a full screen window that exits when you press say the escape key.
The create a sprite, and display this. Then move the sprite with the arrow keys.
javagaming.org will have some tutorials I think.
@srikool (936)
• India
16 Oct 08
ohh no..i didnt try it..i think i am not that much good in that language ..i know the core java well..not sure about the swing and all..i myslef didnt fo this..i think the games are should be cread in swing..so now i am going to read this discussion to get any idea..thanks for this question.