Skip to content

Commit

Permalink
score UI improvments
Browse files Browse the repository at this point in the history
fixed bug not updating scores correctly#14
imporved score update animation
  • Loading branch information
tube42 committed Jan 13, 2019
1 parent e888c18 commit c10412a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions core/src/se/tube42/p9/view/GameScene.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void onShow() {
lui.animate(true);
animate(true);

// if we are doing size animatin, this is not the time to do them:
// if we are doing size animation, this is not the time to do them:
for (BrickItem bi : World.board.all)
bi.removeTween(BaseItem.ITEM_V, true);

Expand Down Expand Up @@ -222,8 +222,6 @@ private void anim_added() {
}

private void register_change() {
update();

final Level level = World.level_curr;
final int old_stars = GameService.calcLevelStars(level);

Expand All @@ -238,6 +236,8 @@ private void register_change() {
ServiceProvider.saveAll();
}
}

update();
}

// ADD
Expand Down Expand Up @@ -296,10 +296,8 @@ private int board_check() {
final String str = new String(World.board.letters, 0, World.board.cnt);
boolean added = World.level_curr.add(str);
if (added) {
text0.set(BaseItem.ITEM_A, 1f, 0).configure(0.3f, null)
.pause(0.5f)
.tail(1f).configure(0.5f, null);

text0.pause(BaseItem.ITEM_A, 0, 0.3f).tail(1).configure(0.4f, TweenEquation.QUAD_IN);
//text0.set(BaseItem.ITEM_A, 0f, 1f).configure(0.4f, TweenEquation.LINEAR);
SoundService.playNew(World.board.cnt, WORD_MAX_SIZE);

return WORD_NEW;
Expand Down

0 comments on commit c10412a

Please sign in to comment.