mimoguz / tripeaks-gdx Goto Github PK
View Code? Open in Web Editor NEWA simple tri peaks solitaire game using libGDX.
License: GNU General Public License v3.0
A simple tri peaks solitaire game using libGDX.
License: GNU General Public License v3.0
*I need help for translations. If you like to, please open an issue in the issue tracker.
I've seen OSS projects use these sites for translation purpose
I think Weblate is better as it's opensource.
Features: https://weblate.org/en/features/
https://weblate.org/en/hosting/
Exception in thread "main" java.lang.NullPointerException: sprites[index] must not be null
at ogz.tripeaks.graphics.IndexedSprite.get(sprites.kt:45)
at ogz.tripeaks.game.CardDrawingStrategy$Strategies$BackHidden.drawStacked(CardDrawingStrategy.kt:94)
at ogz.tripeaks.game.StackView.draw(StackView.kt:41)
at ogz.tripeaks.screens.RenderHelper.render(RenderHelper.kt:60)
at ogz.tripeaks.screens.GameScreen.render(GameScreen.kt:110)
at ktx.app.KtxGame.render(game.kt:55)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:387)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:192)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.(Lwjgl3Application.java:166)
at ogz.tripeaks.lwjgl3.Lwjgl3Launcher.main(Lwjgl3Launcher.kt:15)
at ogz.tripeaks.lwjgl3.Lwjgl3Launcher.main(Lwjgl3Launcher.kt)
Hi, I like doing translations for free software projects, so here you go:
start=o open
fromStack=poki lipu li pana e {0,choice,0#lipu ala|1#lipu wan|1<lipu {0,number,integer}} tawa sina.
usedUndo=sina {0,choice,0#kepeken e nasin pakala la tenpo ala|1#kepeken e nasin pakala la tenpo wan|2#kepeken e nasin pakala la tenpo tu|2<kepeken e nasin pakala la tenpo {0,number,integer}}.
longestChain=tenpo musi ni la pona sina li {0,choice,0#lipu ala|1#lipu wan|1<lipu {0,number,integer}}.
newGame=o open e musi sin
newGameShort=musi sin
exit=o pini
return=o musi
darkTheme=lukin pimeja
showAll=o lukin e lipu ale
won=sina pona!
It would be nice if the game tracked stuff like wins/losses, win percentage, average undos, chain length and cards taken from deck, as well as longest chain and games per day.
Perhaps the statistics screen could be accessed from a fourth button on the main menu or from the options screen.
I want to help to transtalate this project into spanish, so if you could tell me what i must do, then i'll do!
Great game, here's a French translation:
start=Commencer
fromStack=Vous avez pris {0,choice,0#aucune carte|1#une carte|1<{0,number,integer} cartes} dans la pioche.
usedUndo=Vous {0,choice,0#n'êtes jamais revenu en arrière|1#êtes revenu en arrière une fois|2#êtes revenu en arrière deux fois|2<êtes revenu en arrière {0,number,integer} fois}.
longestChain=Votre chaîne la plus longue comptait {0,choice,0#0 carte|1#1 carte|1<{0,number,integer} cartes}.
newGame=Nouvelle partie
exit=Quitter
return=Revenir au jeu
darkTheme=Utiliser le thème sombre
showAll=Dévoiler toutes les cartes
won=Vous avez gagné !
stalled=Plus de mouvements possibles !
undoLast=Annuler le dernier mouvement
save=Sauvegarder
cancel=Annuler
emptyDiscard=Commencer avec une défausse vide
basicLayout=Trois sommets
inverted2ndLayout=Deux sommets et une vallée
diamondsLayout=Diamants
layout=Agencement pour les nouvelles parties :
options=Options
statistics=Statistiques
statAll=Total
statGames=Parties
statWins=Victoire
statLongestChain=Chaîne la plus longue
start=Начать
fromStack=Вы взяли {0,choice,0#0 карт|1#одну карту|1<{0,number,integer} карт(ы)} из колоды.
usedUndo=Вы {0,choice,0#не использовали "отменить" вообще|1#использовали "отменить" единожды|2#использовали "отменить" дважды|2<использовали "отменить" {0,number,integer} раз(а)}.
longestChain=Ваша самая длинная цепочка - {0,choice,0#0 карт|1#одна карта|1<{0,number,integer} карт(ы)}.
newGame=Начать новую игру
newGameShort=Новая игра
exit=Выйти
return=Продолжить
darkTheme=Использовать тёмную тему
showAll=Показать все карты
won=Вы победили!
start=התחלה
fromStack=
usedUndo=
longestChain=
newGame=התחל משחק חדש
newGameShort=משחק חדש
exit=צא מהמשחק
return=חזור למשחק
darkTheme=
showAll=הצג את כל הקלפים
won=ניצחת!
This may introduce bugs, as this is right-to-left text. Such as with the last one (won
), the exclamation mark appears on the right of the word, when it is supposed to be on the left.
I left the complex calculated ones empty, because the aforementioned RtL is buggy with LtR text.
Basically for fromStack
:
X
with numberFor usedUndo
:
X
with numberFor longestChain
:
X
with numberIdk about dark theme lol ¯\_(ツ)_/¯. Google Translate says it is השתמש נושא כהה, but it translates theme to topic. Google Translate is notoriously bad with Hebrew. For example כפרה עליך does not have an English translation, but it also definitely does not mean like a cow on you
Hi, I'm a native speaker of brazilian portuguese and would like to help with the translation of the game.
Here is the resource, translated:
start=Iniciar
fromStack=Você {0,choice,0#não pegou nenhuma carta|1#pegou uma carta|1<pegou {0,number,integer} cartas} do baralho.
usedUndo=Você {0,choice,0#não desfez nenhum movimento|1#usou Desfazer uma vez|2#usou Desfazer duas vezes|2<usou Desfazer {0,number,integer} vezes}.
longestChain=Sua maior sequência foi de {0,choice,0#zero cartas|1#uma carta|1<{0,number,integer} cartas}.
newGame=Iniciar nova partida
newGameShort=Nova partida
exit=Sair do jogo
return=Voltar à partida
darkTheme=Usar tema escuro
showAll=Mostrar todas as cartas
won=Você venceu!
I want to localize the game to Indonesian Language, how can I help?
Updated to version 0.46 and the game fails to launch. 0.45 works fine.
Android v11
Pixel 3
Hi, I made a bulgarian translation. I checked the issue with the russian translation for the strings, so do let me know if I've missed something. You can use the same alphabet you drew for russian, since bulgarian uses the same cyrilic characters.
start=Начало
fromStack=Ти взе {0,choice,0#0 карти|1#една карта|1<{0,number,integer} карти} от тестето.
usedUndo=Ти {0,choice,0#не си връщал ходове|1#си върнал един ход|2#си върнал два хода|2<си върнал {0,number,integer} хода}.
longestChain=Най-дългата ти комбинация е от {0,choice,0#0 карти|1#една карта|1<{0,number,integer} карти}.
newGame=Нова игра
newGameShort=Начало
exit=Изход
return=Продължаване
darkTheme=Използвай тъмна тема
showAll=Показвай всички карти
won=Ти победи!
A tri peaks solitaire game.=Самостоятелна игра с карти "Tri Peaks" (Три върха).
An open source tri peaks solitaire game.=Самостоятелна игра с карти "Tri Peaks" с отворен код.
Currently only has randomly generated games.=За сега има само случайно генерирани игри.
Pre-solved games option is on the roadmap.=Опция за предварително решени игри е планирана.
Deal=Раздай
Undo=Върни
Menu=Меню
No more moves!=Няма повече ходове!
Undo last move=Върни последния ход
Save=Запази
Cancel=Отказ
Start with an empty discard=Започни с празно поле за изхвърляне
New game layout:=Оформление за нови игри:
Options=Опции
Layout options=Опции за оформлението
Three peaks=Три върха
Two peaks and a funnel=Два върха и фуния
Diamonds=Диаманти
Game description=Описание на играта
An open-source tri peaks solitaire game with multiple layout options.=Самостоятелна игра с карти "Tri Peaks" с няколко оформления и отворен код.
(The following are the same as above, except the two peaks and a valley, but included the rest for the sake of completeness)
Exit (Before: "Exit game")=Изход
Start with an empty discard pile (Before: "Start with an empty discard")=Започни с празно поле за изхвърляне
Two peaks and a valley (Before: "Two peaks and a funnel")=Два върха и долина
Layout for new games (Before: "New game layout")=Оформление за нови игри
Your longest chain had ... (Before: "Your longest chain was ...")=Най-дългата ти комбинация е от...
P.S. I love the aesthetic and execution of your game, other open source solitaire games on F-droid are really outdated and janky. It would be awesome if you were to make other popular solitaire games like Spider, FreeCell and Klondike. <3
Hello,
the game is nice but there are some issues, screenshots below.
Hearts 10 flipped top left:
Top left card not flipped:
Two entry row cards not flipped:
One entry row card not flipped:
Black 5 flipped in the middle, but should not be:
Red 2 flipped in the middle:
The same red 2 even disappeared:
It would be really nice to be able to customize the card backs (and maybe even the color of the backs? Since they look kinda weird in light mode). So I made some 29 backs for you to use if you want. I made them for dark mode, and the light mode ones are just palette swaps, except the "Praise the Sun" one, which I color-inverted. Feel free to use them, I had a lot of fun making them <3
From left to right, top to bottom:
Default; Swords; Mandala; Honeycomb; Specks; Abstract; Rhombus; Big Mandala; Checkerboard; Dither
Big Swords; Crosses; Smoke; Hourglass; Royal; Hearts; Spades; Clubs; Diamonds; Orb
DNA; Moons; Alchemy; Impossible Triangle; Impossible Square; Simple; Praise the Sun; Industrial; Candles; Eyes
P.S. The PNG is in indexed mode with transparency, although the colors might be a little bit off from yours, due to the color management of my system. If you give me the exact hex codes of the colors I could check that for you.
start=Start
fromStack=你从牌堆里取走了{0,choice,0#零张牌|1#一张牌|1< {0,number,integer} 张牌}。
usedUndo=你{0,choice,0#从未撤销过|1#撤销了一次|2#撤销了两次|2<撤销了 {0,number,integer} 次}。
longestChain=你最多连击数是{0,choice,0#零张牌|1#一张牌|1< {0,number,integer} 张牌}。
newGame=开始新游戏
newGameShort=新游戏
exit=退出游戏
return=返回游戏
darkTheme=使用暗黑模式
showAll=显示所有卡牌
won=你赢了!
Either I'm dumb or something is going on with the button for the statistics screen.
After updating, the only difference is a small red icon at the top of the "options", which I assume is the statistics screen, but no matter how much tapping, swiping, holding and whatnot I throw at it, it doesn't seem to do anything. I even played some games, since I assumed it didn't open because there was no data to show.
Is this a bug? I'm running Android 10, Poco X3 NFC, Resurrection Remix ROM (degoogled), if any of this matters.
Hello,
I have few minutes to kill so here is the french translation.
Based on another topic:
start= Commencer
fromStack=Vous prenez {0,choice,0#aucune carte|1#une carte|1<{0,number,integer} cartes} du paquet.
usedUndo=Vous {0,choice,0#n'avez rien annulé|1#avez annulé une fois|2#avez annulé deux fois|2<avez annulé {0,number,integer} fois}.
longestChain=Votre plus longue série est de {0,choice,0#zero cartes|1#une carte|1<{0,number,integer} cartes}.
newGame=Commencer une nouvelle partie
newGameShort=Nouvelle partie
exit=Quitter le jeu
return=Reprendre le jeu / Retourner au jeu
(Both works. One is "taking back_", the other is "return to_")
darkTheme=Utiliser le thème sombre
showAll=Montrer toute les cartes
won=Vous avez gagné !
Let me know if you need some details about the translation..
I don't know when or why, but several times now (since statistics were added) when I open the app, play a game, then open the statistics, they only show the game I just played, all previous statistics are gone.
Edit: I just did some testing, and neither force-killing the app, nor restarting the phone seems to wipe the statistics.
An option to auto-select the dark theme based on the user's system settings would be a nice feature.
Wanted to translate this project to Italian so here it is, I followed all of the steps in this thread.
start=Inizio
fromStack=Hai preso {0,choice,0#0 carte|1#una carta|1<{0,number,integer} carte} dal mazzo.
usedUndo=Tu {0,choice,0#non hai mai annullato una mossa|1#hai annullato 1 mossa|2#hai annullato 2 mosse|2<hai annullato {0,number,integer} mosse}.
longestChain=La tua catena più lunga è stata di {0,choice,0#zero carte consecutive|1#una carta|1<{0,number,integer} carte}.
newGame=Inizia una nuova partita
newGameShort=Nuova partita
exit=Esci dal gioco
return=Torna al gioco
darkTheme=Use il tema scuro
showAll=Mostra tutte le carte
won=Hai vinto!
start=Start
fromStack=Du hast {0,choice,0#keine Karten|1#eine Karte|1<{0,number,integer} Karten} vom Stapel genommen.
usedUndo=Du hast undo{0,choice,0#gar nicht benutzt|1#einmal benutzt|2#zweimal benutzt|2<{0,number,integer} mal benutzt}.
longestChain=Deine längste Folge hatte{0,choice,0#keine Karten|1#eine Karte|1<{0,number,integer} Karten}.
newGame=Neues Spiel beginnen
exit=Spiel verlassen
return=Zum Spiel zurückkehren
darkTheme=Dunklen Modus verwenden
showAll=Alle Karten zeigen
won=Gewonnen!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.