Permalink
Browse files

Repository created.

  • Loading branch information...
0 parents commit 2700bd0743cb3d885550d1c29d8adae8afbebba6 @wilkie wilkie committed Aug 7, 2010
Showing with 27,342 additions and 0 deletions.
  1. +21 −0 README
  2. +99 −0 audio.d
  3. +28 −0 bin/README
  4. BIN bin/archive1.dll
  5. BIN bin/bsdtar.exe
  6. BIN bin/bzip2.dll
  7. BIN bin/curl.exe
  8. BIN bin/dsss.exe
  9. BIN bin/intl3_svn.dll
  10. BIN bin/libapr.dll
  11. BIN bin/libapriconv.dll
  12. BIN bin/libaprutil.dll
  13. BIN bin/libcharset1.dll
  14. BIN bin/libdb44.dll
  15. BIN bin/libeay32.dll
  16. BIN bin/libiconv2.dll
  17. BIN bin/libintl-2.dll
  18. BIN bin/libintl3.dll
  19. BIN bin/libssl32.dll
  20. BIN bin/patch.exe
  21. BIN bin/popt1.dll
  22. BIN bin/rebuild.exe
  23. BIN bin/rebuild_choosedc.exe
  24. BIN bin/ssleay32.dll
  25. BIN bin/svn.exe
  26. BIN bin/unix2dos.exe
  27. BIN bin/zlib1.dll
  28. +18 −0 dsss.conf
  29. +18 −0 dsss.last
  30. BIN dsss_objs/G/_audio.o
  31. BIN dsss_objs/G/_font.o
  32. BIN dsss_objs/G/_main.o
  33. BIN dsss_objs/G/_shape.o
  34. BIN dsss_objs/G/_timer.o
  35. BIN dsss_objs/G/_video.o
  36. BIN dsss_objs/G/nmd_gcstats.o
  37. +2 −0 etc/dsss/list.list
  38. +1 −0 etc/rebuild/default
  39. +66 −0 etc/rebuild/dmd-posix
  40. +67 −0 etc/rebuild/dmd-posix-tango
  41. +71 −0 etc/rebuild/dmd-win
  42. +72 −0 etc/rebuild/dmd-win-tango
  43. +76 −0 etc/rebuild/gdc-posix
  44. +77 −0 etc/rebuild/gdc-posix-tango
  45. +69 −0 etc/rebuild/gdc-win
  46. +70 −0 etc/rebuild/gdc-win-tango
  47. +1 −0 etc/rebuild/native
  48. +1 −0 etc/rebuild/phobos
  49. +1 −0 etc/rebuild/tango
  50. +64 −0 font.d
  51. BIN font.ttf
  52. BIN graphics/ENDSHAPE.png
  53. BIN graphics/LINE.png
  54. BIN graphics/LLSHAPE.png
  55. BIN graphics/LSHAPE.png
  56. BIN graphics/LZSHAPE.png
  57. BIN graphics/SQUARE.png
  58. BIN graphics/TSHAPE.png
  59. BIN graphics/ZSHAPE.png
  60. BIN graphics/endScreen.png
  61. BIN graphics/level1.png
  62. BIN graphics/level10.png
  63. BIN graphics/level11.png
  64. BIN graphics/level12.png
  65. BIN graphics/level2.png
  66. BIN graphics/level3.png
  67. BIN graphics/level4.png
  68. BIN graphics/level5.png
  69. BIN graphics/level6.png
  70. BIN graphics/level7.png
  71. BIN graphics/level8.png
  72. BIN graphics/level9.png
  73. BIN graphics/startScreen.png
  74. BIN graphics/winScreen.png
  75. +12,534 −0 include/d/bcd/windows/windows.d
  76. +73 −0 include/d/hcf/env.d
  77. +242 −0 include/d/hcf/path.d
  78. +340 −0 include/d/hcf/process.d
  79. +461 −0 include/d/sss/build.d
  80. +173 −0 include/d/sss/clean.d
  81. +1,351 −0 include/d/sss/conf.d
  82. +43 −0 include/d/sss/genconfig.d
  83. +260 −0 include/d/sss/install.d
  84. +683 −0 include/d/sss/net.d
  85. +41 −0 include/d/sss/platform.d
  86. 0 include/d/sss/stub.d
  87. +69 −0 include/d/sss/system.d
  88. +96 −0 include/d/sss/uninstall.d
  89. +485 −0 include/d/util/booltype.d
  90. +490 −0 include/d/util/fdt.d
  91. +80 −0 include/d/util/file2.d
  92. +391 −0 include/d/util/fileex.d
  93. +309 −0 include/d/util/linetoken.d
  94. +528 −0 include/d/util/pathex.d
  95. +59 −0 include/d/util/series.d
  96. +1,458 −0 include/d/util/str.d
  97. BIN level1.png
  98. BIN main
  99. +186 −0 main.d
  100. +475 −0 shape.d
  101. +9 −0 share/doc/dsss/README
  102. +71 −0 share/doc/dsss/README.overview
  103. +474 −0 share/doc/dsss/README.software_engineers
  104. +151 −0 share/doc/dsss/README.technical
  105. +75 −0 share/doc/dsss/README.use
  106. BIN share/dsss/candydoc.tar.gz
  107. +46 −0 share/dsss/dsss_lib_test.d
  108. +89 −0 share/dsss/manifest/dsss.manifest
  109. 0 share/dsss/sources/EMPTY
  110. +1 −0 share/dsss/sources/mirror
  111. +1 −0 share/dsss/sources/mirrors.list
  112. +4,292 −0 share/dsss/sources/pkgs.list
  113. +98 −0 share/dsss/sources/source.list
  114. +48 −0 share/man/man1/dsss.1
  115. +107 −0 share/man/man1/rebuild.1
  116. +4 −0 share/rebuild/testtango.d
  117. BIN sounds/boom.wav
  118. BIN sounds/boop.wav
  119. BIN sounds/ghosts.ogg
  120. BIN sounds/itsover.wav
  121. BIN sounds/line.wav
  122. BIN sounds/rotate.wav
  123. BIN sounds/tetris.wav
  124. +117 −0 timer.d
  125. +4 −0 tmp/DSSS_derelict/trunk/DerelictGL/files.tmp
  126. +106 −0 video.d
@@ -0,0 +1,21 @@
+Tetris - OSGCC2
+Steve Klabnik, Chuck Davis, Marylou Kunkle
+
+Requirements for building:
+
+DSSS (http://www.dsource.org/projects/dsss)
+DMD (http://www.digitalmars.com/d/download.html)
+SDL, SDL_Mixer, SDL_Image, SDL_ttf
+
+To build: (all in the root directory)
+
+- First install derelict using dsss
+dsss net install derelict
+
+- Build using dsss
+dsss build
+
+To Run:
+
+./main (linux, osx)
+main.exe (windows)
@@ -0,0 +1,99 @@
+module audio;
+
+import derelict.sdl.mixer;
+import derelict.sdl.sdl;
+import std.stdio;
+import std.string;
+
+class Audio{
+Mix_Music *music;
+Mix_Chunk *effect1;
+Mix_Chunk *effect2;
+Mix_Chunk *effect3;
+Mix_Chunk *effect4;
+Mix_Chunk *effect5;
+Mix_Chunk *effect6;
+
+this(){
+ music = null;
+}
+
+public void lowerMusicVolume(){Mix_VolumeMusic(MIX_MAX_VOLUME/8);}
+
+public void init(){
+ DerelictSDLMixer.load();
+ DerelictSDL.load();
+ Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 4096);
+}
+
+public void loadMusic(char* filename){
+ music = Mix_LoadMUS(filename);
+}
+
+public void playMusic(){
+ if(Mix_PlayingMusic() == 0){
+ Mix_PlayMusic(music, -1);
+ }
+}
+
+public void pauseMusic(){
+ if(Mix_PlayingMusic() == 1){
+ Mix_PauseMusic();
+ }
+}
+
+public void unpauseMusic(){
+ if(Mix_PausedMusic() == 1){
+ Mix_ResumeMusic();
+ }
+}
+
+public void stopMusic(){
+ Mix_HaltMusic();
+}
+
+public void playBoom(){
+ Mix_PlayChannel(-1, effect1, 0);
+}
+
+public void playBoop(){
+ Mix_PlayChannel(-1, effect2, 0);
+}
+
+public void playLine(){
+ Mix_PlayChannel(-1, effect3, 0);
+}
+
+public void playRotate(){
+ Mix_PlayChannel(-1, effect4, 0);
+}
+
+public void playTetris(){
+ Mix_PlayChannel(-1, effect5, 0);
+}
+
+public void playItsOver(){
+ Mix_PlayChannel(-1, effect6, 0);
+}
+
+public void loadEffects(){
+ effect1 = Mix_LoadWAV("sounds/boom.wav");
+ effect2 = Mix_LoadWAV("sounds/boop.wav");
+ effect3 = Mix_LoadWAV("sounds/line.wav");
+ effect4 = Mix_LoadWAV("sounds/rotate.wav");
+ effect5 = Mix_LoadWAV("sounds/tetris.wav");
+ effect6 = Mix_LoadWAV("sounds/itsover.wav");
+}
+
+public void cleanUp(){
+ Mix_FreeChunk(effect1);
+ Mix_FreeChunk(effect2);
+ Mix_FreeChunk(effect3);
+ Mix_FreeChunk(effect4);
+ Mix_FreeChunk(effect5);
+ Mix_FreeChunk(effect6);
+ Mix_FreeMusic(music);
+ Mix_CloseAudio();
+}
+
+}
@@ -0,0 +1,28 @@
+These are binaries required for Windows, not necessary on other systems.
+
+Most of these are from http://gnuwin32.sourceforge.net/, namely these packages:
+
+bsdtar-1.2.38-bin.zip
+bzip2-1.0.3-1-bin.zip
+cygutils-1.2.9-bin.zip [just unix2dos.exe]
+libarchive-1.2.38-bin.zip
+libiconv-1.9.2-1-bin.zip
+libintl-0.11.5-2-bin.zip
+libintl-0.14.4-bin.zip
+openssl-0.9.7c-bin.zip
+patch-2.5.9-6-bin.zip
+popt-1.8-1-bin.zip
+zlib-1.2.3-bin.zip
+
+
+The sources are available from the same site.
+
+
+Also included is curl.exe and its dependencies, from:
+
+http://curl.haxx.se/download/curl-7.16.0-win32-ssl.zip
+
+
+Also included is svn.exe and dependencies, from:
+
+http://subversion.tigris.org/downloads/svn-win32-1.4.0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,18 @@
+[main.d]
+target=main
+buildflags=-full -lldl
+
+[video.d]
+buildflags=-full -lldl -c
+
+[audio.d]
+buildflags=-full -lldl -c
+
+[shape.d]
+buildflags=-full -lldl -c
+
+[font.d]
+buildflags=-full -lldl -c
+
+[timer.d]
+buildflags=-full -lldl -c
@@ -0,0 +1,18 @@
+[main.d]
+target=main
+buildflags=-full -lldl
+
+[video.d]
+buildflags=-full -lldl -c
+
+[audio.d]
+buildflags=-full -lldl -c
+
+[shape.d]
+buildflags=-full -lldl -c
+
+[font.d]
+buildflags=-full -lldl -c
+
+[timer.d]
+buildflags=-full -lldl -c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
+http://svn.dsource.org/projects/dsss/sources
+http://dsss.brainsware.org/sources
@@ -0,0 +1 @@
+profile=dmd-win
@@ -0,0 +1,66 @@
+profile=phobos
+
+compiler=dmd
+inifile=dmd.conf
+
+exeext=
+objext=o
+
+
+version=DigitalMars
+noversion=GNU
+version=linux
+noversion=Unix
+version=Posix
+noversion=Windows
+noversion=Win32
+noversion=Win64
+version=X86
+noversion=PPC
+noversion=X86_64
+version=D_InlineAsm
+version=D_InlineAsm_X86
+noversion=D_InlineAsm_PPC
+noversion=D_InlineAsm_X86_64
+version=LittleEndian
+noversion=BigEndian
+
+
+[compile]
+cmd=dmd -version=Posix -c $i
+
+flag=$i
+incdir=-I$i
+libdir=-L-L$i
+optimize=-O
+version=-version=$i
+
+
+[link]
+oneatatime=yes
+cmd=dmd -L--start-group -L-lphobos $i -of$o
+
+libdir=-L-L$i
+lib=-L-l$i
+flag=-L$i
+
+
+[liblink]
+safe=yes
+oneatatime=yes
+cmd=ar rc $o $i
+
+libdir=
+lib=
+flag=
+
+
+[postliblink]
+cmd=ranlib $i
+
+
+[shliblink]
+shlibs=no
+
+[dyliblink]
+dylibs=no
@@ -0,0 +1,67 @@
+profile=tango
+
+compiler=dmd
+inifile=dmd.conf
+
+exeext=
+objext=o
+
+
+version=DigitalMars
+noversion=GNU
+version=linux
+noversion=Unix
+version=Posix
+noversion=Windows
+noversion=Win32
+noversion=Win64
+version=X86
+noversion=PPC
+noversion=X86_64
+version=D_InlineAsm
+version=D_InlineAsm_X86
+noversion=D_InlineAsm_PPC
+noversion=D_InlineAsm_X86_64
+version=LittleEndian
+noversion=BigEndian
+version=Tango
+
+
+[compile]
+cmd=dmd -version=Posix -version=Tango -c $i
+
+flag=$i
+incdir=-I$i
+libdir=-L-L$i
+optimize=-O
+version=-version=$i
+
+
+[link]
+oneatatime=yes
+cmd=dmd -L--start-group -L-ltango-base-dmd $i -of$o
+
+libdir=-L-L$i
+lib=-L-l$i
+flag=-L$i
+
+
+[liblink]
+safe=yes
+oneatatime=yes
+cmd=ar rc $o $i
+
+libdir=
+lib=
+flag=
+
+
+[postliblink]
+cmd=ranlib $i
+
+
+[shliblink]
+shlibs=no
+
+[dyliblink]
+dylibs=no
Oops, something went wrong.

0 comments on commit 2700bd0

Please sign in to comment.