rootbear75 Posted May 11, 2007 Report Posted May 11, 2007 (edited) Here's something i thought i had lost a couple years ago. i want to share it with you. Here ya go:Breakout.jar INSTRUCTIONS:Use the arrow keys to move <- and ->Ball will move momentarily after opening the window, so be prepared! oh, and it is a little buggy EDIT: added it with the source files included. change to .zip and extract if you want to play with it. It is coded in java. Edited May 11, 2007 by rootbear75
rootbear75 Posted May 11, 2007 Author Report Posted May 11, 2007 one problem i know of is that the "paddle" is above the point where the ball bounces back up.This was a partnered activity, and neither me nor my partner could fix it. We figured it was best just to leave it alone. If you want to play with it, just change the file extension to .zip, and extract the files.Let me know if you fix anything or make it better
Samapico Posted May 11, 2007 Report Posted May 11, 2007 well... the bounce kept bouncing on some blocks without destroying them... and some blocks were destroyed even if the ball just passed near them... and the ball kept bouncing vertically and I couldn't make it bounce sideways... And you rely on KeyDown events, which are triggered depending on the repeat wait and repeat rate set in Keyboard settings... I don't know how to do this in java, but there is a way to get the Asynchroneous state of a key anyways... I was gonna say I won't change stuff in it... but now that I think of it, I'll maybe do when I need to learn some java
rootbear75 Posted May 11, 2007 Author Report Posted May 11, 2007 i think a better thing to do would to make it a MouseFollow event or w/e it is, and we added zones in the paddle.like this: [----|---|---|---|----].<<...<...X...>...>> basically thats how the zones are... the more right you hit, the faster right it will go, etc.
Samapico Posted May 11, 2007 Report Posted May 11, 2007 hm I thought that's what it was supposed to be doing alreadyand you don't really need 'zones' , you can just calculate an angle from the pixel where it hits
rootbear75 Posted May 11, 2007 Author Report Posted May 11, 2007 hm I thought that's what it was supposed to be doing alreadyand you don't really need 'zones' , you can just calculate an angle from the pixel where it hits hey, if you want to fix it be my guest...it was a final for my AP Comp Sci class, and i think i got an A or a B+ on it.
Samapico Posted May 11, 2007 Report Posted May 11, 2007 hm I thought that's what it was supposed to be doing alreadyand you don't really need 'zones' , you can just calculate an angle from the pixel where it hits hey, if you want to fix it be my guest...it was a final for my AP Comp Sci class, and i think i got an A or a B+ on it.I didn't mean to be rude or anything there And I didn't mean to say like 'you should have done this or that', I was just suggesting alternatives, in case you (or maybe I) ever modifies it
Synook Posted May 11, 2007 Report Posted May 11, 2007 That game is weird... did you have to use Java to make it? I would have suggested VB
»doc flabby Posted May 11, 2007 Report Posted May 11, 2007 That game is weird... did you have to use Java to make it? I would have suggested VBNothing wrong with java Skybill!!!
rootbear75 Posted May 11, 2007 Author Report Posted May 11, 2007 That game is weird... did you have to use Java to make it? I would have suggested VByes, cause thats what they were teaching
Synook Posted May 12, 2007 Report Posted May 12, 2007 But severely limited in the maths department. Well... I never seemed to be able to get my calculations to work
»Rowen Posted May 15, 2007 Report Posted May 15, 2007 Visual Basic? nah, you should learn a language worth every bit of your time! Go Turbo Pascal!
Tiq Posted May 16, 2007 Report Posted May 16, 2007 (edited) my ball got stuckneat tho Edited May 16, 2007 by Tiq
rootbear75 Posted May 16, 2007 Author Report Posted May 16, 2007 my ball got stuckneat thohow?can you repeat it?and can you give me a screenshot?
Smong Posted May 27, 2007 Report Posted May 27, 2007 I thought this said "supermarket breakout" Anyway, I would have done the same thing with the zones on the paddle, except maybe taken the paddle speed into account too, so if the paddle was moving to the right when the ball hit, then it would add some more "rightwards" speed to it.
rootbear75 Posted June 23, 2007 Author Report Posted June 23, 2007 (edited) EDIT: added it with the source files included. change to .zip and extract if you want to play with it. It is coded in java.RTFM Edited June 23, 2007 by rootbear75
rootbear75 Posted July 30, 2007 Author Report Posted July 30, 2007 (edited) ya... Edited July 30, 2007 by rootbear75
Recommended Posts