Cube picker (game)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
Jeromyal
Enthusiast
Enthusiast
Posts: 216
Joined: Wed Jul 17, 2013 8:49 am

Re: Cube picker (game)

Post by Jeromyal »

Ah, I am using linux. I was running the binary directly after extracting. path "/home/jeromy/Downloads/CubePicker/Linux/cubepicker-bin-1.6.1-1-x86_64.pkg/usr/bin/cubepicker" To check it out. Extracted the download then extracted the .pkg to run the cubepicker executable.
the .ini file was generated at "/home/jeromy/.config/CubePicker/CubePicker.ini" I checked permission of the file and it looks good. No change was ever written to it from its initial default though.
I did not run the .deb because of the infancy of the project. I did not want to commit to an install. Not yet anyway.

Asking for the user name once is good, That makes sense. It only asked after I lost the round.
If on the rare chance one clears the board, and gets a new board, is there a bonus added to the score? (just wondering)

I am not much of a graphics or sound guy either. Primarily why my game never reached its planned maturity before its doom. As far as having to make it "so beautiful" , I don't know. I imagine the animation in my head, I would have done and each block one by one would have just looked like a juicy splash happened real fast. Because the real problem would be animation speed. Tying up the game for too long after a player picks a group and until they can pick anther group would make it too annoying to play.
I guess what you might mean is it would have to be such beautiful animation it would be worth the wait? Games like bejeweled seem to succeed with that but the groups are most always small. Where as groups in the same game can be large. Often strategically large groups if the player is trying to make a large group before clearing it.
So I guess my fancy one by one animation never would have worked and I would have inevitably opted to do the blocks popping simultaneously. The sliding of the blocks would have been a priority of mine though. I think it also unfortunately would be the most difficult to implement. At least how I was implementing the grid.

Your question about drawing text on the cubes. If I understand you correctly what your saying is you would draw text on the board but the different color blocks and back ground would make text drawn on it look terrible? I guess an alpha transparency over the board, and then text drawn on transparency? Effectively fading the game board and any remaining blocks so text would be visibly strong.
Jeromyal
Enthusiast
Enthusiast
Posts: 216
Joined: Wed Jul 17, 2013 8:49 am

Re: Cube picker (game)

Post by Jeromyal »

Are you answering the question "Start a new game?"
Yes. and the second time I played it updated the the high scores. So it failed the first time because it had not written the file yet to update it?
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Cube picker (game)

Post by AZJIO »

Jeromyal wrote: Sun Oct 15, 2023 11:00 pm Yes. and the second time I played it updated the the high scores. So it failed the first time because it had not written the file yet to update it?
If you finish the game, the record appears immediately, faster than you press the menu item to view it.
Jeromyal
Enthusiast
Enthusiast
Posts: 216
Joined: Wed Jul 17, 2013 8:49 am

Re: Cube picker (game)

Post by Jeromyal »

AZJIO wrote: Sun Oct 15, 2023 11:06 pm
Jeromyal wrote: Sun Oct 15, 2023 11:00 pm Yes. and the second time I played it updated the the high scores. So it failed the first time because it had not written the file yet to update it?
If you finish the game, the record appears immediately, faster than you press the menu item to view it.
Oh I think I get it. ok.
I love these two particular game types. Same, and jeweled. Your Blockpicker and balloons are nice. Good games to make, to cut your teeth on 2d tile programming.
As I said I have yet to really do any game making with purebasic. However I really should stop procrastinating. I really want to make that Adventure Creator spin off. I should buckle down.
Spinnaker made the game so dead simple but could be rather fun to play around with. Even as a teen It captured my attention for a bit. So if I can pull it off, the user could make more elaborate maps but it being so simple to use that an 8 year old can use it to make puzzle, maze, rouge-light games.
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Cube picker (game)

Post by AZJIO »

Jeromyal wrote: Sun Oct 15, 2023 10:56 pm I did not run the .deb because of the infancy of the project.
An executable file and a package are two different things. I have 32 programs for Linux and they are all made in the form of an installation package. I even made a description of how to create a package: Ubuntu, Fedora, Arch
I installed all the programs on Linux and they all work great. I create a template package based on the previous program (copying the folder) and rename the program name in all texts. I've done this many times, and I'm already sure that it will work sometimes even without checking. When the template is created, I replace only the executable file in it and run the package creation command.

I made the display of text on canvas, but it takes time to compile it in Linux, I have to reboot the computer. I'll do it later.
Image

You need sprites if you want to move pictures
Jeromyal
Enthusiast
Enthusiast
Posts: 216
Joined: Wed Jul 17, 2013 8:49 am

Re: Cube picker (game)

Post by Jeromyal »

Yes there would have to be a number sprites on the board for animation. Really your game is fine though.
I have no doubt that installing the deb package would work fine. I am just weird how I go about things at times.
Honestly I wanted to see if I could just run the binary from anywhere in my home directory.
I use an entirely separate drive I try to install all my games on, such as Stream and what ever else I can stick over there.
So knowing just what I need from your game to put over there, I can protect it from getting lost if I to a system re-install.
It looks like I just need to copy the binary and an icon over to it. Make a menu entry with the menu editor. easy peasy.
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Cube picker (game)

Post by AZJIO »

Jeromyal
You can run the executable from anywhere. This is how I test it myself. I updated it for Linux, you can try it.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Cube picker (game)

Post by Kuron »

Life got in the way and I haven't tried the changes yet, but I will ASAP. This is a fun little game. :mrgreen:
Best wishes to the PB community. Thank you for the memories. ♥️
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Cube picker (game)

Post by AZJIO »

I added a bonus of 100 points if all the cubes are destroyed.
I again made changes to the format of the game's highscore, changing the data separator, since the "|" separator can be used in a username. Your leaderboard will be empty again because of this.
For Windows added data alignment in the high scores table.
In the ini file I changed the color of 2 cubes (check that you like it).

Added support for external language file Lang.txt (UTF-8)
Jeromyal
Enthusiast
Enthusiast
Posts: 216
Joined: Wed Jul 17, 2013 8:49 am

Re: Cube picker (game)

Post by Jeromyal »

How you have this game now. Is rather excellent. Good Job.
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Cube picker (game)

Post by AZJIO »

Update
Now the Ini file is created immediately. Without this, the action did not save the highscore file.

APK - saving a settings and highscore file. From the latter, I added the preservation of the player’s name, otherwise the name of the phone is used.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Cube picker (game)

Post by Kuron »

Apologies for not trying the newer versions yet, things are a tad hectic and now my truck wont start. Grrr. Will get it tested before too long, thoroughly enjoyed the older version I was testing. I am looking forward to it, need to finish reinstalling my one Windows system so I can get it downloaded.
Best wishes to the PB community. Thank you for the memories. ♥️
Post Reply