Pure2048

Advanced game related topics
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Pure2048

Post by Mindphazer »

Thank you for the corrections !
And... you're right, the “about” menu is managed specifically by MacOS, but it should appear on Linux as it does on Windows. Fixed now hopefully.
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
threedslider
Enthusiast
Enthusiast
Posts: 377
Joined: Sat Feb 12, 2022 7:15 pm

Re: Pure2048

Post by threedslider »

Awesome game to Pure2048 ! :mrgreen:

Nice and good job on that you make me as inspiration by your game :D

Thanks for sharing and keep it up your futur game as well :wink: :arrow: :idea: :?: :!:
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Pure2048

Post by AZJIO »

Code: Select all

  LanguageRU:
  Data.s "MenuJeu", "Игра"
  Data.s "MenuItemNouveau", "Новая"
  Data.s "MenuItemUndo", "Отменить последний ход"
  Data.s "MenuItemQuit", "Выйти"
  Data.s "MenuTheme", "Темы"
  Data.s "MenuItemAbout", "Об игре"
  Data.s "Score", "СЧЕТ"
  Data.s "HighScore", "ЛУЧШИЙ"
  Data.s "Attention", "Внимание"
  Data.s "Abandon", "Вы действительно хотите выйти из игры?" + #CRLF$ + "Если у вас будет высокий балл, он не будет сохранен."
  Data.s "*", "*"
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Pure2048

Post by Mindphazer »

Russian language added, thanks to AZJIO

First post updated
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
User avatar
falsam
Enthusiast
Enthusiast
Posts: 632
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: Pure2048

Post by falsam »

Here's a nice version of the famous 2048 game. Thanks for sharing. I really like it 💕

➽ Windows 11 64-bit - PB 6.21 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect 🤪
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Pure2048

Post by Mindphazer »

Thanks falsam & threedslider for your kind words.
I've tried to make a game that's fun to play, and I'd like to think I've succeeded !
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Pure2048

Post by AZJIO »

1. It would be great if the styles were stored in an ini file. Then the user can create their own design style.
2. It is also better to store language files in an external file, so that you can also create your own file without having to compile.
3. It would be great to have a phone version.
There is another such version.
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Pure2048

Post by Mindphazer »

AZJIO wrote: Wed Jun 11, 2025 10:30 am 1. It would be great if the styles were stored in an ini file. Then the user can create their own design style.
2. It is also better to store language files in an external file, so that you can also create your own file without having to compile.
3. It would be great to have a phone version.
There is another such version.
I'll think about points 1 & 2
For point #3, i'm not familiar enough with spiderbasic, so it's not planned yet
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Pure2048

Post by AZJIO »

If you cancel a move, and then repeat the move and do it cyclically several times, the score increases, but the playing field remains the same.
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Pure2048

Post by Mindphazer »

AZJIO wrote: Wed Jun 11, 2025 4:29 pm If you cancel a move, and then repeat the move and do it cyclically several times, the score increases, but the playing field remains the same.
Can't reproduce this.
If you cancel a move, the points are cancelled and the score goes back to the previous value.
I've tried several times without having the behaviour you're explaining...
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
PeDe
Enthusiast
Enthusiast
Posts: 278
Joined: Sun Nov 26, 2017 3:13 pm

Re: Pure2048

Post by PeDe »

Mindphazer wrote: Wed Jun 11, 2025 5:32 pm Can't reproduce this.
If you cancel a move, the points are cancelled and the score goes back to the previous value.
I've tried several times without having the behaviour you're explaining...
I can reproduce the error if more than two fields are merged.
https://www.dreisiebner.at/temp/Pure2048-Punkte.png

Peter
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Pure2048

Post by Mindphazer »

Oh damn :?
I see what you mean
I will take a closer look

Thanks Peter !

Edit : problem solved, first post updated
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 188
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Pure2048

Post by moulder61 »

@Mindphazer

On my Linux install the language is in German, mostly. The theme menu looks English and the game over screen says "Game Over". Your first version displayed mostly in French, but "SCORE" and "BEST" were in English.

I tried tweaking the code a bit, but so far haven't been able to get it to display in English fully.

The section of code that checks the ENV variable in Linux seems to be doing what it should, but on ProcedureReturn, the "en" string seems to be converted to 0, which I guessed would either choose French, as it's the first language listed in the Select/Case statement, or at the least default to US English in the same statement. That isn't happening.

I did look at other ways of getting the LANG variable in Linux, but to be honest, the way it's being done looks the most consistent.

I don't remember you using Linux, but, any ideas?

Moulder.

Image
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 456
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Pure2048

Post by Mindphazer »

Hi Moulder,
Well, in fact, I have not done any translation for the themes names, neither for "game over"
This means, whatever language is used, the end of the game will always display "Game Over" !
I thought these words were enough universal to stay as they are...

I can handle the translation if you really want it :mrgreen:
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 188
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Pure2048

Post by moulder61 »

@Mindphazer

Thanks for the offer, but I can force it to be in UK English, just for my benefit. :lol: I have various ideas for getting around it but I was trying to do it within the constraints of your code so it would still work for everybody else.

At the moment, I haven't worked out how to fix it or whether it's just me having issues? It looks like it should work but somehow it doesn't for me?

If anyone else is reading this and using Linux, what is your experience regarding the language selection?

Moulder.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
Post Reply