Log In  

Cart #pico2049-4 | 2022-02-18 | Code ▽ | Embed ▽ | No License
2

my second "full game"
it s a classic 2048 game
it was difficult for me to do something which is working

visual are very simple.

feel free to leave some comments or advices
hope you ll have some fun with it

/// update 14/2/22 : just del 0 "cell"

P#106862 2022-02-13 21:14 ( Edited 2022-02-18 15:00)

:: dw817
1

I would leave the zero (0) boxes blank. You just see the block and not the digit, @pouranat.

P#106868 2022-02-13 23:18

thanks for your play and your advice, just dell "zero boxes"

P#106906 2022-02-14 16:23

A problem I have is that currently, number chains like 2-2-4 just merge both instances at once, unlike the original game

P#106909 2022-02-14 17:23
:: dw817

I agree with @DubDoesStuff, @pouranat. This game is great to play but right at the end it merged 2-numbers that it wasn't supposed to.

You can find another version of 2048 HERE:

https://www.lexaloffle.com/bbs/?tid=43985

Perhaps it might show you how to fix this problem ?

Yet this is indeed a complex and beautiful game and I must give you my star, your first, for your hard work and fun gameplay.

P#106916 2022-02-14 18:49 ( Edited 2022-02-14 18:49)

thanks for your advices @DubDoesStuff and @dw817, i will work on it.
i had implement something for it but it seems it work sometimes and sometimes not.

P#107054 2022-02-16 18:53

@DubDoesStuff and @dw817 : thanks
i just correct the bug where there is multiple fusion on the same cell with only one move

P#107167 2022-02-18 15:02

It seems the game ends when there is no more room for a new tile instead of checking to see if there are no more moves.

P#107184 2022-02-18 17:35 ( Edited 2022-02-19 02:19)
:: dw817

There is still some confusion for me, @pouranat. Let is suppose we have this:

[8x24]

And press UP should it be this:

[8x24]

or this ?

[8x24]

And if so, why ?

I'm thinking it should be the 2 4 blank , the last image since when you push UP it takes all the items from the bottom first moving them up. What do you think ?

P#107186 2022-02-18 17:56 ( Edited 2022-02-18 17:57)

@Yopenatal: i program the gameover like that: first the cells move then it create a new cell, if there isn t any free place for the new cell gameover. i don t know how the gameover work on the original game

@dw817 : for the example you choose, for me it does:
4
2
0

i just try on the original 2048 and it seems ok

thanks for you help ;)

P#107224 2022-02-19 06:57
:: dw817

Hm ! You are right, @pouranat. It does. I was just trying the original at the domain website. It animates though, showing the numbers merge and a new number appears just as you described.

I guess without animation it's a little hard for me to see.

This is an interesting game. If I find time (which could be never :) ) I may want to write my own version complete with full animation of the blocks - and option of which to merge first, that which is on the opposite - or same side.

P#107260 2022-02-19 18:16

@dw817 sure, at the beginning, i would like to put some animations but recreate a game like that was for me more difficult than i was thinking so i have done something really basic (i am beginner at programmation)

maybe, i ll try to implement some animations.
great news if you try to do your own version ;)

P#107317 2022-02-20 09:23

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-05-03 23:27:27 | 0.068s | Q:33