Permalink
Browse files

draws things with ncurses

  • Loading branch information...
1 parent 397fdb1 commit 7efa33a363ecf0938571aa05c26e7db48f2e52ff @LindseyB LindseyB committed Oct 24, 2010
Showing with 27 additions and 3 deletions.
  1. +26 −2 AAR.d
  2. +1 −1 util/soundclip.d
View
28 AAR.d
@@ -2,13 +2,18 @@ module AAR;
import tango.io.Stdout;
import tango.core.Thread;
+import ncurses;
+import tango.stdc.stringz;
import asciiSprite;
import animatedAsciiSprite;
import util.soundclip;
+WINDOW* win;
+WINDOW* message;
+
void main(){
- SoundClip sc = new SoundClip("music/ID__Baobinga_-_10_-_Raise_Riddim.mp3");
+ /*SoundClip sc = new SoundClip("music/ID__Baobinga_-_10_-_Raise_Riddim.mp3");
sc.start();
Stdout("started playing\n");
Thread.sleep(1000);
@@ -17,6 +22,25 @@ void main(){
Thread.sleep(1000);
Stdout.format("{}\n", sc.unpause());
Thread.sleep(1000);
- Stdout.format("{}\n", sc.stop());
+ Stdout.format("{}\n", sc.stop());*/
+
+ initscr();
+ noecho();
+ cbreak();
+ start_color();
+ curs_set(0);
+
+ win = newwin(34,127,0,0);
+ message = newwin(2,80,0,0);
+
+ wprintw(message, " Welcome to ASCII ASCII Revolution! ");
+ wrefresh(message);
+ // game loop
+ while(1){
+
+ }
}
+
+
+
View
@@ -3,7 +3,7 @@ module util.soundclip;
import tango.stdc.posix.unistd;
import tango.stdc.posix.signal;
import tango.stdc.stringz;
-import tango.std.posix.stdlib;
+//import tango.std.posix.stdlib;
class SoundClip{
private:

0 comments on commit 7efa33a

Please sign in to comment.