|
Post by johnno56 on Jul 15, 2020 20:43:40 GMT -6
Back in 2012, I had a minor role, in making a Breakout clone. I finally found a couple of spare days and converted it to RC. The original was written with sdlbasic by the then user 'KilljoyHeathen'. Sdlbasic has builtin collision detection ( spriteHit() and bobHit() ) so I had to use a circle/rectangle collision function. It's not 100% accurate but will do in a pinch. Collision detection is used on all four faces of the 'bricks' and 'bounces' accordingly. Collision with the 'paddle' was interesting. Sometimes it will bounce of the 'undercarriage'. Depending on where the ball hits the paddle, will determine the speed and angle of the bounce. Anyway, you know how to play it... Suggestions for improvements, corrections or constructive criticism are welcome. bustout.zip (907.9 KB)
|
|
|
Post by tbird on Jul 15, 2020 21:46:38 GMT -6
Ah KilljoyHeathen, he is the one who told me about SDLBasic years ago, project is alot more fun than what he is doing now, lol. I will have a play soon.
|
|
|
Post by kennn on Jul 16, 2020 4:49:28 GMT -6
|
|
|
Post by tbird on Jul 16, 2020 20:41:12 GMT -6
Well my first suggestion would be the speed at each level should have a minimum, the randomness is nice but the higher the level maybe increase the minimum speed a bit each level.
|
|
|
Post by johnno56 on Jul 16, 2020 20:51:40 GMT -6
Well, I think you have a valid point... The speed of the ball 'should' increase with the advancement of the level... As this is not my code, I prefer to leave it 'as is' for the simple fact that... I do not like dying off too quickly... LOL
Nah! Kidding! Speeding it up is a great idea! But, if the game plays quicker, then the player body count is going to increase... Smacks of a Hiscore table in the making, does it not? Also, perhaps 'extra lives' based on score, may add a little incentive? Then there is the possibility of 'power ups' (temp ball speed - faster/slower, bat size (small/big) - but not too much - prefer to keep the game 'simple'... lol
|
|
|
Post by tbird on Jul 16, 2020 21:02:15 GMT -6
Actually this would be a great opportunity to try out power ups...great idea!! Keeping it simple
|
|
|
Post by johnno56 on Jul 17, 2020 1:26:33 GMT -6
Here is a "simpler" version. Apart from the fonts, there are no sprites, just "native" graphics. I will use 'this' version to 'experiment' on... Moo ha ha... bustout-minimal.zip (147.13 KB)
|
|
|
Post by johnno56 on Jul 19, 2020 20:38:31 GMT -6
This is the next version of 'minimal'. I have used the colours of the kenney.nl sprites. Still no sprites used. Max 9 levels. Extra life (up to 9) for each 500 points scored. To do: Menu and High scores. ps: I would prefer each brick not to just "wink out" when hit by the ball. I was thinking (stop laughing...) that maybe a cool particle explosion might work as well... but I do not have the code to do that... nudge, nudge, wink, wink... At the moment, there is a quick change of brick colour, prior to deletion. To do list: Main menu; High scores; (insert any other option - if I don't know how to code it - guess who volunteers? lol Tested several times but only completed the game once... (No. It's not a challenge... That's just the way I play... lol) bustout-minimal3.zip (197.86 KB)
|
|