Page 1 of 1
4thBreakout - Breakout with four paddles
Posted: Sun Oct 20, 2019 9:44 pm
by ricardo_sdl
Hello!
4thBreakout is my first game developed with PureBasic:
You can download it here:
https://ricardo-sdl.itch.io/4thbreakout
You'll have access to the windows and linux binaries and source code.
The game is really simple, it was developed with the 5.71 LTS demonstration version of PureBasic. I've tested it on Lubuntu-18.10-x64 and Windos 10 64 bits.
PureBasic built-in libraries and commands really make it easy to program games. The simplicity of the language helps too.
Play the game, take a look at the source code. Your ideas and suggestions are welcome!
Re: 4thBreakout - Breakout with four paddles
Posted: Tue Oct 22, 2019 7:09 pm
by Kwai chang caine
Good beginning for a first game
Works here on W10 X64 / v5.70 x86 with sources compiled
Thanks for sharing

Re: 4thBreakout - Breakout with four paddles
Posted: Tue Oct 22, 2019 11:12 pm
by ricardo_sdl
Kwai chang caine wrote:Good beginning for a first game
Works here on W10 X64 / v5.70 x86 with sources compiled
Thanks for sharing

Thank you! I already have made other simple games using other language/framework. But it is the first game created with PureBasic
I hope to share other games in the future.
Re: 4thBreakout - Breakout with four paddles
Posted: Wed Oct 23, 2019 7:55 am
by IceSoft
Changing this lines is little bit easier to move the paddles.
Maybe you want to use it for "easy" and "harder" play options.
Code: Select all
If LeftPressed Or UpPressed <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< add: Or UpPressed
Paddles()\x - 1000 * ElapsedTimneInS
ElseIf RightPressed Or DownPressed <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< add: Or DownPressed
Paddles()\x + 1000 * ElapsedTimneInS
EndIf
If Paddles()\x < 50;check boundaries
Paddles()\x = 50
ElseIf (Paddles()\x + SpriteWidth(#PaddleH)) > (ScreenWidth() - 50)
Paddles()\x = ScreenWidth() - 50 - SpriteWidth(#PaddleH)
EndIf
*HorizontalPaddle = @Paddles()
Else;vertical paddles
If UpPressed Or LeftPressed <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< add: Or LeftPressed
Paddles()\y - 1000 * ElapsedTimneInS
ElseIf DownPressed Or RightPressed <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< add: Or RightPressed
Paddles()\y + 1000 * ElapsedTimneInS
EndIf
Re: 4thBreakout - Breakout with four paddles
Posted: Wed Oct 23, 2019 8:20 pm
by ricardo_sdl
Thanks for the suggestion IceSoft!
Re: 4thBreakout - Breakout with four paddles
Posted: Fri Jan 10, 2020 12:07 pm
by ricardo_sdl
Hi!
Small update: The game source code is now compatible with SpiderBasic. Which means that you can play it on your browser!
You can check it out here:
https://ricardo-sdl.itch.io/4thbreakout
Re: 4thBreakout - Breakout with four paddles
Posted: Fri Jan 10, 2020 8:19 pm
by chi
Great job! Maybe you could add some zones on the paddles so that the ball bounces at different angles?
Re: 4thBreakout - Breakout with four paddles
Posted: Sun Jan 19, 2020 8:49 pm
by ricardo_sdl
chi wrote:Great job! Maybe you could add some zones on the paddles so that the ball bounces at different angles?
Thanks for the suggestion. I did try to implement something like this, but never got the hang of it. Maybe I'll try again.