Skip to content

Commit 1bcccc8

Browse files
committed
New Thanks for Playing screen. Use existing strings.
1 parent 3d7da14 commit 1bcccc8

15 files changed

+1888
-155
lines changed

fonts/thanks_for_playing.fnt

+1,791-12
Large diffs are not rendered by default.

images/scenes/thanks_for_playing.png

-300 KB
Loading

languages/english.lng

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LANG_ID "en_US" // language code & country according to ISO 639-1 & ISO 3166-1, respectively
1616
LANG_NAME "English" // language name
1717
LANG_AUTHOR "Alexandre Martins" // translation author
18-
LANG_LASTUPDATE "2024-05-30" // date format: yyyy-mm-dd
18+
LANG_LASTUPDATE "2024-06-01" // date format: yyyy-mm-dd
1919
LANG_COMPATIBILITY "0.6.1" // required engine version
2020

2121

@@ -192,12 +192,7 @@ PLAYCLASSICLEVELS_NO "$OPTIONS_NO"
192192

193193
// Thanks for playing
194194
THANKSFORPLAYING_TITLE "Thanks for playing!"
195-
THANKSFORPLAYING_TEXT1 "Support this independent work! Get the official edition of the engine for mobile devices!"
196-
THANKSFORPLAYING_TEXT2 "Play Surge the Rabbit - and also your own games - on your phone and tablet!"
197-
THANKSFORPLAYING_TEXT3 "Become a supporter of this open source game engine today!"
198-
THANKSFORPLAYING_TEXT1M "\nThis game is created with <color=$COLOR_HIGHLIGHT>Open Surge</color>, a very flexible and open-source 2D game engine that is now in your hands!"
199-
THANKSFORPLAYING_TEXT2M ""
200-
THANKSFORPLAYING_TEXT3M "$THANKSFORPLAYING_TEXT3"
195+
THANKSFORPLAYING_TEXT "This game is created with Open Surge, a very flexible and open-source 2D game engine that is now in your hands!\n\nNow share the joy! Tell your family, friends and pets about it and spread the word!"
201196
THANKSFORPLAYING_YES "Sure!"
202197
THANKSFORPLAYING_NO "Not now"
203198

languages/esperanto.lng

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LANG_ID "eo" // language code & country according to ISO 639-1 & ISO 3166-1, respectively
1616
LANG_NAME "Esperanto" // language name
1717
LANG_AUTHOR "Jorge Maldonado Ventura" // translation author
18-
LANG_LASTUPDATE "2024-05-30" // date format: yyyy-mm-dd
18+
LANG_LASTUPDATE "2024-06-01" // date format: yyyy-mm-dd
1919
LANG_COMPATIBILITY "0.6.1" // required engine version
2020

2121

@@ -185,12 +185,7 @@ PLAYCLASSICLEVELS_NO "$OPTIONS_NO"
185185

186186
// Thanks for playing
187187
THANKSFORPLAYING_TITLE "Dankon pro ludi"
188-
THANKSFORPLAYING_TEXT1 "Subtenu ĉi tiun sendependan laboron! Akiru la oficialan eldonon de la motoro por porteblaj iloj!"
189-
THANKSFORPLAYING_TEXT2 "Ludi Surge the Rabbit - kaj ankaŭ viajn proprajn ludojn - en viaj poŝtelefono kaj tabulkomputiloj!"
190-
THANKSFORPLAYING_TEXT3 "Iĝi subtenanto de ĉi tiu malfermitkoda ludo hodiaŭ!"
191-
THANKSFORPLAYING_TEXT1M "\nĈi tiu ludo estis kreita per <color=$COLOR_HIGHLIGHT>Open Surge</color>, tre fleksebla kaj malfermitkoda 2D-a videluda motoro, kiu estas nun en viaj manoj!"
192-
THANKSFORPLAYING_TEXT2M ""
193-
THANKSFORPLAYING_TEXT3M "$THANKSFORPLAYING_TEXT3"
188+
THANKSFORPLAYING_TEXT "Ĉi tiu ludo estis kreita per Open Surge, tre fleksebla kaj malfermitkoda 2D-a videluda motoro, kiu estas nun en viaj manoj!\n\nNun diskonigu la ĝojon! Diru al via familio, amikoj kaj dombestoj kaj disvastigu la informon!" // FIXME
194189
THANKSFORPLAYING_YES "Jes ja!"
195190
THANKSFORPLAYING_NO "Ne nun"
196191

languages/french.lng

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LANG_ID "fr_FR" // language code & country according to ISO 639-1 & ISO 3166-1, respectively
1616
LANG_NAME "Français" // language name
1717
LANG_AUTHOR "Stilic" // translation author
18-
LANG_LASTUPDATE "2024-05-30" // date format: yyyy-mm-dd
18+
LANG_LASTUPDATE "2024-06-01" // date format: yyyy-mm-dd
1919
LANG_COMPATIBILITY "0.6.1" // required engine version
2020

2121

@@ -184,12 +184,7 @@ PLAYCLASSICLEVELS_NO "$OPTIONS_NO"
184184

185185
// Thanks for playing
186186
THANKSFORPLAYING_TITLE "Merci d'avoir joué !"
187-
THANKSFORPLAYING_TEXT1 "Soutenez ce travail indépendant ! Obtenez l'édition officielle du moteur pour les appareils mobiles !"
188-
THANKSFORPLAYING_TEXT2 "Jouez à Surge the Rabbit - et aussi à vos propres jeux - sur votre téléphone et votre tablette !"
189-
THANKSFORPLAYING_TEXT3 "Devenez un supporter de ce moteur de jeu open source dès aujourd'hui !"
190-
THANKSFORPLAYING_TEXT1M "\nCe jeu est créé avec <color=$COLOR_HIGHLIGHT>Open Surge</color>, un moteur de jeu 2D très flexible et open-source qui est maintenant entre vos mains !"
191-
THANKSFORPLAYING_TEXT2M ""
192-
THANKSFORPLAYING_TEXT3M "$THANKSFORPLAYING_TEXT3"
187+
THANKSFORPLAYING_TEXT "Ce jeu est créé avec Open Surge, un moteur de jeu 2D très flexible et open-source qui est maintenant entre vos mains !\n\nMaintenant, partagez la joie ! Parlez-en à votre famille, vos amis et vos animaux et faites passer le mot !" // FIXME
193188
THANKSFORPLAYING_YES "Bien sûr !"
194189
THANKSFORPLAYING_NO "Pas maintenant"
195190

languages/german.lng

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LANG_ID "de_DE" // language code & country according to ISO 639-1 & ISO 3166-1, respectively
1616
LANG_NAME "Deutsch" // language name
1717
LANG_AUTHOR "Wuzzy" // translation author
18-
LANG_LASTUPDATE "2024-05-30" // date format: yyyy-mm-dd
18+
LANG_LASTUPDATE "2024-06-01" // date format: yyyy-mm-dd
1919
LANG_COMPATIBILITY "0.6.1" // required engine version
2020

2121

@@ -184,12 +184,7 @@ PLAYCLASSICLEVELS_NO "$OPTIONS_NO"
184184

185185
// Thanks for playing
186186
THANKSFORPLAYING_TITLE "Danke fürs Spielen!"
187-
THANKSFORPLAYING_TEXT1 "Unterstütze diese unabhängige Arbeit! Hol dir die offizielle Edition der Engine für mobile Geräte!"
188-
THANKSFORPLAYING_TEXT2 "Spiele Surge the Rabbit - und auch deine eigenen Spiele - auf deinem Smartphone und Tablet!"
189-
THANKSFORPLAYING_TEXT3 "Werde heute zum Unterstützer dieser Open-Source-Spielengine!"
190-
THANKSFORPLAYING_TEXT1M "\nDieses Spiel wurde mit <color=$COLOR_HIGHLIGHT>Open Surge</color> erstellt, einer sehr flexiblen Open-Source-2-D-Spielengine, die sich jetzt in deinen Händen befindet!"
191-
THANKSFORPLAYING_TEXT2M ""
192-
THANKSFORPLAYING_TEXT3M "$THANKSFORPLAYING_TEXT3"
187+
THANKSFORPLAYING_TEXT "Dieses Spiel wurde mit Open Surge erstellt, einer sehr flexiblen Open-Source-2-D-Spielengine, die sich jetzt in deinen Händen befindet!\n\nUnd jetzt verbreite den Spaß! Erzähl deiner Famile, Freunden und Haustieren davon!" // FIXME
193188
THANKSFORPLAYING_YES "Sicher!"
194189
THANKSFORPLAYING_NO "Jetzt nicht"
195190

languages/italian.lng

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LANG_ID "it_IT" // language code & country according to ISO 639-1 & ISO 3166-1, respectively
1616
LANG_NAME "Italiano" // language name
1717
LANG_AUTHOR "Nicolò Patanè" // translation author
18-
LANG_LASTUPDATE "2024-05-30" // date format: yyyy-mm-dd
18+
LANG_LASTUPDATE "2024-06-01" // date format: yyyy-mm-dd
1919
LANG_COMPATIBILITY "0.6.1" // required engine version
2020

2121

@@ -185,12 +185,7 @@ PLAYCLASSICLEVELS_NO "$OPTIONS_NO"
185185

186186
// Thanks for playing
187187
THANKSFORPLAYING_TITLE "Grazie per aver giocato!"
188-
THANKSFORPLAYING_TEXT1 "Sostieni questo lavoro indipendente! Ottieni l'edizione ufficiale dell'engine per dispositivi mobili!"
189-
THANKSFORPLAYING_TEXT2 "Giocate a Surge the Rabbit - e anche ai vostri giochi - sul vostro telefono e tablet!"
190-
THANKSFORPLAYING_TEXT3 "Diventa un sostenitore di questo engine di gioco open source oggi stesso!"
191-
THANKSFORPLAYING_TEXT1M "\nQuesto gioco è stato creato con <color=$COLOR_HIGHLIGHT>Open Surge</color>, un engine di gioco 2D molto flessibile e open-source che ora è nelle vostre mani.!"
192-
THANKSFORPLAYING_TEXT2M ""
193-
THANKSFORPLAYING_TEXT3M "$THANKSFORPLAYING_TEXT3"
188+
THANKSFORPLAYING_TEXT "Questo gioco è stato creato con Open Surge, un engine di gioco 2D molto flessibile e open-source che ora è nelle vostre mani.!\n\nCondividi la gioia parlandone alla famiglia, agli amici e animali e spargi la voce!" // FIXME
194189
THANKSFORPLAYING_YES "Sicuro!"
195190
THANKSFORPLAYING_NO "Non ora"
196191

languages/polish.lng

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LANG_ID "pl_PL" // language code & country according to ISO 639-1 & ISO 3166-1, respectively
1616
LANG_NAME "Polski" // language name
1717
LANG_AUTHOR "suve" // translation author
18-
LANG_LASTUPDATE "2024-05-30" // date format: yyyy-mm-dd
18+
LANG_LASTUPDATE "2024-06-01" // date format: yyyy-mm-dd
1919
LANG_COMPATIBILITY "0.6.1" // required engine version
2020

2121

@@ -185,12 +185,7 @@ PLAYCLASSICLEVELS_NO "$OPTIONS_NO"
185185

186186
// Thanks for playing
187187
THANKSFORPLAYING_TITLE "Dzięki za grę!"
188-
THANKSFORPLAYING_TEXT1 "Wesprzyj naszą pracę! Pobierz oficjalną wersję na urządzenia mobilne!"
189-
THANKSFORPLAYING_TEXT2 "Graj w Surge the Rabbit - oraz inne gry na tym silniku - na telefonie lub tablecie!"
190-
THANKSFORPLAYING_TEXT3 "Już dziś możesz wesprzeć ten otwarty silnik do gier!"
191-
THANKSFORPLAYING_TEXT1M "\nTa gra została stworzona przy użyciu <color=$COLOR_HIGHLIGHT>Open Surge</color>, otwartoźródłowego silnika 2D, który teraz jest w twoich rękach!"
192-
THANKSFORPLAYING_TEXT2M ""
193-
THANKSFORPLAYING_TEXT3M "$THANKSFORPLAYING_TEXT3"
188+
THANKSFORPLAYING_TEXT "Ta gra została stworzona przy użyciu Open Surge, otwartoźródłowego silnika 2D, który teraz jest w twoich rękach!\n\nPodziel się radością - opowiedz swoim znajomym i rodzinie!" // FIXME
194189
THANKSFORPLAYING_YES "Jasne!"
195190
THANKSFORPLAYING_NO "Nie tym razem"
196191

languages/portuguese.lng

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LANG_ID "pt_BR" // language code & country according to ISO 639-1 & ISO 3166-1, respectively
1616
LANG_NAME "Português do Brasil" // language name
1717
LANG_AUTHOR "Alexandre Martins" // translation author
18-
LANG_LASTUPDATE "2024-05-30" // date format: yyyy-mm-dd
18+
LANG_LASTUPDATE "2024-06-01" // date format: yyyy-mm-dd
1919
LANG_COMPATIBILITY "0.6.1" // required engine version
2020

2121

@@ -185,12 +185,7 @@ PLAYCLASSICLEVELS_NO "$OPTIONS_NO"
185185

186186
// Thanks for playing
187187
THANKSFORPLAYING_TITLE "Obrigado por jogar!"
188-
THANKSFORPLAYING_TEXT1 "Apóie este trabalho independente! Baixe a edição oficial da engine para mobile!"
189-
THANKSFORPLAYING_TEXT2 "Jogue Surge the Rabbit - e também seus próprios games - no celular e no tablet!"
190-
THANKSFORPLAYING_TEXT3 "Torne-se hoje mesmo um apoiador desta engine livre e de código aberto!"
191-
THANKSFORPLAYING_TEXT1M "\nEste jogo foi criado com o <color=$COLOR_HIGHLIGHT>Open Surge</color>, uma game engine 2D muito flexível e open-source que está agora mesmo nas suas mãos!"
192-
THANKSFORPLAYING_TEXT2M ""
193-
THANKSFORPLAYING_TEXT3M "$THANKSFORPLAYING_TEXT3"
188+
THANKSFORPLAYING_TEXT "Este jogo foi criado com o Open Surge, um motor de jogos 2D muito flexível e de código aberto que está em suas mãos!\n\nAgora espalhe a alegria! Compartilhe com sua família, seus amigos, seus bichinhos e divulgue!"
194189
THANKSFORPLAYING_YES "Beleza!"
195190
THANKSFORPLAYING_NO "Agora não"
196191

languages/russian.lng

+2-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
LANG_ID "ru_RU" // language code & country according to ISO 639-1 & ISO 3166-1, respectively
1515
LANG_NAME "Русский" // language name
1616
LANG_AUTHOR "Halatnikov" // translation author
17-
LANG_LASTUPDATE "2024-05-30" // date format: yyyy-mm-dd
17+
LANG_LASTUPDATE "2024-06-01" // date format: yyyy-mm-dd
1818
LANG_COMPATIBILITY "0.6.1" // required engine version
1919

2020

@@ -185,12 +185,7 @@ PLAYCLASSICLEVELS_NO "$OPTIONS_NO"
185185

186186
// Thanks for playing
187187
THANKSFORPLAYING_TITLE "Спасибо за игру!"
188-
THANKSFORPLAYING_TEXT1 "Поддержите эту независимую разработку! Скачайте официальную версию на мобильные устройства!"
189-
THANKSFORPLAYING_TEXT2 "Сыграйте в Surge the Rabbit - а также в ваши игры - на телефоне или планшете!"
190-
THANKSFORPLAYING_TEXT3 "Поддержите этот движок с открытым исходным кодом сегодня!" // slightly redundant, since there's no word for "supporter"
191-
THANKSFORPLAYING_TEXT1M "\nЭта игра создана с использованием <color=$COLOR_HIGHLIGHT>Open Surge</color>, очень гибкого 2D движка с открытым исходным кодом, который теперь в ваших руках!"
192-
THANKSFORPLAYING_TEXT2M ""
193-
THANKSFORPLAYING_TEXT3M "$THANKSFORPLAYING_TEXT3"
188+
THANKSFORPLAYING_TEXT "Эта игра создана с использованием Open Surge, очень гибкого 2D движка с открытым исходным кодом, который теперь в ваших руках!\n\nТеперь поделитесь с остальными! Расскажите вашим друзьям, семье и питомцам о ней!"
194189
THANKSFORPLAYING_YES "Конечно!"
195190
THANKSFORPLAYING_NO "Не сейчас"
196191

languages/spanish.lng

+2-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LANG_ID "es_ES" // language code & country according to ISO 639-1 & ISO 3166-1, respectively
1616
LANG_NAME "Español" // language name
1717
LANG_AUTHOR "Álvaro Bazán" // translation author
18-
LANG_LASTUPDATE "2024-05-30" // date format: yyyy-mm-dd
18+
LANG_LASTUPDATE "2024-06-01" // date format: yyyy-mm-dd
1919
LANG_COMPATIBILITY "0.6.1" // required engine version
2020

2121

@@ -184,12 +184,7 @@ PLAYCLASSICLEVELS_NO "$OPTIONS_NO"
184184

185185
// Thanks for playing
186186
THANKSFORPLAYING_TITLE "¡Gracias por jugar!"
187-
THANKSFORPLAYING_TEXT1 "¡Apoya este trabajo independiente! ¡Consigue la edición oficial del motor para dispositivos móviles!"
188-
THANKSFORPLAYING_TEXT2 "¡Juega a Surge the Rabbit - y también a tus propios juegos - en tu teléfono y tablet!"
189-
THANKSFORPLAYING_TEXT3 "¡Apoya hoy mismo este motor de juegos de código abierto!"
190-
THANKSFORPLAYING_TEXT1M "\n¡Este juego está creado con <color=$COLOR_HIGHLIGHT>Open Surge</color>, un motor de juegos 2D muy flexible y de código abierto que ahora está en tus manos!"
191-
THANKSFORPLAYING_TEXT2M ""
192-
THANKSFORPLAYING_TEXT3M "$THANKSFORPLAYING_TEXT3"
187+
THANKSFORPLAYING_TEXT "¡Este juego está creado con Open Surge, un motor de juegos 2D muy flexible y de código abierto que ahora está en tus manos!\n\n¡Comparte la alegria! ¡Cuentaselo a tu familia, amigos y mascotas y que corra la voz!" // FIXME
193188
THANKSFORPLAYING_YES "¡Claro!"
194189
THANKSFORPLAYING_NO "Ahora no"
195190

scripts/setup/scenes/thanks_for_playing.ss

+19-44
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,29 @@ using SurgeEngine.Video.Screen;
1212
using SurgeEngine.Platform;
1313
using SurgeEngine;
1414
using SurgeTheRabbit;
15+
using SurgeEngine.Camera;
1516

1617
object "Thanks for Playing" is "setup", "private", "detached", "entity"
1718
{
1819
fader = spawn("Fader").setFadeTime(0.5);
1920

20-
title = spawn("Thanks for Playing - Title");
21+
title = spawn("Thanks for Playing - Title")
22+
.setPosition(Vector2(Screen.width / 2, 1));
2123

22-
textA = spawn("Thanks for Playing - Text")
23-
.setPosition(Vector2(34, 48))
24-
.setMaxWidth(Screen.width - 34 * 2)
25-
.setText(1);
26-
27-
textB = spawn("Thanks for Playing - Text")
28-
.setPosition(Vector2(34, 87))
29-
.setMaxWidth(Screen.width - 34 * 2)
30-
.setText(2);
31-
32-
textC = spawn("Thanks for Playing - Text")
33-
.setPosition(Vector2(234, 128))
34-
.setMaxWidth(160)
35-
.setText(3);
24+
text = spawn("Thanks for Playing - Text")
25+
.setPosition(Vector2(Screen.width / 2, 64));
3626

3727
menu = spawn("Simple Menu Builder")
3828
.addOption("yes", "$THANKSFORPLAYING_YES", Vector2.zero)
39-
.addOption("no", "$THANKSFORPLAYING_NO", Vector2.down.scaledBy(16 * 1))
29+
.addOption("no", "$THANKSFORPLAYING_NO", Vector2.down.scaledBy(20 * 1))
4030
.setBackOption("no")
41-
.setPosition(Vector2(250, 184))
31+
.setPosition(Vector2(Screen.width / 2, 192))
4232
.setIcon("Thanks for Playing - Pointer")
4333
.setHighlightColor("ffee11")
4434
.setFontName("Thanks for Playing - Text")
45-
.setAlignment("left")
35+
.setAlignment("center")
36+
.setHighlightSound("samples/pause_highlight.wav")
37+
.setChooseSound("samples/pause_confirm.wav")
4638
.build();
4739

4840
state "main"
@@ -73,12 +65,7 @@ object "Thanks for Playing" is "setup", "private", "detached", "entity"
7365
fun onChooseMenuOption(optionId)
7466
{
7567
if(optionId == "yes") {
76-
77-
if(!SurgeEngine.mobile)
78-
SurgeTheRabbit.download();
79-
else
80-
SurgeTheRabbit.donate();
81-
68+
SurgeTheRabbit.share();
8269
state = "waiting";
8370
}
8471
else
@@ -100,9 +87,12 @@ object "Thanks for Playing - Title" is "private", "detached", "entity"
10087
{
10188
label.text = "$THANKSFORPLAYING_TITLE";
10289
label.align = "center";
103-
label.maxWidth = Screen.width - 16;
90+
}
10491

105-
transform.position = Vector2(Screen.width / 2, -1);
92+
fun setPosition(position)
93+
{
94+
transform.position = position;
95+
return this;
10696
}
10797
}
10898

@@ -113,24 +103,9 @@ object "Thanks for Playing - Text" is "private", "detached", "entity"
113103

114104
fun constructor()
115105
{
116-
label.text = "";
117-
label.align = "left";
118-
}
119-
120-
fun setText(p)
121-
{
122-
if(SurgeEngine.mobile)
123-
label.text = "$THANKSFORPLAYING_TEXT" + p + "M";
124-
else
125-
label.text = "$THANKSFORPLAYING_TEXT" + p;
126-
127-
return this;
128-
}
129-
130-
fun setMaxWidth(maxWidth)
131-
{
132-
label.maxWidth = maxWidth;
133-
return this;
106+
label.text = "$THANKSFORPLAYING_TEXT";
107+
label.align = "center";
108+
label.maxWidth = Screen.width - 48;
134109
}
135110

136111
fun setPosition(position)

sprites/scenes/thanks_for_playing.spr

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@
88
sprite "Thanks for Playing - Pointer"
99
{
1010
source_file "images/scenes/thanks_for_playing.png"
11-
source_rect 0 192 16 16
12-
frame_size 16 16
13-
hot_spot 16 0
11+
source_rect 0 176 23 21
12+
frame_size 23 21
13+
hot_spot 28 17
1414

1515
animation 0
1616
{
1717
repeat TRUE
1818
fps 8
1919
data 0
20-
play "horizontal movement"
20+
play "pointing"
2121
}
2222

23-
keyframes "horizontal movement"
23+
keyframes "pointing"
2424
{
2525
duration 1.0
2626
easing "ease_in_out"
2727

2828
keyframe 0%
2929
{
30-
translation 3 0
30+
translation 3 3
3131
}
3232

3333
keyframe 50%
@@ -37,7 +37,7 @@ sprite "Thanks for Playing - Pointer"
3737

3838
keyframe 100%
3939
{
40-
translation 3 0
40+
translation 3 3
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)