
-----------------------------------
gsquare567
Fri Jun 09, 2006 10:07 am

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   :D

-----------------------------------
HellblazerX
Fri Jun 09, 2006 10:22 am


-----------------------------------
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 [url=http://java.sun.com/j2se/1.4.2/docs/api/]Java API or [url=http://javaalmanac.com/]Java Almanac to learn more about the Graphics class and its methods.

-----------------------------------
gsquare567
Fri Jun 09, 2006 11:33 am


-----------------------------------
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
Fri Jun 09, 2006 2:51 pm


-----------------------------------
cant edit posts???
anywayz, is there a tut with all this graphics stuff like swing and graphics?

-----------------------------------
[Gandalf]
Sat Jun 10, 2006 5:01 pm


-----------------------------------
[url=http://java.sun.com/docs/books/tutorial/2d/index.html]Sun's 2D Graphics Tutorial.

-----------------------------------
gsquare567
Fri Jun 16, 2006 12:04 pm


-----------------------------------
nop not much help. could somebody make a tutorial with an introduction to making games? extremely beginner tuturoal if possible. thanks!

-----------------------------------
wtd
Fri Jun 16, 2006 12:08 pm


-----------------------------------
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.
