Page 4 of 8
Re: PureMondrian
Posted: Thu Jul 04, 2024 1:22 pm
by moulder61
@infratec
Thanks, that fixed the internet issue for me.

I might have been able to work it out myself, but probably not.
@jacdelad
Equally, I don't use Windows, so I'll never make any money programming in PB.
I kind of have two games in development at the moment, so if/when I consider them good enough to share, I'm sure the other two Linux users will be happy. :p
The issue started for me when Mr.L changed the graphics to vector or whatever else it was he did? They look really nice, but it stopped working after that.
Moulder.
Re: PureMondrian
Posted: Thu Jul 04, 2024 1:49 pm
by Mindphazer
Hello jacdelad
That's a nice game, thanks for that !
Do you think it could be possible to change the way to rotate a piece ?
I use a laptop, and on a touchpad, it's impossible to hold the left button and right-click at the same time !
Maybe you could consider usig a keyboard shortcut ?
Thanks a lot
Re: PureMondrian
Posted: Thu Jul 04, 2024 2:12 pm
by AZJIO
the shape could be rotated before dragging it.
Re: PureMondrian
Posted: Thu Jul 04, 2024 2:49 pm
by Axolotl
Hi Moulder,
.... I'm sure the other two Linux users will be happy. :p ....
Count three. I am determined to switch to Linux.
Sorry for OTM. Maybe this announcement increases the pressure on me.....
Re: PureMondrian
Posted: Thu Jul 04, 2024 4:11 pm
by moulder61
@Axolotl
Count three. I am determined to switch to Linux.
Well, if you have trouble making the switch to Linux I'm happy to help, if I can.
Whether that is getting PB working with a particular Linux distro or just choosing a distro in the first place.
Don't ask me about programming though. I know very little.
Moulder.
Re: PureMondrian
Posted: Thu Jul 04, 2024 4:29 pm
by jacdelad
Ok, so...I'm thankful for all the input. I will do another version with some improvements, like an alternative method for rotating.
All other suggestions: Please do it yourself! You have the code and the permission to do this for your own purposes. As stated in the initial post, I just wanted to solve the master riddles shipped with the REAL game this program is based on. I just put the game around it to make it playable. If you rellay like it, I recommend you to buy the original (it's a great gift too, because it looks easy, but it isn't, at least on the harder stages).
However, I am developing "normal" software, like the Gerber module and man tools for the company I worked for. I'm not a game designer and designing/programming games is not tempting to me. This one is an "accident" which just came to life through the challenge of solving the REAL game. So I see it as done now and want to move on to other projects.
You could make it use the 3D engine, add sounds, use full screen and whatever. Like I said, everyone who wants to is invited to do so!
Re: PureMondrian
Posted: Thu Jul 04, 2024 6:16 pm
by moulder61
@jacdelad
I get where you are coming from. You did something as an experiment and it's turned into a monster!
I'm trying to write a game or two and they will be free for anybody to do anything with. If I charged money there would be an obligation on my part to fix stuff or develop it or whatever, and I'm not interested in doing that particularly. At the moment, it's a learning experience for me. If anybody enjoys it or learns something from it(even if it's how NOT to program!), that's a good thing.
Thanks for what you have done so far.
Moulder.
Re: PureMondrian
Posted: Sat Jul 06, 2024 9:04 pm
by Kwai chang caine
Nice game, thanks for sharing

Re: PureMondrian
Posted: Mon Jul 08, 2024 10:03 pm
by jacdelad
KCC likes it, now I can die in peace!
@Mindphazer: I already did some changes, but I am suck on the notebook-rotation-problem. How would you offer a better method to rotate the piece? I genuinely have no idea...
@moulder61: Did you get it to work on Linux now?
Re: PureMondrian
Posted: Mon Jul 08, 2024 10:18 pm
by Mindphazer
jacdelad wrote: Mon Jul 08, 2024 10:03 pm
@Mindphazer: I already did some changes, but I am suck on the notebook-rotation-problem. How would you offer a better method to rotate the piece? I genuinely have no idea...
Well, I tried to add a shortcutmenu with, for example the "R" key : while moving the piece, if you press the R key, it rotates just like when you right-click. But it doesn't work so far, and i didn't have time to understand why yet...
Re: PureMondrian
Posted: Mon Jul 08, 2024 10:53 pm
by jacdelad
Using a key shouldn't be a problem. Do you want full keyboard control?
Re: PureMondrian
Posted: Mon Jul 08, 2024 11:15 pm
by Mindphazer
Well, here's how I did, assuming I want to rotate the piece using the "W" key.
Add an enumeration
Code: Select all
Enumeration MenuElements
#WKey
EndEnumeration
Then add this line after opening the main window :
Code: Select all
AddKeyboardShortcut(#MainWindow, #PB_Shortcut_W, #WKey)
Finally, add these lines in the main select, after Case #PB_Event_CloseWindow
Code: Select all
Case #PB_Event_Menu
If EventMenu() = #WKey
PostEvent(#PB_Event_Gadget,#MainWindow,#Canvas,#PB_EventType_RightClick)
EndIf
Re: PureMondrian
Posted: Mon Jul 08, 2024 11:50 pm
by jacdelad
The canvas already offers reacting on keyboard inputs, so I'll prefer this. But thanks for the suggestion.
Re: PureMondrian
Posted: Tue Jul 09, 2024 2:07 am
by jacdelad
I updated the package on GitHub (be sure to get the Win.anim file too as it contains the new winning animation). Also: bugfixes, use "R" to rotate a tile while holding it, fixed opening links, like infratec posted, added icon for the compiled program...).
https://github.com/jacdelad/PureMondrian/tree/main
Re: PureMondrian
Posted: Tue Jul 09, 2024 8:22 am
by Mindphazer
Hello Jac de Lad,
thanks for the update !
The way you manage keyboard is, indeed, simplier than the way i was doing it !