Author |
Message |
gsquare567
|
Posted: Fri Jun 09, 2006 10:07 am Post subject: Help starting the gaming process |
|
|
i was wondering if you guys could start me on a java game. i know the basics like making a frame with simple views and listeners, loops, ifs, and about 15 basic classes in the API. i was thinking of trying to make a simple program where a box moves around in a frame according to what key the user inputs. i'm not sure which char the arrow keys are, but thats not a problem, i could just use 'a''s''d' and 'w' for left down right up. then maybe work up to a game like a shooter or sumthin. and another question: are full screen games like Warcraft or The Sims be made with java? how are the graphics made? any help would be great |
|
|
|
|
|
Sponsor Sponsor
|
|
|
HellblazerX
|
Posted: Fri Jun 09, 2006 10:22 am Post subject: (No subject) |
|
|
To answer your questions:
1.No Warcraft and The Sims aren't made with Java. They're probably made in C++ or C.
2.To make graphics, you'll need a graphics object. First of all, it'll probably be better to use Swing JFrames, instead of the old AWT frames. Secondly, all components (i.e. the frame) have a paint (Graphics g) method. Java will automatically pass in a graphics object in for you, so you can put your draw commands into this method. You should consult the Java API or Java Almanac to learn more about the Graphics class and its methods. |
|
|
|
|
|
gsquare567
|
Posted: Fri Jun 09, 2006 11:33 am Post subject: (No subject) |
|
|
thanks. so all i know from before is drawOval and drawRect, but im sure theres more than that. so could you make a basic animation or something with this? |
|
|
|
|
|
gsquare567
|
Posted: Fri Jun 09, 2006 2:51 pm Post subject: (No subject) |
|
|
cant edit posts???
anywayz, is there a tut with all this graphics stuff like swing and graphics? |
|
|
|
|
|
[Gandalf]
|
|
|
|
|
gsquare567
|
Posted: Fri Jun 16, 2006 12:04 pm Post subject: (No subject) |
|
|
nop not much help. could somebody make a tutorial with an introduction to making games? extremely beginner tuturoal if possible. thanks! |
|
|
|
|
|
wtd
|
Posted: Fri Jun 16, 2006 12:08 pm Post subject: (No subject) |
|
|
The best thing you can do to advance your goal is get a really good understanding of the Java programming language.
We do have a tutorial for that purpose. |
|
|
|
|
|
|