Browse Source

Improved light mode colors and game over message

Arnaud Vergnet 4 years ago
parent
commit
e5bde81964
2 changed files with 11 additions and 9 deletions
  1. 3
    1
      screens/Tetris/TetrisScreen.js
  2. 8
    8
      utils/ThemeManager.js

+ 3
- 1
screens/Tetris/TetrisScreen.js View File

@@ -140,9 +140,11 @@ class TetrisScreen extends React.Component<Props, State> {
140 140
     }
141 141
 
142 142
     showGameOverConfirm() {
143
+        let message = 'SCORE: ' + this.state.gameScore + '\n';
144
+        message += 'TIME: ' + this.state.gameTime + '\n';
143 145
         Alert.alert(
144 146
             'GAME OVER',
145
-            'NOOB',
147
+            message,
146 148
             [
147 149
                 {text: 'LEAVE', onPress: () => this.props.navigation.goBack()},
148 150
                 {text: 'RESTART', onPress: () => this.startGame()},

+ 8
- 8
utils/ThemeManager.js View File

@@ -56,16 +56,16 @@ export default class ThemeManager {
56 56
                 tutorinsaColor: '#f93943',
57 57
 
58 58
                 // Tetris
59
-                tetrisBackground:'#d1d1d1',
60
-                tetrisBorder:'#afafaf',
61
-                tetrisScore:'#fff307',
62
-                tetrisI : '#42f1ff',
59
+                tetrisBackground:'#e6e6e6',
60
+                tetrisBorder:'#2f2f2f',
61
+                tetrisScore:'#e2bd33',
62
+                tetrisI : '#3cd9e6',
63 63
                 tetrisO : '#ffdd00',
64
-                tetrisT : '#ba19ff',
65
-                tetrisS : '#0bff34',
64
+                tetrisT : '#a716e5',
65
+                tetrisS : '#09c528',
66 66
                 tetrisZ : '#ff0009',
67
-                tetrisJ : '#134cff',
68
-                tetrisL : '#ff8834',
67
+                tetrisJ : '#2a67e3',
68
+                tetrisL : '#da742d',
69 69
             },
70 70
         };
71 71
     }

Loading…
Cancel
Save