Results 1 to 2 of 2
- 12-06-2011, 10:18 PM #1Member
- Join Date
- Dec 2011
- Rep Power
Questions on KeyListener, ActionListener & Projectile Motion
I am trying to create a java game called Pumpkin' Chunking which allows players to "shoot" a pumpkin as a projectile. It's a simple program. But as soon as I press the spacebar, it only "moves" a very short distance.
I would really appreciate any feedback you can give.
p.s. The attached zip file is a NetBeans project folder. Source files are in "src" folder.
Re: Questions on KeyListener, ActionListener & Projectile Motion
I count 6 Java classes in your jar. I can't speak for all, but as for myself, that's a lot of code to ask a volunteer to do a code review on. Why not instead create one small runnable and compilable class that distills your main problem without all the unnecessary program frills that are non-related to your problem? Then you can post the code itself here (since it will be small), and both you and us will be able to understand it better, run it unmodified, and try to correct its function much more easily. This is called creating an SSCCE.
- By Jayayoh in forum AWT / SwingReplies: 7Last Post: 08-30-2011, 01:40 PM
- By batyuska87 in forum AWT / SwingReplies: 0Last Post: 03-06-2011, 10:17 AM
- By mandelbrot in forum AWT / SwingReplies: 5Last Post: 09-10-2010, 12:25 AM
- By shuks in forum New To JavaReplies: 3Last Post: 11-27-2009, 03:07 AM
- By Java Tip in forum javax.swingReplies: 0Last Post: 04-23-2008, 08:19 PM