DC=gdmd
DFLAGS=-g -O -d -release -Iimport -Isrc
DOUT=-of
DSRC=$(shell find src/ -name "*.d")
SOURCES=$(DSRC) import/SDL_video.d import/SDL_mouse.d import/hell2.d import/SDL_mixer.d
OBJS=$(SOURCES:.d=.o)
EXE=tatan
all: $(EXE)
$(EXE): $(OBJS)
gcc -o $@ $(OBJS) -lbulletml_d -lgphobos -lpthread -lm -lSDL -lGL -lGLU -lSDL_mixer
$(OBJS): %.o: %.d
$(DC) -c $(DOUT)$@ $(DFLAGS) $<
private Mainloop mainloop;
private Key key;
private Mouse mouse;
version (Win32_release) {
private:
import std.c.windows.windows;
}
gc_term();
return result;
} else {
// Boot as the general executable.
public int main(char[][] args) {
return boot(args);
public int boot(char[][] args) {
double d;
key = new Key();
mouse = new Mouse();
mainloop = new Mainloop(key ,mouse);
mainloop.loop();
return 0;
int user_start(){
default:break;
foreach(int b;bars){
bar[b] = true;
// bar[b] = true;
drawCrossBar(x ,y+20*scale ,scale ,bar[0]);
drawVerticalBar(x-10*scale ,y+10*scale ,scale ,bar[1]);
glPopMatrix();