Skip to content
Permalink
Browse files

Initial checkin of DCSquares

git-svn-id: svn+ssh://c99.org/home/c99org/svn/DCSquares/trunk@1 8944af1b-4df6-0310-90e0-d6e02aab4a67
  • Loading branch information...
c99koder committed May 4, 2005
0 parents commit 5bc681bd6460db511eb6f8e350b06a9b80a26a79
Showing with 11,797 additions and 0 deletions.
  1. +32 −0 ChangeLog
  2. +53 −0 common/game.cc
  3. +319 −0 common/http.cc
  4. +393 −0 common/hud.cc
  5. +171 −0 common/net.cc
  6. +621 −0 common/options.cc
  7. +172 −0 common/rand.cc
  8. +361 −0 common/score.cc
  9. +457 −0 common/squares.cc
  10. +168 −0 common/text.cc
  11. +326 −0 common/texture.cc
  12. +489 −0 common/theme.cc
  13. +14 −0 data/DCSquares.plist
  14. BIN data/Helvetica-Bold.txf
  15. BIN data/themes/909squares/bg_loop.ogg
  16. BIN data/themes/909squares/bgdim_loop.ogg
  17. BIN data/themes/909squares/collect.wav
  18. BIN data/themes/909squares/gameover.wav
  19. BIN data/themes/909squares/menu.bmp
  20. BIN data/themes/909squares/powerdown.wav
  21. BIN data/themes/909squares/powerup.wav
  22. BIN data/themes/909squares/squares.bmp
  23. BIN data/themes/909squares/status.bmp
  24. +11 −0 data/themes/909squares/theme.ini
  25. BIN data/themes/classic/bg.bmp
  26. BIN data/themes/classic/bg.png
  27. BIN data/themes/classic/bg_loop.ogg
  28. BIN data/themes/classic/bgdim_loop.ogg
  29. BIN data/themes/classic/collect.wav
  30. BIN data/themes/classic/gameover.wav
  31. BIN data/themes/classic/menu.bmp
  32. BIN data/themes/classic/powerdown.wav
  33. BIN data/themes/classic/powerup.wav
  34. BIN data/themes/classic/status.bmp
  35. +11 −0 data/themes/classic/theme.ini
  36. BIN data/themes/default/bg.png
  37. BIN data/themes/default/bg_loop.ogg
  38. BIN data/themes/default/bgdim_loop.ogg
  39. BIN data/themes/default/collect.wav
  40. BIN data/themes/default/gameover.wav
  41. BIN data/themes/default/green_invincible.png
  42. BIN data/themes/default/green_plus1000.png
  43. BIN data/themes/default/green_slowdown.png
  44. BIN data/themes/default/green_smallsquare.png
  45. BIN data/themes/default/green_square.png
  46. BIN data/themes/default/loading.png
  47. BIN data/themes/default/orb_shadow.png
  48. BIN data/themes/default/powerdown.wav
  49. BIN data/themes/default/powerup.wav
  50. BIN data/themes/default/red_bigsquare.png
  51. BIN data/themes/default/red_evil.png
  52. BIN data/themes/default/red_minus1000.png
  53. BIN data/themes/default/red_speedup.png
  54. BIN data/themes/default/red_square.png
  55. +11 −0 data/themes/default/theme.ini
  56. BIN data/themes/default/title.png
  57. BIN data/themes/goat/bg.png
  58. BIN data/themes/goat/bg_loop.ogg
  59. BIN data/themes/goat/bgdim_loop.ogg
  60. BIN data/themes/goat/collect.wav
  61. BIN data/themes/goat/gameover.wav
  62. BIN data/themes/goat/green_invincible.png
  63. BIN data/themes/goat/green_plus1000.png
  64. BIN data/themes/goat/green_slowdown.png
  65. BIN data/themes/goat/green_smallsquare.png
  66. BIN data/themes/goat/green_square.png
  67. BIN data/themes/goat/loading.png
  68. BIN data/themes/goat/orb_shadow.png
  69. BIN data/themes/goat/powerdown.wav
  70. BIN data/themes/goat/powerup.wav
  71. BIN data/themes/goat/red_bigsquare.png
  72. BIN data/themes/goat/red_evil.png
  73. BIN data/themes/goat/red_minus1000.png
  74. BIN data/themes/goat/red_speedup.png
  75. BIN data/themes/goat/red_square.png
  76. +14 −0 data/themes/goat/theme.ini
  77. BIN data/themes/goat/title.png
  78. BIN dcsquares-bg.xcf
  79. BIN dcsquares-title.xcf
  80. +4 −0 dreamcast/config.h
  81. +131 −0 dreamcast/font.cc
  82. +72 −0 dreamcast/icon.c
  83. +76 −0 dreamcast/lcd.c
  84. +122 −0 dreamcast/libmenu.h
  85. +320 −0 dreamcast/screen.cc
  86. +29 −0 dreamcast/screen.h
  87. +220 −0 dreamcast/snake.cc
  88. +69 −0 dreamcast/stream.cc
  89. +23 −0 dreamcast/stream.h
  90. +13 −0 dreamcast/sys.h
  91. +43 −0 dreamcast/vmuify.cc
  92. +1 −0 dreamcast/vmuify.h
  93. +19 −0 include/font.h
  94. +1 −0 include/game.h
  95. +9 −0 include/http.h
  96. +5 −0 include/hud.h
  97. +34 −0 include/input.h
  98. +13 −0 include/net.h
  99. +20 −0 include/options.h
  100. +2 −0 include/rand.h
  101. +25 −0 include/score.h
  102. +63 −0 include/squares.h
  103. +9 −0 include/text.h
  104. +53 −0 include/texture.h
  105. +26 −0 include/theme.h
  106. +587 −0 osx/AL/al.h
  107. +110 −0 osx/AL/alc.h
  108. +88 −0 osx/AL/alctypes.h
  109. +441 −0 osx/AL/altypes.h
  110. +55 −0 osx/AL/alu.h
  111. +94 −0 osx/AL/alut.h
  112. +6 −0 osx/AL/aluttypes.h
  113. +5 −0 osx/AL/alutypes.h
  114. +14 −0 osx/DCSquares.plist
  115. +867 −0 osx/DCSquares.xcode/project.pbxproj
  116. +48 −0 osx/English.lproj/MainMenu.nib/classes.nib
  117. +25 −0 osx/English.lproj/MainMenu.nib/info.nib
  118. BIN osx/English.lproj/MainMenu.nib/keyedobjects.nib
  119. +34 −0 osx/Info.plist
  120. +20 −0 osx/MyOpenGLView.h
  121. +389 −0 osx/MyOpenGLView.mm
  122. +25 −0 osx/Preferences.h
  123. +95 −0 osx/Preferences.mm
  124. +14 −0 osx/ScoreController.h
  125. +43 −0 osx/ScoreController.mm
  126. +99 −0 osx/Scores.h
  127. +221 −0 osx/Scores.mm
  128. +15 −0 osx/UpdateChecker.h
  129. +75 −0 osx/UpdateChecker.mm
  130. +83 −0 osx/WSGeneratedObj.h
  131. +217 −0 osx/WSGeneratedObj.mm
  132. +12 −0 osx/WindowController.h
  133. +16 −0 osx/WindowController.mm
  134. BIN osx/icon.icns
  135. BIN osx/libopenal.dylib
  136. +55 −0 osx/main.mm
  137. BIN osx/openal.dylib
  138. +347 −0 osx/texture.mm
  139. +11 −0 sdl/SDLMain.h
  140. +203 −0 sdl/input_sdl.cc
  141. +1,024 −0 sdl/main.cc
  142. +199 −0 sdl/sys_sdl.cc
  143. +185 −0 win32/DCSquares-2.0.cpp
  144. +3 −0 win32/DCSquares-2.0.h
  145. +128 −0 win32/DCSquares-2.0.rc
  146. +21 −0 win32/DCSquares-2.0.sln
  147. +224 −0 win32/DCSquares-2.0.vcproj
  148. +29 −0 win32/Resource.h
  149. +8 −0 win32/stdafx.cpp
  150. +18 −0 win32/stdafx.h
  151. +619 −0 win32/wglext.h
@@ -0,0 +1,32 @@
11/16/04 - Version 1.3
* Themes
* Options menu
* Online scoring

Dreamcast:
* D-Pad can be used to player
* BBA configuration menu
* Speed matches Windows version

Mac:
* Speed matches Windows version
* Configuration saved as ".dcsquares" in your home directory

Windows:
* Configuration saved in current user's "Application Data" directory
* DirectInput code replaced by Windows API mouse

10/8/04 - Version 1.1
* Collecting powerups while a powerup is already active recharges your bar (NumberSix)
* Player can no longer be moved off screen (NumberSix)
* Combos are earned by not missing any score squares. You will recieve additional points per square
based on your combo. Combos start at 5. (NumberSix)
* New score encoding formula. New maximum score: approx. 100 million. Also encodes platform.
* Decreased sensativity on Dreamcast's analog stick (Smiles)
* Increased maximum speed of game
* Increased maximum size of player
* Fix bug when minimizing / restoring on Windows
* Fix Dreamcast VMU LCD icon

10/7/04 - Version 1.0
* Initial public release of DCSquares
@@ -0,0 +1,53 @@
#include <stdlib.h>
#include <stdio.h>
#include "squares.h"
#include "rand.h"

extern float speedval;
extern float tickval;

extern int square_count;

void add_squares(float st) {
squarelist *c;
int max=0;
int size=0;
static float oldgt=0;
static float gt=0;

gt += st;

if(gt-oldgt<(tickval/4.0f)) {
return;
}
//printf("add\n");
oldgt=gt;

// TODO: Add your message handler code here and/or call default
if(genrand_int32()%6==0) max=4; else max=2;
//max=4;
size=6+(genrand_int32()%4);

if(genrand_int32()%((int(10.0f*((tickval>0.6)?tickval:0.6))))==0 || square_count < 4) {
if(genrand_int32()%2==0) {
c=create_square(0,(genrand_int32()%(480-size))+size,size,SCORE+(genrand_int32()%max));
c->xv=(genrand_int32()%2)+speedval;
} else {
c=create_square(640,(genrand_int32()%(480-size))+size,size,SCORE+(genrand_int32()%max));
c->xv=-((genrand_int32()%2)+speedval);
}
//sprintf(tmp,"2:c,%i,%i,%i,%i,%i,%i,%i",c->x, c->y, c->size, c->type, c->id, c->xv, c->yv);
//net_sendpacket(tmp);
}
if(genrand_int32()%((int(10.0f*((tickval>0.6)?tickval:0.6))))==0 || square_count < 4) {
if(genrand_int32()%2==0) {
c=create_square((genrand_int32()%(640-size))+size,0,size,SCORE+(genrand_int32()%max));
c->yv=(genrand_int32()%2)+speedval;
} else {
c=create_square((genrand_int32()%(640-size))+size,480,size,SCORE+(genrand_int32()%max));
c->yv=-((genrand_int32()%2)+speedval);
}
//sprintf(tmp,"2:c,%i,%i,%i,%i,%i,%i,%i",c->x, c->y, c->size, c->type, c->id, c->xv, c->yv);
//net_sendpacket(tmp);
}
}

0 comments on commit 5bc681b

Please sign in to comment.
You can’t perform that action at this time.