View Full Version : a simple space shooter in java
crazyfuturamanoob
January 20th, 2008, 09:53 AM
What is the command in java that checks if certain key is pressed?
And what are the commands in java to draw something?
Could someone post me a simple space shooter, and explain everything?
xlinuks
January 20th, 2008, 10:28 AM
Here's what you need to learn about:
- (Swing) GUI
-Use event listeners
-Java 2D or 3D
In other words before creating a game in Java you first need to learn Java :) There's no way to do it without knowing at least the basic of Java.
http://java.sun.com/docs/books/tutorial/reallybigindex.html
crazyfuturamanoob
January 20th, 2008, 10:50 AM
How can I learn them if nobody tells me?
Kadrus
January 20th, 2008, 11:26 AM
How can I learn them if nobody tells me?
Have you heard of Java tutorials?:p
http://java.sun.com/docs/books/tutorial/
The web is packed with them...and read the stickies..
naugiedoggie
January 20th, 2008, 01:45 PM
What is the command in java that checks if certain key is pressed?
And what are the commands in java to draw something?
Could someone post me a simple space shooter, and explain everything?
No, that would be naughty, as it sounds suspiciously like a homework assignment or school project.
Here is some useful followup information, though:
Detecting Key presses in Java (http://forum.java.sun.com/thread.jspa?threadID=590209&messageID=3070635)
Java Ranch (http://www.javaranch.com)
Head First Java (http://www.powells.com/biblio/2-9780596009205-0)
Creating A GUI with Java Swing (http://java.sun.com/docs/books/tutorial/uiswing)
The Java Game Development Tutorial (http://javaboutique.internet.com/tutorials/Java_Game_Programming)
It's good to have a goal in mind when you set about learning a programming language, but you still have to do the work.
Thanks.
mp
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.