Pretty arkanoid/breakout/dxball clone
SDL-Ball is a arkanoid/breakout/dx-ball clone with pretty graphics, written for linux in c++, using opengl and sdl.
The objective of the game is to control the paddle and a ball, to make the ball hit bricks, and hit all bricks on the level, when all bricks have been hit, the level is completed.
License: free
Requirements: OpenGL, GLU, SDL, SDL_image, SDL_ttf, SDL_mixer.
3D accelerator with working drivers.
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | no | no | yes | yes |
Submitted by dusted on 2008-04-18.

PS. -lglut is not needed in the makefile, and also distfiles are better to be named like
sdl-ball-1.0.tar.bz2
sdl-ball-data-2.0.tar.bz2
sdl-ball-backgrounds-3.0.tar.bz2
thus it'll be clear which software they belong to if they're placed into same directory with many other distfiles (say, in some repository or distfile mirror). This'll make maintainer and users life a bit easier :)
Do not use SDL_DOUBLEBUF flag with SDL_OPENGL, instead use SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1) BEFORE call SDL_SetVideoMode()
p.s. You should more work on code and graphics.
Also, I AM working on the code and graphics.. Theres a reason this is still called alpha, and 0.0X versions :P
http://dusted.dk/SDL-Ball-guiEditor/
in case anybody like the game enough to want to make levels :)
I hope I can have passwords. Or can I select any levels I want? It really make no sense to complete a game in a static order.
I'd say this is one of the best tactical games for Linux. I also really like the cyberpunk style.
There are some minor issues however. My biggest gripe is the CPU intensive AI calculations
I allways liked Krakout more than Arkanoid wish though had cooler intro music :)
add this: cout << "I think you are running this resolution:" << oldResX << "x" << oldResY << endl; on the empty line 3934 in main.cpp
Then compile the game: make Then run the game with: ./sdl-ball
And then compare what resolution the game thinks you are running, with what you know you are running, are they the same ? If not, this is a sdl bug :)
--- main.cpp (revision 106) +++ main.cpp (working copy) @@ -3931,6 +3931,23 @@ int oldResX = SDL_GetVideoInfo()->current_w; int oldResY = SDL_GetVideoInfo()->current_h; int oldColorDepth = SDL_GetVideoInfo()->vfmt->BitsPerPixel; + + /* Handle those situations where sdl gets a void resolution */ + if(oldResX < 128 || oldResY < 96) + { + cout << "SDL Reported a screen resolution below 128x96."<< endl; + cout << "Assuming this is a bug in SDL or driver." << endl; + cout << "Falling back on 128x96"; + oldResX=128; + oldResY=96; + if(!setting.cfgRes[0] || !setting.cfgRes[1]) + { + setting.fullscreen=0; + cout << ", windowed mode."; + } + cout << endl; + } + /* The above code is not tested and might not work */
if(!setting.cfgRes[0] || !setting.cfgRes[1]) {
--- main.cpp (revision 106) +++ main.cpp (working copy) @@ -3931,6 +3931,23 @@ int oldResX = SDL_GetVideoInfo()->current_w; int oldResY = SDL_GetVideoInfo()->current_h; int oldColorDepth = SDL_GetVideoInfo()->vfmt->BitsPerPixel; + + /* Handle those situations where sdl gets a void resolution */ + if(oldResX < 128 || oldResY < 96) + { + cout << "SDL Reported a screen resolution below 128x96."<< endl; + cout << "Assuming this is a bug in SDL or driver." << endl; + cout << "Falling back on 128x96"; + oldResX=128; + oldResY=96; + if(!setting.cfgRes[0] || !setting.cfgRes[1]) + { + setting.fullscreen=0; + cout << ", windowed mode."; + } + cout << endl; + } + /* The above code is not tested and might not work */if(!setting.cfgRes[0] || !setting.cfgRes[1]) {