Computer Science Canada my breakout game... |
Author: | rhomer [ Tue Jun 01, 2004 6:25 pm ] |
Post subject: | my breakout game... |
This is my breakout game i just started I have moved the code down below to save space |
Author: | SuperGenius [ Tue Jun 01, 2004 6:51 pm ] | ||||
Post subject: | |||||
Just your luck, My summative is super breakout. One thing that I would do right away is change the control to mouse; the gameplay is better. Also you have made it so the ball's path always has a slope of 1; this means that it is possible for the ball to settle onto a certain pattern, and it may never hit the last couple of bricks. Also you can make the x2 and y2 values for the paddle relative to x1 and y1, so there is only two numbers to manage instead of 4:
As for your question about the paddle: look at what I've done; a bit of debugging built in. I put in some put statements to see when certain code was executed. In the place where you have your boxes being drawn, there is a line that says
this is activated hundreds of times per second as you can see by the counter that I put it. Your detection for the paddle is good, but the y direction is being reset by the code for the boxes, it needs some work. |
Author: | SuperGenius [ Tue Jun 01, 2004 6:51 pm ] | ||||
Post subject: | |||||
Just your luck, My summative is super breakout. One thing that I would do right away is change the control to mouse; the gameplay is better. Also you have made it so the ball's path always has a slope of 1; this means that it is possible for the ball to settle onto a certain pattern, and it may never hit the last couple of bricks. Also you can make the x2 and y2 values for the paddle relative to x1 and y1, so there is only two numbers to manage instead of 4:
As for your question about the paddle: look at what I've done; a bit of debugging built in. I put in some put statements to see when certain code was executed. In the place where you have your boxes being drawn, there is a line that says
this is activated hundreds of times per second as you can see by the counter that I put in it. Your detection for the paddle is good, but the y direction is being reset by the code for the boxes, it needs some work. |
Author: | SuperGenius [ Tue Jun 01, 2004 6:52 pm ] |
Post subject: | |
oops, how did that double post happen? oh well. |
Author: | Paul [ Tue Jun 01, 2004 7:00 pm ] |
Post subject: | |
Hehehe, my summative is breakout too, or part of it is, I already made the other game for the other part, and now Im on breakout. What I did was have a level editor which saves whatever level you make onto a text file and the actual game loads the text files and makes levels. Hehehe, now all I need to do is make powerups and level change. |
Author: | rhomer [ Tue Jun 01, 2004 7:30 pm ] | ||
Post subject: | |||
Ok...I have updated it a bit. All the bugs are gone, i think... Please give me advice on what to add...iff you had any (i was think of powerups and levels)...
|
Author: | SuperGenius [ Tue Jun 01, 2004 8:17 pm ] |
Post subject: | |
you could make a level editor... curiously, paul and I seem to have done the same thing. I made powerups for my game already, but I had to take off the through effect cause the powerups messed up. Ill probably program a fix so that I can put it back in though. Paul: Can I see your editor, to compare with mine? |
Author: | Paul [ Tue Jun 01, 2004 8:31 pm ] |
Post subject: | |
My editor is very basic, just using drawfill and whatdotcolor to find the values for the 2d array of boolean, and then it inputs that as 0's or 1's on the text file, I think Im going to add blocks with different properties later, but thats if I have time. I have a better version at school, where you choose numbers of rows, but that isn't very different from this one. |
Author: | noobprogrammer123 [ Tue Jun 01, 2004 9:09 pm ] |
Post subject: | |
Why doesn't Math.Distance work, is it just me? |
Author: | rhomer [ Tue Jun 01, 2004 9:35 pm ] |
Post subject: | |
thanks paul bian.... and noob, do you have version 4.0.5? |
Author: | SuperGenius [ Wed Jun 02, 2004 3:02 pm ] |
Post subject: | |
nice work paul. I think it would be more interesting though if it alllowed people to make blocks in different colours; thats what mine does... it outputs the colour number to the text file, and the game doesnt do anything if it reads a 0. Also this lets people choose the colour white to erase any bricks that they dont want, so they dont have to close the program and start all over. |
Author: | Paul [ Wed Jun 02, 2004 3:41 pm ] |
Post subject: | |
Yea, I made that already, 3 different kinds of blocks, 3 different colors, orange block when hit turns to purple, and purple block when hit turns to green, and green dissappears after being hit. Made it this morning in the library while the grade 9's had their exam in the caf. |