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

Merge branch '14-fix-compute-score-board-on-game-start' into 'master'

Resolve "Fix compute score board on game start"

Closes #14

See merge request !14
parents 338a90bb ebb4c5d0
No related branches found
No related tags found
1 merge request!14Resolve "Fix compute score board on game start"
Pipeline #4915 passed
org.gradle.jvmargs=-Xmx1536M org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
app.versionName=0.0.11 app.versionName=0.0.12
app.versionCode=11 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> { ...@@ -122,6 +122,7 @@ class GameCubit extends HydratedCubit<GameState> {
void postAnimate() { void postAnimate() {
this.moveCellsDown(); this.moveCellsDown();
this.updateAvailableBlocksCount(); this.updateAvailableBlocksCount();
refresh();
if (!this.state.currentGame.hasAtLeastOneAvailableBlock()) { if (!this.state.currentGame.hasAtLeastOneAvailableBlock()) {
print('no more block found. finish game.'); print('no more block found. finish game.');
...@@ -137,6 +138,7 @@ class GameCubit extends HydratedCubit<GameState> { ...@@ -137,6 +138,7 @@ class GameCubit extends HydratedCubit<GameState> {
newGame.dump(); newGame.dump();
updateState(newGame); updateState(newGame);
this.postAnimate();
} }
@override @override
......
...@@ -3,7 +3,7 @@ description: Jeweled Game ...@@ -3,7 +3,7 @@ description: Jeweled Game
publish_to: 'none' publish_to: 'none'
version: 0.0.11+11 version: 0.0.12+12
environment: environment:
sdk: '^3.0.0' 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