Magic 4x4

Advanced game related topics
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: Magic 4x4

Post 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.

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
miso
Enthusiast
Enthusiast
Posts: 410
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Magic 4x4

Post by miso »

If you add the flag, it will run with both.
pfnuesu
New User
New User
Posts: 9
Joined: Tue May 03, 2022 8:17 pm

Re: Magic 4x4

Post 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.
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: Magic 4x4

Post 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 :
:idea: v1.1e

Ability to back out 4 moves if you feel stuck (#PB_Key_Back)

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Magic 4x4

Post by IceSoft »

@SPH
I think there is a big bug on it:
Your 'move check "down"' works not correct:

a vertical line like:

Code: Select all

4
16
2
2
result in:

Code: Select all

4
16
-
4
but correct is:

Code: Select all

-
4
16
4
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: Magic 4x4

Post 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.

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Magic 4x4

Post 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
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: Magic 4x4

Post 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. :arrow: :idea:

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: Magic 4x4

Post 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.

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: Magic 4x4

Post 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.
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: Magic 4x4

Post 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

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
User avatar
NicTheQuick
Addict
Addict
Posts: 1504
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Magic 4x4

Post by NicTheQuick »

I finally got it!
Image
And this is where it ended:
Image
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: Magic 4x4

Post by SPH »

YEEEES !

Youpiiii

Best score ! :shock: :lol:

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Magic 4x4

Post 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
- ...
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: Magic 4x4

Post 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. :idea:

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
Post Reply