Permalink
Browse files

Merge branch 'master' of http://github.com/LindseyB/AsciiAsciiRevolution

  • Loading branch information...
wolfwood committed Oct 24, 2010
2 parents 24601ba + c5abac2 commit 4794a8875428e10b6017495783b7aee34af20b8f
Showing with 13 additions and 0 deletions.
  1. +13 −0 levelScreen.d
View
@@ -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;
@@ -60,6 +62,7 @@ class LevelScreen {
_dancingMan.animate();
_backup1.animate();
_backup2.animate();
}
void endGame(bool win) {
@@ -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();

0 comments on commit 4794a88

Please sign in to comment.