Compare commits
2 commits
a3ce3a76c3
...
0e741a02e2
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e741a02e2 | |||
| 92603cbaf7 |
3 changed files with 19 additions and 14 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.1 KiB |
|
|
@ -98,6 +98,9 @@ function MainStackComponent(props: {
|
|||
MainStack,
|
||||
GameStartScreen,
|
||||
i18n.t('screens.game.title'),
|
||||
true,
|
||||
null,
|
||||
'transparent',
|
||||
)}
|
||||
<MainStack.Screen
|
||||
name="game-main"
|
||||
|
|
|
|||
|
|
@ -384,6 +384,7 @@ class GameStartScreen extends React.Component<PropsType> {
|
|||
recoverGameScore() {
|
||||
const {route} = this.props;
|
||||
this.gameStats = route.params;
|
||||
if (this.gameStats.score != null) {
|
||||
this.isHighScore =
|
||||
this.scores.length === 0 || this.gameStats.score > this.scores[0];
|
||||
for (let i = 0; i < 3; i += 1) {
|
||||
|
|
@ -401,6 +402,7 @@ class GameStartScreen extends React.Component<PropsType> {
|
|||
this.scores,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
render(): React.Node {
|
||||
const {props} = this;
|
||||
|
|
|
|||
Loading…
Reference in a new issue