4thBreakout - Breakout with four paddles

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
ricardo_sdl
Enthusiast
Enthusiast
Posts: 109
Joined: Sat Sep 21, 2019 4:24 pm

4thBreakout - Breakout with four paddles

Post by ricardo_sdl »

Hello!
4thBreakout is my first game developed with PureBasic:

Image

Image

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!
You can check my games at:
https://ricardo-sdl.itch.io/
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: 4thBreakout - Breakout with four paddles

Post by Kwai chang caine »

Good beginning for a first game :wink:
Works here on W10 X64 / v5.70 x86 with sources compiled
Thanks for sharing 8)
ImageThe happiness is a road...
Not a destination
ricardo_sdl
Enthusiast
Enthusiast
Posts: 109
Joined: Sat Sep 21, 2019 4:24 pm

Re: 4thBreakout - Breakout with four paddles

Post by ricardo_sdl »

Kwai chang caine wrote:Good beginning for a first game :wink:
Works here on W10 X64 / v5.70 x86 with sources compiled
Thanks for sharing 8)
Thank you! I already have made other simple games using other language/framework. But it is the first game created with PureBasic :D
I hope to share other games in the future.
You can check my games at:
https://ricardo-sdl.itch.io/
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: 4thBreakout - Breakout with four paddles

Post 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
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
ricardo_sdl
Enthusiast
Enthusiast
Posts: 109
Joined: Sat Sep 21, 2019 4:24 pm

Re: 4thBreakout - Breakout with four paddles

Post by ricardo_sdl »

Thanks for the suggestion IceSoft!
You can check my games at:
https://ricardo-sdl.itch.io/
ricardo_sdl
Enthusiast
Enthusiast
Posts: 109
Joined: Sat Sep 21, 2019 4:24 pm

Re: 4thBreakout - Breakout with four paddles

Post 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
You can check my games at:
https://ricardo-sdl.itch.io/
User avatar
chi
Addict
Addict
Posts: 1028
Joined: Sat May 05, 2007 5:31 pm
Location: Linz, Austria

Re: 4thBreakout - Breakout with four paddles

Post by chi »

Great job! Maybe you could add some zones on the paddles so that the ball bounces at different angles?
Et cetera is my worst enemy
ricardo_sdl
Enthusiast
Enthusiast
Posts: 109
Joined: Sat Sep 21, 2019 4:24 pm

Re: 4thBreakout - Breakout with four paddles

Post 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.
You can check my games at:
https://ricardo-sdl.itch.io/
Post Reply