|
||||||||||||||||||
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 |
|
![]() Anonymous Poster |
||||
|
||||
| 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 |
||||
|
||||
![]() The Rug Member since: 10/1/2003 From: Nottingham, United Kingdom |
||||
|
|
||||
| You could try importing java.awt.* or java.awt.Graphics (if you haven't already) |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| the URL with the samples is not working :( does anybody know where can i get an "air-hockey sample code" ? thx |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| 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. |
||||
|
||||
![]() EGD Eric Member since: 8/7/2003 From: Montreal, Canada |
||||
|
|
||||
| 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? |
||||
|
||||
![]() Mattman Member since: 5/17/2000 From: Bear, DE, United States |
||||
|
|
||||
Quote: The "import" statement is your friend. :) |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| what should i put in the html file because all i'm seeing is a red x in a square. |
||||
|
||||
![]() Swattkidd Member since: 9/22/2006 From: Stockton, CA, United States |
||||
|
|
||||
| The hit detection is Soo hard please someone give me an example thanks |
||||
|
||||
![]() Anonymous Poster |
||||
|
||||
| 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? |
||||
|
||||
![]() Zoddel Member since: 7/2/2007 From: The Hague, Netherlands |
||||
|
|
||||
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. |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|