Skip to content

Commit

Permalink
keyboard is go, and makefile for my netbook
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfwood committed Oct 24, 2010
1 parent d886650 commit e3e0229
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions AAR.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import animatedAsciiSprite;
import util.soundclip;
import level;
import selectScreen;
import input;

WINDOW* win;

Expand Down Expand Up @@ -37,27 +38,24 @@ void main(){
logo.drawSprite();
refresh();

keypad(win, true);

Thread.sleep(5);


AnimatedAsciiSprite narwhal = new AnimatedAsciiSprite("graphics/man-moonwalk.txt", win, true, 16, 9);
AsciiSprite light = new AsciiSprite("graphics/spotlight.txt", win, false, 0, 5);

SelectScreen screen = new SelectScreen("levels.txt");

while(!screen._levelSelected){
clear();
screen.drawScreen();
Thread.sleep(1);
refresh();
}
if(!levelInput(screen, win)){goto ragequite;}

currentLevel = screen._levels[screen._levelSelected];

clear();

// game loop
for(int i=0; i<50; i++){
clear();
//clear();
refresh();
light.drawSprite();
narwhal.drawSprite();
Expand All @@ -66,6 +64,7 @@ void main(){
Thread.sleep(1);
}

ragequite:
endwin();
}

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ james:
drebuild AAR.d -oqobj -I/usr/include/d/ldc -Iycurses/modules -L-lncursesw -dc=ldc-posix-tango -version=Tango -I~/repos/tango

clean:
rm obj/*.o
rm AAR obj/*.o

0 comments on commit e3e0229

Please sign in to comment.