PBSlots![GAME] Linux only(probably)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

PBSlots![GAME] Linux only(probably)

Post by moulder61 »

Hi all,
I started writing a fruit machine game for Linux about 2 years ago. I thought I'd just about finished it after a year, but then I saw 4 posts on the forums and put it on hold.

The posts were:
1. This one by Nituvious from 2013 which made my reel animation look very amateur. :( https://www.purebasic.fr/english/viewto ... l2#p433038

2. Mindphazer's PureTris game which had a nice high score table and was windowed. https://www.purebasic.fr/english/viewto ... t=puretris

3. SnakeZ by Mr.L whose graphics were so good I felt embarrassed by my efforts. https://www.purebasic.fr/english/viewto ... ez#p601605

4. Somebody(I don't remember who) on the forums saying they didn't like full screen games.

So I decided on a rewrite(or 2) and I still haven't finished it yet! (Windowed, mouse controlled, nicer graphics, high score table, borrowed and modified reel animation).

Recently, having started to post in the forums, I decided I might as well just release the first version anyway, so people could have a look at it. It's quite playable and you don't have to spend hours on it. It's not 100% finished because I stopped working on it, but it's not far off. There are probably some bugs and glitches, but as I said, it's quite playable.
Feedback welcome, but I probably won't be doing any more to it.
I doubt it will work in Windows or MacOS but I don't know?

If you want to check it out: https://u.pcloud.link/publink/show?code ... T0YB3UDTQV

Here's a screenshot:

Image

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
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PBSlots![GAME] Linux only(probably)

Post by jacdelad »

Hey cool, yoh finished it! I'll try it on Windows in my nightshift! :D
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 460
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: PBSlots![GAME] Linux only(probably)

Post by Mindphazer »

Hi moulder61
Glad the you liked my high scores table :D

Just tried on Windows, it does work !
I've just played 3 minutes, but it looks cool and it's very colorful !

I'll try on my Mac tonight, and I'll let you know if you can define your game as "Cross-Platform" :mrgreen:
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: PBSlots![GAME] Linux only(probably)

Post by moulder61 »

@jacdelad
Hey cool, yoh finished it! I'll try it on Windows in my nightshift! :D
Erm, no, I didn't finish it. This is the original V1.
I'm working on V3 now. Well I was, I've been converting Puzzle of Mystralia by SPH to work in Linux and harassing you about PureMondrian working in Linux. ;) Plus a couple of other small projects.

@Mindphazer

Wow, it works on Windows? Cool, maybe more than 3 people can play it now. :)
Playing the 50 credits doesn't take too long so it's good to fill in the odd 10 minutes or so. It's just a bit of fun and it was more to see if I could actually program something original?
Yes it is a bit colourful. V3 is generally nicer looking and is mostly the same code chopped about but with Nituvious's reel animation. I haven't got as far as borrowing your high score routine yet. :)

Thanks for the comments guys. I am aware that it could be a lot better, different, more features etc etc but it does what it's designed to, mostly, so I'm not unhappy with it.
It's only the 3rd game I've ever coded. The first was a Bingo caller program in 1985 on a Commodore 64 that worked quite well and actually called out the numbers(I had a speech cartridge attached) as well as display them lit up on a grid. Yes, I'm that old.
The year before I started PBSlots I was following PureProgramming's snake game tutorial and then beefing it up a bit but I never quite finished that either. This is how it looked when I left it. Maybe I'll unload that on you all as well. :P

Image

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
dige
Addict
Addict
Posts: 1405
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: PBSlots![GAME] Linux only(probably)

Post by dige »

Thanks for the game and the source code. Unfortunately, something is not working with the graphics on Windows 10:

Image
"Daddy, I'll run faster, then it is not so far..."
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: PBSlots![GAME] Linux only(probably)

Post by moulder61 »

@dige

I don't use Windows so I did mention it was Linux only(probably). Mindphazer mentioned it worked for him in Windows but I don't know what version he is using?

It looks like the reel sprites aren't showing up for some reason? You might have to adapt it yourself somehow? The code is free to do as you please with.

I have a similar issue when something written for Windows doesn't work in Linux. I have to try to fix it myself. :) I've learned how to get around some things by doing that. Not always easy but quite satisfying.

Sorry I can't be of more help.

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
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 460
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: PBSlots![GAME] Linux only(probably)

Post by Mindphazer »

moulder61 wrote: Mon Jul 29, 2024 1:36 pm @dige

I don't use Windows so I did mention it was Linux only(probably). Mindphazer mentioned it worked for him in Windows but I don't know what version he is using?
I've tried on two Windows 10 computers (DPI 100%, DPI 125%) - PB 6.11 x64
Both are working, i don't have the graphics problem mentioned by Dige
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
infratec
Always Here
Always Here
Posts: 7618
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PBSlots![GAME] Linux only(probably)

Post by infratec »

It works here too on Win10 x64 with PB 6.11 x86
infratec
Always Here
Always Here
Posts: 7618
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PBSlots![GAME] Linux only(probably)

Post by infratec »

Works also on an iMac 27" 2013 with Sonoma 14.5. PB 6.11 x64
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: PBSlots![GAME] Linux only(probably)

Post by moulder61 »

@Mindphazer and @infratec

Thanks for testing it out guys. I didn't realise I was such a proficient programmer! ;)
I really have no idea why it isn't working for dige? I don't think I did anything spectacular with it?

Out of curiosity, did you actually like playing the game or is it a bit rubbish? :P

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
infratec
Always Here
Always Here
Posts: 7618
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PBSlots![GAME] Linux only(probably)

Post by infratec »

I don't play it.

For me this slot machine stuff is stupid.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: PBSlots![GAME] Linux only(probably)

Post by moulder61 »

infratec wrote: Mon Jul 29, 2024 4:00 pm I don't play it.

For me this slot machine stuff is stupid.
Fair enough. :)
"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
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 460
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: PBSlots![GAME] Linux only(probably)

Post by Mindphazer »

moulder61 wrote: Mon Jul 29, 2024 3:50 pm @Mindphazer and @infratec

Thanks for testing it out guys. I didn't realise I was such a proficient programmer! ;)
I really have no idea why it isn't working for dige? I don't think I did anything spectacular with it?

Out of curiosity, did you actually like playing the game or is it a bit rubbish? :P

Moulder.
I tried on my Mac tonight. As Infratec said, it works fine !
I played a few times (best score = 63)
It's fun but honestly, I won't play every day :D

That said, it's a nice game !
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: PBSlots![GAME] Linux only(probably)

Post by moulder61 »

@Mindphazer

Thanks for the feedback. :)
I made the game for myself because one of the first games I got on my C=64 was Sooper Froot. I was trying to do an updated version and to see if I could actually program a game?
I wouldn't play it every day either! :P

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
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PBSlots![GAME] Linux only(probably)

Post by jacdelad »

Hi moulder61,
it took me a while to try it out, but today was the time.

Firstly, I have to say that I never was in touch with real slot machines, so I can't say anything about its "realism". I must confess that I don't understand what the extra buttons are for.

But I can tell you three technical things that caught my attention:
Firstly, it is not DPI-aware. I use 3840*2160 with 150% scaling and only saw parts of the game until I changed to 100%.
Secondly, this game doesn't use the mouse, so in my opinion you should hife the mouse cursor.
The third point is, I find the control a bit confusing. You offer an explanation, But I for one forgot about the controls (except the space bar) when I needed it. Maybe this could be done more intuitive.

Beside this, it worked. Thankfully I'm still not addicted.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Post Reply