It is currently Thu Oct 01, 2020 2:11 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: 4thBreakout - Breakout with four paddles
PostPosted: Sun Oct 20, 2019 9:44 pm 
Offline
User
User

Joined: Sat Sep 21, 2019 4:24 pm
Posts: 28
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/


Top
 Profile  
Reply with quote  
 Post subject: Re: 4thBreakout - Breakout with four paddles
PostPosted: Tue Oct 22, 2019 7:09 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4705
Location: Lyon - France
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


Top
 Profile  
Reply with quote  
 Post subject: Re: 4thBreakout - Breakout with four paddles
PostPosted: Tue Oct 22, 2019 11:12 pm 
Offline
User
User

Joined: Sat Sep 21, 2019 4:24 pm
Posts: 28
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/


Top
 Profile  
Reply with quote  
 Post subject: Re: 4thBreakout - Breakout with four paddles
PostPosted: Wed Oct 23, 2019 7:55 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 8:51 am
Posts: 1484
Location: Germany
Changing this lines is little bit easier to move the paddles.
Maybe you want to use it for "easy" and "harder" play options.

Code:
     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,...


Top
 Profile  
Reply with quote  
 Post subject: Re: 4thBreakout - Breakout with four paddles
PostPosted: Wed Oct 23, 2019 8:20 pm 
Offline
User
User

Joined: Sat Sep 21, 2019 4:24 pm
Posts: 28
Thanks for the suggestion IceSoft!

_________________
You can check my games at:
https://ricardo-sdl.itch.io/


Top
 Profile  
Reply with quote  
 Post subject: Re: 4thBreakout - Breakout with four paddles
PostPosted: Fri Jan 10, 2020 12:07 pm 
Offline
User
User

Joined: Sat Sep 21, 2019 4:24 pm
Posts: 28
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/


Top
 Profile  
Reply with quote  
 Post subject: Re: 4thBreakout - Breakout with four paddles
PostPosted: Fri Jan 10, 2020 8:19 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 764
Location: Linz, Austria
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


Top
 Profile  
Reply with quote  
 Post subject: Re: 4thBreakout - Breakout with four paddles
PostPosted: Sun Jan 19, 2020 8:49 pm 
Offline
User
User

Joined: Sat Sep 21, 2019 4:24 pm
Posts: 28
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/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye