Page 4 of 6
Re: Magic 4x4
Posted: Sat May 17, 2025 2:27 pm
by SPH
Anyway, in the first few lines of the game's code, I specified that I'm using PB 6.12.
Sorry to those using the latest version of PB.
Re: Magic 4x4
Posted: Sat May 17, 2025 2:33 pm
by miso
If you add the flag, it will run with both.
Re: Magic 4x4
Posted: Sat May 17, 2025 10:30 pm
by pfnuesu
Thanks SPH for sharing, I love this game (and my highscore isn't nearly as high as NicTheQuick's).
In my opinion there's no need for an animation for the new tiles, but that's...my opinion. (well actually it distracts me almost to the point that it hurts my eyes...) For the time beeing I changed flash=1 to flash=0 - so thanks for not just providing the compiled program but also giving the source code.
NicTheQuick wrote: Sat May 17, 2025 1:13 pm
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: Sun May 18, 2025 7:43 am
by SPH
pfnuesu wrote: Sat May 17, 2025 10:30 pm
so thanks for not just providing the compiled program
I never offered the compiled file.
For the new piece to flash, we need to know where it appears. But okay, I'd reduce its flashing.
EDIT :
v1.1e
Ability to back out 4 moves if you feel stuck (#PB_Key_Back)
Re: Magic 4x4
Posted: Sun May 18, 2025 10:00 am
by IceSoft
@SPH
I think there is a big bug on it:
Your 'move check "down"' works not correct:
a vertical line like:
result in:
but correct is:
Re: Magic 4x4
Posted: Sun May 18, 2025 8:04 pm
by SPH
I checked the rollback and there's no error.
But I know what you mean (it's misleading).
To see if there's any error, start the game and move a piece 4 times. Once done, you can rollback 4 times.
Make sure you have 1 piece, then 2 pieces, then 3, then 4.
The rollbacks are fine.
The confusion you're making (I'm sure) is that you play and rollback on 2 or 3 moves. It seems to "mix up" the pieces.
PS: I would make 5 rollbacks instead of 4. It will be in a future version. And now I need to make the animation for moving the pieces. Anyway, it will be in version 1.2.
Re: Magic 4x4
Posted: Mon May 19, 2025 8:37 am
by IceSoft
SPH wrote: Sun May 18, 2025 8:04 pm
PS: I would make 5 rollbacks instead of 4. It will be in a future version. And now I need to make the animation for moving the pieces. Anyway, it will be in version 1.2.
The count of used Rollbacks should be also shown on the "Highscore" output
Re: Magic 4x4
Posted: Mon May 19, 2025 5:33 pm
by SPH
IceSoft wrote: Mon May 19, 2025 8:37 am
SPH wrote: Sun May 18, 2025 8:04 pm
PS: I would make 5 rollbacks instead of 4. It will be in a future version. And now I need to make the animation for moving the pieces. Anyway, it will be in version 1.2.
The count of used Rollbacks should be also shown on the "Highscore" output
No: let's just say that no matter how you win, anything goes.

Re: Magic 4x4
Posted: Mon May 19, 2025 5:33 pm
by SPH
F5: Save
F6: Load
Back: Move back (up to 5 moves)
Arrow keys
Escape
---
You have everything you need to progress through the game. See the code in post 1 (v1.1f)
---
The next version will be 1.2 and will include animations of pieces sliding against walls.
Re: Magic 4x4
Posted: Tue May 20, 2025 12:53 pm
by #NULL
The collapsing, as mentioned by IceSoft, still doesn't always work correctly. Particularly when moving down. When 2 same pieces collapse, the remaining pieces stay behind the gap and don't shift further.
Re: Magic 4x4
Posted: Tue May 20, 2025 3:44 pm
by SPH
v1.1g
Indeed, there was a bug. It's fixed...
And what's more, on line 19, you can change the number of squares!
Enjoy!
Remaining to be done: piece sliding animation (v1.2)
Thx to #NUL and IceSoft
Re: Magic 4x4
Posted: Tue May 20, 2025 5:26 pm
by NicTheQuick
I finally got it!

And this is where it ended:

Re: Magic 4x4
Posted: Tue May 20, 2025 5:39 pm
by SPH
YEEEES !
Youpiiii
Best score !

Re: Magic 4x4
Posted: Wed May 21, 2025 5:48 am
by IceSoft
SPH wrote: Tue May 20, 2025 3:44 pm
And what's more, on line 19, you can change the number of squares!
Thx to #NUL and IceSoft
A small menu for choose/edit the number of squares will be nice.
Also the used time.
Ideas for "more fun to play"
- Time counter
- Joker stone
- Shuffle function
- ...
Re: Magic 4x4
Posted: Wed May 21, 2025 6:36 am
by SPH
IceSoft wrote: Wed May 21, 2025 5:48 am
SPH wrote: Tue May 20, 2025 3:44 pm
And what's more, on line 19, you can change the number of squares!
Thx to #NUL and IceSoft
A small menu for choose/edit the number of squares will be nice.
Also the used time.
Yes, I would make a menu to choose your grill.
