v0.4.1: added a visual effect for adding items to the journal

This commit is contained in:
Evan Debenham
2016-07-20 01:19:18 -04:00
committed by Evan Debenham
parent c0eecb1338
commit 80a4ef2b9b
4 changed files with 41 additions and 14 deletions
@@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.keys;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
import com.watabou.noosa.audio.Sample;
import com.watabou.utils.Bundle;
@@ -44,7 +45,7 @@ public abstract class Key extends Item {
@Override
public boolean doPickUp(Hero hero) {
//TODO add a pickup animation to the journal
GameScene.pickUpJournal(this);
Sample.INSTANCE.play( Assets.SND_ITEM );
hero.spendAndNext( TIME_TO_PICK_UP );
return true;