Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfwood committed Oct 24, 2010
2 parents 24601ba + c5abac2 commit 4794a88
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions levelScreen.d
Expand Up @@ -3,12 +3,14 @@ module levelScreen;
import tango.stdc.stringz;
import ncurses;
import tango.io.Stdout;
import tango.core.Thread;

import level;
import dataScore;
import arrowSection;
import dancingMan;
import asciiSprite;
import animatedAsciiSprite;
import narwhal;
import backupDancer;
import warningBar;
Expand Down Expand Up @@ -60,6 +62,7 @@ class LevelScreen {
_dancingMan.animate();
_backup1.animate();
_backup2.animate();

}

void endGame(bool win) {
Expand All @@ -72,6 +75,16 @@ class LevelScreen {
sc = new SoundClip("sounds/win.mp3");
sc.start();
winText.drawSprite();

AnimatedAsciiSprite popcorn = new AnimatedAsciiSprite("graphics/cron-popcron.txt", null, false, false, 20, 20);

for(int i=0; i<popcorn._animation.length; i++){
popcorn.drawSprite();
popcorn.nextFrame();
refresh();
Thread.sleep(0.3);
}

} else {
sc = new SoundClip("sounds/fail.mp3");
sc.start();
Expand Down

0 comments on commit 4794a88

Please sign in to comment.