PureMondrian

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
zikitrake
Addict
Addict
Posts: 875
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Re: PureMondrian

Post by zikitrake »

AZJIO wrote: Thu Jul 11, 2024 4:19 pm Maybe you don’t know about these games: CubePicker, Balloons, BallBrick
Thank you. added to my repository :)
PB 6.21 beta, PureVision User
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PureMondrian

Post by jacdelad »

New release and updated code on GitHub (https://github.com/jacdelad/PureMondrian):
- 88 new puzzles
- Save system to save progress
- Timer
- Solve button hidden :wink:
- Bugfixes

Now I want to redesign the puzzle list, add a puzzle creator (with solvable puzzles), inputs optimized for touch, unlocking puzzles step by step and a "soft solving"-button, which only places one tile. Then it's done.
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
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Re: PureMondrian

Post by ebs »

@jacdelad,

This keeps getting better and better. Thanks for the update!

Regards,
Eric

Now off to find the Solve button... :D
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PureMondrian

Post by jacdelad »

Hi Eric,
thanks for kind words. The solve button is not hard to find, especially since you have the source on hand. I still would recommend you to play the puzzles since it's much more satisfying to solve one (especially when it takes hours). :mrgreen:
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
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PureMondrian

Post by jacdelad »

1.4 in GitHub: updated GUI, now you need to solve 50% of the puzzles of a difficulty to unlock the next difficulty level, bugfixes.
The ToDo-list is getter shorter. :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
idle
Always Here
Always Here
Posts: 5897
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: PureMondrian

Post by idle »

jacdelad wrote: Wed Jul 24, 2024 4:34 am 1.4 in GitHub: updated GUI, now you need to solve 50% of the puzzles of a difficulty to unlock the next difficulty level, bugfixes.
The ToDo-list is getter shorter. :D
Its quite addictive, would make a great unlock desktop screen. Get back to work, I'm trying! :lol:
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PureMondrian

Post by jacdelad »

Hi idle, what do you mean by "unlock desktop screen"? An animation when unlocking a new difficulty level?
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
idle
Always Here
Always Here
Posts: 5897
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: PureMondrian

Post by idle »

jacdelad wrote: Wed Jul 24, 2024 12:56 pm Hi idle, what do you mean by "unlock desktop screen"? An animation when unlocking a new difficulty level?
No i mean replacing the login screen. Who needs a password when you can spend half an hour trying to solve a puzzle.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: PureMondrian

Post by moulder61 »

@jacdelad

It was really bugging me that I couldn't play PureMondrian since the inclusion of vector graphics, and my ability to understand the code was limited, but I am very stubborn and don't like to be beaten, so, I managed to work out the problem with it not working for me in Linux. :idea:

If it affects anyone else, try removing #PB_Canvas_ClipMouse from line 895. That did it for me. ;)

The game doesn't look as good in a dark theme, so I'll probably tweak it a bit to my liking. Very nice game though. :)

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: PureMondrian

Post by jacdelad »

Hello moulder!

Thanks for letting me know. I'll try out how it works without ClipMouse, maybe this isn't needed. But, I don't think the ClipMouse-problem is vector-related.

I know there's problems with dark themes. I'll try to change that in a future version. In the meantime, the solve buttons has been reactivated and appears automatically when 10 minutes have passed.
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
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: PureMondrian

Post by moulder61 »

I kind of fluked the discovery. I was wondering why I couldn't grab the pieces and figured it must be mouse related so searched for any mentions of mouse in the code.
I didn't know what clip mouse meant so I removed it to see what happened? It just happened to be the fix for my issue and didn't seem to affect anything else. :P
Regarding dark themes. The first image is your original code, the second my tweak. I basically just changed black to grey and blue to red. It pops out a bit more now. :wink:
Looks OK on a light theme too. See third image.

Moulder.

Image

Image

Image
"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: PureMondrian

Post by jacdelad »

Hi moulder61,
this looks good, though it's a bit too much red for my taste. I'll consider this. And thanks for the screenshots, a picture says more than 1000 words.

The ClipMouse-flag prevents the mouse from leaving the gadget, when a piece is grabbed. That's all.

Update: I uploaded a modified code, which shall look better with dark themes. Does it work? I know how to read the different colors in Windows, but that's all. It would be cool if PureBasic had a built-in function which would work on all platforms, like GetSystemColor(SomeElement).

Also: The puzzle list looks a lot different on Linux. Is there a way to change this? I did it for Windows and it shows 3 puzzles on each line (which looks much better).
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
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: PureMondrian

Post by AZJIO »

I don't like the gradient on the buttons and rounded corners. It used to be better, but you need to paint it with less bright colors.
The gray color is really perfect for a black and white theme.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: PureMondrian

Post by moulder61 »

@jacdelad

I saw the colour was a constant, #Blue, so just tried #Red instead. I just wanted something that showed up better against the dark background and also worked on a light background, but it is a bit loud! 8) I'll check out your modified code a bit later and let you know what I discover. ;)

All I can say regarding ClipMouse was that I couldn't pick up the pieces, and if I tried, the program hung and was mostly unclickable anywhere.

Other than screenshots you might have uploaded previously, I don't know what it's supposed to look like in Windows? I have no idea how you would get 3 buttons in a line? I vaguely remember when I tried modifying an earlier version that the button width might have been set to 180? Not sure, but maybe it's something to do with that? I'll see if I can work it out?

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
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: PureMondrian

Post by AZJIO »

Make it possible that when a thrown piece overlaps other pieces, the old ones are removed. Then you won't have to manually remove it before throwing in a new one.
Post Reply