This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Game Development and the fly likes Centipede Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Centipede" Watch "Centipede" New topic


Aida Evingtar

Joined: Apr 25, 2005
Posts: 3
Hey, I'm a nOOb, and I'm trying to recreate a kind of basic Atari Centipede game in Java- any hints or suggestions? Or sample code I could check out? These Key Interactors are *killing* me!
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
I'd take a look at James McCabe's sweet game library and example game mentioned in this post.
Aida Evingtar

Joined: Apr 25, 2005
Posts: 3
ok, well I'm not entirely sure how to decipher this pacman code- i was just wondering how key interactors work. like
public void keyPressed(){
//some code here??
i have a class for left and right- but i have no idea how it all goes together. anyone? I think i'm using NGP - does that help at all?
Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
can you post some of your code? i did not fully understand your post and your question.
I agree. Here's the link:
subject: Centipede
Similar Threads
Not quite programming the centipede game's centipede movement correctly (Java in Eclipse)
My New Baby!
How do I remove quotes from around string a user inputted in text box?
Whats the best computer game you played?
This weeks Giveaway