BallBrick (game)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

BallBrick (game)

Post by AZJIO »

BallBrick
Download: yandex
If it doesn't work, use version 5.73

Image
Last edited by AZJIO on Fri Nov 17, 2023 4:54 am, edited 3 times in total.
User avatar
Caronte3D
Addict
Addict
Posts: 1361
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: BallBrick (game)

Post by Caronte3D »

It works well here :D
Reminds me of the old Arkanoid days.
miso
Enthusiast
Enthusiast
Posts: 466
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: BallBrick (game)

Post by miso »

Nice One!
(For information: It worked for me with 5.73, failed with 6.0 and 6.03, WIN7 64 bit)
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: BallBrick (game)

Post by AZJIO »

Added a program for creating and editing levels. It is possible to open an image and convert it into a game level.
Added sounds.
miso
Enthusiast
Enthusiast
Posts: 466
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: BallBrick (game)

Post by miso »

Works well, thanks for sharing.
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: BallBrick (game)

Post by AZJIO »

Updated
When you hit exploding bricks, all connecting exploding bricks are destroyed, not just those that are close to each other.


The ball moves 6 pixels per frame in height, so in the previous frame it does not touch a single brick, and in the next it already covers 2 bricks. Because of this, behavior is sometimes not obvious. At any moment, 2 bricks can disappear, and the ball flies through.

In the game I create many identical sprites, but reading the forum I come to the conclusion that I need to use one sprite and draw it in different coordinates. The SpritePixelCollision() function uses the sprite ID. If I display one sprite in different coordinates, then the SpritePixelCollision check is based only on the coordinates and sizes of the sprite calculated by id? So the identifier in this case is used to determine the size of the sprite?

And I have a problem on Linux-Fedora, I get an error when compiling. I forgot to copy the error text, but I tried to install different packages, maybe some package is missing.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: BallBrick (game)

Post by Kwai chang caine »

Works nice here :D
Thanks a lot for sharing 8)
ImageThe happiness is a road...
Not a destination
User avatar
SPH
Enthusiast
Enthusiast
Posts: 571
Joined: Tue Jan 04, 2011 6:21 pm

Re: BallBrick (game)

Post by SPH »

@AZJIO : guitar or Cobra's psychogun ?? :!:

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: BallBrick (game)

Post by AZJIO »

SPH wrote: Tue Jul 23, 2024 7:21 pm @AZJIO : guitar or Cobra's psychogun ?? :!:
guitar
I took some drawings and used an editor that exports any drawing to the game map
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: BallBrick (game)

Post by moulder61 »

@AZJIO

The compiled Linux binaries don't work on my machine. I tried all 3 versions(not sure what the difference is?) on Void, Antix, Devuan, Arch and Salix but nothing displayed, I just got the background music starting. I don't have Mint or Xubuntu to try them on.

I tried the source but that didn't work either. I had to comment out the Resize(@ScreenW, @ScreenH, 1280, 1024) line. Then it worked but on my dual screens I get the game on both screens which also messes up my display settings.

Nice game though. :)

I'll see if I can get it to work in Linux in a borderless windowed screen. Speed the ball up a bit too. :P
Unless you want to have a look at it yourself? :wink:

Moulder.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
Post Reply