|
Title: Cheese Eater Post by: bloobchube on June 11, 2014, 01:36:27 PM :zel00: Hey Everyone,
This is a small project that I made. It's called Cheese Eater, and it's kind of like cookie clicker. Here's the download: http://adf.ly/pUrIP Comment back some feedback Title: Re: Cheese Eater Post by: Quicksand-S on June 11, 2014, 02:05:06 PM Well, I'm not about to play a "clicker" game for more than a few seconds.
I did encounter a bug, though. It seems your buttons are hooked up incorrectly. The first one always says "Couldn't afford item" twice, while the third button didn't do anything at all. Title: Re: Cheese Eater Post by: bloobchube on June 11, 2014, 02:21:35 PM I noticed the one for the first button, but not the second one. I'll check it out, and give a new version.
Thanks! Title: Re: Cheese Eater Post by: bloobchube on June 11, 2014, 02:32:12 PM Well, I looked through the code, and couldn't find anything wrong with the buttons. If you are a developer, I can send you the code: https://www.mediafire.com/?ddk6c4dc6a4pi69
Title: Re: Cheese Eater Post by: Quicksand-S on June 11, 2014, 03:00:40 PM In the btnTimesFour section, your action listener is being set for btnTimesTwo:
Code: btnTimesFour.setBounds(0, 108, 293, 23); internalFrame.getContentPane().add(btnTimesFour); btnTimesTwo.addActionListener(new ActionListener(){ On a related note, I'd recommend trying to minimize the amount of duplicated code in your game. Fixing bugs is a pain when you realize that you've copied the bug multiple times. I'd suggest turning those sorts of common actions into methods/functions wherever possible. Title: Re: Cheese Eater Post by: bloobchube on June 12, 2014, 03:10:34 AM Thanks, I'll check it out and I can't send the repaired game right now because I'm on my phone.
|