Page 3 of 6
Re: Magic 4x4
Posted: Fri May 16, 2025 6:40 am
by IceSoft
@SPH,
Also a small bug:
The finish check is to late if all field filled and the next move can not change the boad.
"Game Over" comes not.
You have to make first a next(last) move which nothing changing on the board. only the move (press the key) have to be done before the 'finish' check is starting.
Re: Magic 4x4
Posted: Fri May 16, 2025 8:36 am
by Fred
I fixed a ScreenOutput() issue with DPI aware mode on Windows, should work with 6.21 final. You also need to change these lines to have the font size correct in DPI aware mode:
Code: Select all
Police = LoadFont(0, "Arial", DesktopUnscaledX(zoom/25))
Police2 = LoadFont(1, "Arial", DesktopUnscaledX(zoom/70))
Police3 = LoadFont(2, "Arial", DesktopUnscaledX(zoom/23))
Police4 = LoadFont(3, "Arial", DesktopUnscaledX(zoom/12))
After this change, all works fine here, good work !
Re: Magic 4x4
Posted: Fri May 16, 2025 8:44 am
by IceSoft
@SPH,
Another improvement:
Its better to start with two tiles. It make it also clearer what is to do with 2 same tiles I think.
Re: Magic 4x4
Posted: Fri May 16, 2025 10:09 am
by idle
What sort of magic, is this!
Thanks for sharing
Re: Magic 4x4
Posted: Fri May 16, 2025 12:38 pm
by NicTheQuick
Shit, I made 2 wrong moves and now it's over...

Re: Magic 4x4
Posted: Fri May 16, 2025 3:13 pm
by IceSoft
NicTheQuick wrote: Fri May 16, 2025 12:38 pm
Shit, I made 2 wrong moves and now it's over...
Thats the situation => I miss the "GAME OVER" as I told here:
IceSoft wrote: Fri May 16, 2025 6:40 am
@SPH,
Also a small bug:
The finish check is to late if all field filled and the next move can not change the boad.
"Game Over" comes not.
You have to make first a next(last) move which nothing changing on the board. only the move (press the key) have to be done before the 'finish' check is starting.
Re: Magic 4x4
Posted: Fri May 16, 2025 4:47 pm
by SPH
v1.1d (post 1)
Animation almost finished.
Graphic enhancements.
Advice from Fred and IceSoft corrected...

Re: Magic 4x4
Posted: Fri May 16, 2025 8:49 pm
by IceSoft
@SPH
BUG?
Sometimes the first stone has not the value 2
Re: Magic 4x4
Posted: Fri May 16, 2025 10:15 pm
by SPH
IceSoft wrote: Fri May 16, 2025 8:49 pm
@SPH
BUG?
Sometimes the first stone has not the value 2
it's not a bug: the added piece (even the first one) is always a 2 or a 4 (and this, throughout the game)
Re: Magic 4x4
Posted: Sat May 17, 2025 4:26 am
by IceSoft
IceSoft wrote: Fri May 16, 2025 8:44 am
@SPH,
Another improvement:
Its better to start with two tiles. It make it also clearer what is to do with 2 same tiles I think.
@SPH
What are you think about this "improvement"?
Re: Magic 4x4
Posted: Sat May 17, 2025 6:57 am
by SPH
IceSoft wrote: Sat May 17, 2025 4:26 am
IceSoft wrote: Fri May 16, 2025 8:44 am
@SPH,
Another improvement:
Its better to start with two tiles. It make it also clearer what is to do with 2 same tiles I think.
@SPH
What are you think about this "improvement"?
Meh...
And then, a piece allows you to project it against the wall of your choice. And then, you quickly understand what to do.
But thanks for the suggestion.

On the other hand, I would code the possibility of going back 5 moves if we say to ourselves that we should not have done a manipulation

Re: Magic 4x4
Posted: Sat May 17, 2025 1:13 pm
by NicTheQuick
SPH wrote: Fri May 16, 2025 4:47 pm
v1.1d (post 1)
Animation almost finished.
Graphic enhancements.
Advice from Fred and IceSoft corrected...
A bit of feedback here: I don't like the flickering of new tiles. Can you make it optional or change the animation? Maybe implement some kind of growing tile. So it starts a bit smaller and grows into normal size? I think that would look way better.
Re: Magic 4x4
Posted: Sat May 17, 2025 1:22 pm
by miso
Also, with the new PB versions (they got a new compiler check) Line 359:
Code: Select all
DisplayTransparentSprite(plateau(x+1,y+1),x*zoom/4,y*zoom/4,flash+150)
[ERROR] DisplayTransparentSprite(): A sprite should be created with the flag #PB_Sprite_AlphaBlending to use this command.
Re: Magic 4x4
Posted: Sat May 17, 2025 2:14 pm
by SPH
@Nikthequick:
I like it.
I might create other effects and let the player choose.
@miso:
Oh! I haven't looked into this option because I'm still using an old version of PB. But if the latest version makes this option mandatory, then I'll do it.
(I'm downloading the latest version right away....)
EDIT
@miso:
... I downloaded version 6.21b9, but I don't understand how to use "PB_Sprite_AlphaBlending."
Can you help me concretely?
Re: Magic 4x4
Posted: Sat May 17, 2025 2:20 pm
by miso
It's the beta 9, so you might not want to. (But this will be with the new final release.)