Home » Community » Forums » » Java Game Programming Part II: Making a Simple Game
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 Java Game Programming Part II: Making a Simple Game
Post Reply 
I am getting a error doing the first part.
SampleThread.java:25: cannot resolve symbol
symbol : class Graphics
location: class SampleThread
public void paint(Graphics g)
^
1 error

 User Rating: 1015    Report this Post to a Moderator | Link

You could try importing java.awt.* or java.awt.Graphics (if you haven't already)

 User Rating: 1352   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

the URL with the samples is not working :(
does anybody know where can i get an "air-hockey sample code" ?
thx


 User Rating: 1015    Report this Post to a Moderator | Link

Oh no!

Me too! I got halfway through the article and realised it was published ages ago and the rest of it has expired. Woe is me, etc.

Come back Adam King! Your public needs you! (or your source code, at the very least).

Seriously, I was happily working my way through it - anyone know where the rest of it is?


cjc.


 User Rating: 1015    Report this Post to a Moderator | Link

Darn it, me too! I fooled around with shape-drawing a bit (especially that "fillArc" thing method), but now I'm a little at a loss as to how I go about organizing multiple files and all that. I need a different file for each class right? Is there some kind of #include statement like in C?

 User Rating: 1004   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Quote:
Original post by EGD Eric
Darn it, me too! I fooled around with shape-drawing a bit (especially that "fillArc" thing method), but now I'm a little at a loss as to how I go about organizing multiple files and all that. I need a different file for each class right? Is there some kind of #include statement like in C?


The "import" statement is your friend. :)

 User Rating: 1157   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

what should i put in the html file because all i'm seeing is a red x in a square.

 User Rating: 1015    Report this Post to a Moderator | Link

The hit detection is Soo hard please someone give me an example

thanks

 User Rating: 1077   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

this article is soooooooo out of date. It is a great java game theory article though. When i run a thread, how do i give priority to the keyPressed method. or does it already have it?

 User Rating: 1015    Report this Post to a Moderator | Link


Nice intro and yeah to bad the sample code is missing, i tried to google around a bit but no luck. However I decided to just implement the Pac-Man example which he touches briefly in part III, when I'm done with it I'll post a link to the source with documentation.

Also I use Eclipse for my java dev work it's free and comes with code completion and an applet tester so no mucking about with web browsers just click run.

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: