[java] java game programming
hi. i am new to game development and i cant figure out how to create a game as a java console application.. is there a tutorial or sum sort of guidance available?
Make a file "Game.java".
Put:
And that's the console application, implemented by Game class.
Put:
class Game { public void run() { // game stuff } public static void main(String[] args) { Game game = new Game(); game.run(); }}
And that's the console application, implemented by Game class.
Quote:Original post by parul_agrwl
thanx a ton.. and duz it create a gui automatically?
Console applications don't have a GUI.
It only makes a console automatically, and you can argue that that's a GUI.
If you want a window, you have to make one yourself using a library like java.awt or javax.swing, which you can find tutorials for on Google.
If you want a window, you have to make one yourself using a library like java.awt or javax.swing, which you can find tutorials for on Google.
Before you try to make a game, you should be come familiar with the language. I would recommend that you do this entire tutorial from start to finish.
The Java Tutorial: http://java.sun.com/docs/books/tutorial/index.html
The Java Tutorial: http://java.sun.com/docs/books/tutorial/index.html
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement