Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Willing to help a totally newbie?!  (Read 1830 times)
0 Members and 1 Guest are viewing this topic.
Offline ice_28

Junior Newbie




Java games rock!


« Posted 2004-01-13 00:58:38 »

Hi everyone! I'm a junior in high school and I'm currently taking my first year of Java. I took Comp.Sci last year and had a great time learning C++. Now I'm in AP Comp.Sci 2 and they changed the language from C++ to Java, so now I have to learn it. We have to make a game with Java as our end-of-the-year project. It doesn't have to be so glorious like the games professional programmers make, but honestly speaking, I'm totally clueless. I know that I have to learn a lot more about Java codes and stuff. So, is there anything you would recommmend that I study?! Something that could get me started?! I'd really appreciate it. Thanks in advance!  Grin
Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2004-01-13 01:07:20 »

Hmm.

(1) Where are  you in learnign java? Thre are plenty of good books that will give you Java Syntax and thats a great palce to start,

(2) What kind of game are you thinking of?  Simple  turn-based games can be done pretty well using the AWT/Swing APIs.  For anything more real-time you really want to learn about active rendering (for 2D games) OR JOGL (for 3D games.)


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline ice_28

Junior Newbie




Java games rock!


« Reply #2 - Posted 2004-01-13 01:17:14 »

That was fast... uhm... we aren't really learning anything new right now. We're kinda reviewing for the AP Test this Spring. I can't really tell how much I know of Java... probably not that much yet. Some of my classmates already took Java last year, not sure how that happened 'coz last year Comp.Sci was taught using C++. Anyways, I might just go with a simple game. 3d would be cool, but I don't have much knowledge to take the risk. Not at this point.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #3 - Posted 2004-01-13 02:26:27 »

Okay.

Yes I'd recommend you stay away fom 3D. It requires some advanced math to really understand and work with that I don't think you are likely to have studied yet.
(Its stuff I didn't do til college.)

So lookign at 2D action games there are a number of different kinds.  The easiest are like the first video-games (pac man, asteroids, etc).  These have a fixed backgrounds and a fairly small muber of things moving at one time.  I would suggest you look at some of these "retro" games .

There are lots of web sites that have versions of them. Some of the pulbishers like Atari and Williams have re-released packaged collections youccan play on your desktop.  (There's also MAME, but that requries ROM images and, as they are illegal I can't tell you where to get them.  Maybe you have a friend who already knows...)

Playing some of  those aught to give you some good ideas of what you might want to do.

The next sep is learnign how to do that sort of input and animation in Java.  There are a number of good examples that folks around here have written.
(As I recall there's a real nice pac man clone for instance.)  I'd ask the folks here to give you pointers to where you can download some of their examples.

Finally, there are some good resources that you may want to look at as you are studying that code.  There are two articles in particular that I know of that explain some details of 2D active rendering better then the API docs do.

I wrote one called "Understanding AWT Image Types". It used to be posted here but when we changed the site over it was a casualty of the move.  There are copies around on the web, I'lll try to find a copy for you.

The other, on the direct rendering process, was writen by Mike Martak and can be found on the Swing Connection here:

http://java.sun.com/docs/books/tutorial/extra/fullscreen/

If you havent already downloaded them you want to go to java.sun.com and download the J2SE API docs as thats the fundemental reference for all Java programmers.





Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Reply #4 - Posted 2004-01-13 11:54:32 »

To start your game first learn how to display objects on the screen by doing some of the applet/application exercises  found in any textbook. Doing a google search for java game tutorials will yield (old) tutorials on how to get the basics down (animation, movement, collision). After that learn by searching, asking, and using the java.sun.com website about making your application go into "full screen exclusive mode", page flipping, and the bufferStrategy approach to displaying your app to the screen. Then search this fortum about hi a resolution timer (like GAGE2D) that is needed in order to have a fast "proffesional feeling" game. Ask questions if you get stuck but always try to find a solution by your self first.

Kommi
Offline ice_28

Junior Newbie




Java games rock!


« Reply #5 - Posted 2004-01-14 22:55:41 »

Thanks so much! We won't start our projects until late April, although some of my classmates are just too excited to wait that they're almost finished with theirs. We're working in groups. I'm kinda busy with other school stuff, but I'll try my best to check out everything you told me to check out. Hope you can find that something you wrote. I very much appreciate it. Gotta go now... err, still have some homework to do. Thanks again!  Grin
Offline n00bie

Junior Newbie




ill make tomarrows games tomarrow


« Reply #6 - Posted 2004-04-04 17:28:07 »

So the game has to be with graphics?  I know of many text-based games, or is that not allowed?

Ryan
Offline Jeff

JGO Coder




Got any cats?


« Reply #7 - Posted 2004-04-04 20:33:42 »

Good point.  Something like a text adventure is a lot easier to write, but I've found most kids these days don't even know the concept of a text based game and want to make pictures move Smiley

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline ice_28

Junior Newbie




Java games rock!


« Reply #8 - Posted 2004-04-05 02:11:33 »

Hi! Thanks for all the replies. Sorry for the long post. I kinda got busy with other stuff... Anyways, as I've mentioned before, we're working in groups. My group decided to make a slot machine. One of my teammates already got the logic set up (with codes and stuff), so I decided to just work on the graphics. I already have the program with graphics, but now we have to figure out how to add a KeyListener or maybe a MouseListener, doesn't really matter which one we use. We're using the paint() of the GfxApp class, and we have no clue of how to add a listener. Other than that, I think we're ok. Anyways, thanks again for the replies!  Smiley
Offline ice_28

Junior Newbie




Java games rock!


« Reply #9 - Posted 2004-04-05 02:12:24 »

Btw, what is a "text-based" game?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #10 - Posted 2004-04-05 03:46:33 »

Ah grasshopper.

Back in the days when real computers took up entire buildings and "home computers" were low powered curisoities most computers didnt have graphics displays.
You talked to them either through a teletype (a typewriter which you typed into and the the computer coudl type abck at you on) or a CRT which was basically a teletype with a  screen instead of paper.

And people wrote games for these machines.  They were typing based games because thats al lthe hwardware coudl do.  You typed somethign in, and the computer typed something back at you.  

Among the top games of the day were Star Trek and Hunt the Wumpus.  But the biggest of all were two programs called "adventure" and the more advanced 9and later) one called Dungeon.  They pit out pargaraphs describing where you were and what you saw.  You would type command in (eg "take rope", "climb cliff" etc) and it woudl tell you what happened next.

They were eventually releaed on microcomputers unde the names ADVENTURE and ZORK and where the fathers of the Adventure games of today.

Here endeth the lesson.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (24 views)
2014-08-22 19:31:30

atombrot (34 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (28 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (33 views)
2014-08-08 02:01:56

Norakomi (42 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!