Skip to content
Snippets Groups Projects
Commit ebb4c5d0 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Fix compute score board on game start

parent 338a90bb
No related branches found
No related tags found
1 merge request!14Resolve "Fix compute score board on game start"
Pipeline #4911 passed
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
app.versionName=0.0.11
app.versionCode=11
app.versionName=0.0.12
app.versionCode=12
Fix compute score board on new game.
Correction du calcul du bandeau de score au démarrage d'une partie.
......@@ -122,6 +122,7 @@ class GameCubit extends HydratedCubit<GameState> {
void postAnimate() {
this.moveCellsDown();
this.updateAvailableBlocksCount();
refresh();
if (!this.state.currentGame.hasAtLeastOneAvailableBlock()) {
print('no more block found. finish game.');
......@@ -137,6 +138,7 @@ class GameCubit extends HydratedCubit<GameState> {
newGame.dump();
updateState(newGame);
this.postAnimate();
}
@override
......
......@@ -3,7 +3,7 @@ description: Jeweled Game
publish_to: 'none'
version: 0.0.11+11
version: 0.0.12+12
environment:
sdk: '^3.0.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment