Improved light mode colors and game over message

This commit is contained in:
Arnaud Vergnet 2020-03-16 19:48:03 +01:00
parent 7980b8b422
commit e5bde81964
2 changed files with 11 additions and 9 deletions

View file

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

View file

@ -56,16 +56,16 @@ export default class ThemeManager {
tutorinsaColor: '#f93943', tutorinsaColor: '#f93943',
// Tetris // Tetris
tetrisBackground:'#d1d1d1', tetrisBackground:'#e6e6e6',
tetrisBorder:'#afafaf', tetrisBorder:'#2f2f2f',
tetrisScore:'#fff307', tetrisScore:'#e2bd33',
tetrisI : '#42f1ff', tetrisI : '#3cd9e6',
tetrisO : '#ffdd00', tetrisO : '#ffdd00',
tetrisT : '#ba19ff', tetrisT : '#a716e5',
tetrisS : '#0bff34', tetrisS : '#09c528',
tetrisZ : '#ff0009', tetrisZ : '#ff0009',
tetrisJ : '#134cff', tetrisJ : '#2a67e3',
tetrisL : '#ff8834', tetrisL : '#da742d',
}, },
}; };
} }