PDA

View Full Version : Break attack



freenity
11-11-2006, 10:33 AM
<center>http://gamescreators.sourceforge.net/downloads/games/sc_rbat_sm.jpeg (http://gamescreators.sourceforge.net/downloads/games/sc_rbat.jpeg)</center>

Hi. I'm glad to present my first game in pascal +JEDI-SDL. Its a remake of arkanoid. Its open source, but it is commented in Spanish.

You can download a windows binary (http://gamescreators.sourceforge.net/downloads/games/brat_bin.rar)
source code (http://gamescreators.sourceforge.net/downloads/games/brat_src.rar) from a Homepage (http://gamescreators.sf.net/)

All comments, reviews, etc post here (http://gamescreators.sourceforge.net/forum/viewtopic.php?t=20)

Traveler
11-11-2006, 12:05 PM
I tried your game for a while and I think its a good start. All seems to work like it should. There were times I thought the ball was going into a odd direction, though. In any case, you've got the basis covered!
Now go make more levels and powerups and all :D


edit: typo fixed

WILL
11-11-2006, 02:10 PM
Hey, very cool! :)

One of my first games was an arkanoid clone too. A great way to start out is with the classics. ;) I moved on to making an advanced version of Pong, but with limited control devices back then, it wasn't that nice to play.

Please keep us up to date on your other and current projects. And welcome to PGD! :thumbup:

freenity
11-11-2006, 06:57 PM
Hi.
Thanks for your comments.
The only problem I have is to install Jedi-sdl in linux with freepascal. Anybody knows how to do it? Thanks for any advice
p.s. I have gentoo linux

savage
11-11-2006, 08:19 PM
Have you tried these 2 URLs...
http://www.freepascal.org/wiki/index.php/FPC_and_SDL


http://userpage.fu-berlin.de/~molski/fpsdl/

grudzio
11-11-2006, 08:21 PM
Hi.
The only problem I have is to install Jedi-sdl in linux with freepascal. Anybody knows how to do it? Thanks for any advice
p.s. I have gentoo linux

I installed headers like this. First I copied jedi-sdl.inc and all headers files I needed into one directory. Then I made a FPC makefile and used fpcmake to install headers as package in FPC package tree. Here is the makefile.fpc I used


#
# Makefile.fpc for SDL_JEDI for FPC
#

&#91;package&#93;
name=JEDI_SDL
version=1.0

&#91;requires&#93;
packages_linux=x11
packages_freebsd=x11
packages_netbsd=x11
packages_openbsd=x11
packages_darwin=x11

&#91;target&#93;
units=sdl moduleloader sdl_image sdl_mixer sdl_net sdl_ttf smpeg gl glu glut glext
units_linux=glx
units_freebsd=glx
units_netbsd=glx
units_openbsd=glx
units_darwin=glx

&#91;install&#93;
fpcpackage=y

savage
11-11-2006, 09:17 PM
Here's a screen shot of Brat running on MacOS X?
http://www.savagesoftware.com.au/download/Brat-MacOSX.png</img> (http://www.savagesoftware.com.au/download/Brat-MacOSX.png)

Initially it did not run because there is an error in the brick generating procedure that causes an "Out of Range" error on MacOS X.

The culprit is the code that initialises the ladrillos array. It should look like this...


//vaciar la matriz
for j := 1 to 10 do
for i := 1 to 13 do
ladrillos[i][j] := 0;

Notice that the variable names j and i have been swapped around in both for loop constructs. I'm surprised that this did not generate an error on other OSes.

This demo also proves that sdl_ttf.pas also works on MacOS X!!

freenity
11-11-2006, 10:20 PM
savage
Thanks for finding the error. Nice screenshot :D


I will try installing it for linux later. Thanks for links

cragwolf
12-11-2006, 04:31 AM
To install JEDI-SDL you can use grudzio's method, or you can use the following method:


1. Unzip the JEDI-SDL zip package into any directory you like, say /home/freenity/JEDI-SDL/.
2. Edit the /etc/fpc.cfg file and add the following lines&#58;

-Fi/home/freenity/JEDI-SDL/SDL/Pas

-Fu/home/freenity/JEDI-SDL/*/Pas

savage
12-11-2006, 01:29 PM
Thanks for finding the error. Nice screenshot :D

Sin problema. Great to see JEDI-SDL working on other platforms.

You should probably post the screen shot on your Game Creators (http://gamescreators.sf.net/) site, to show that the code is very portable, once you've uploaded a fixed version of the source code.

freenity
12-11-2006, 02:06 PM
Thanks for finding the error. Nice screenshot :D

Sin problema. Great to see JEDI-SDL working on other platforms.

You should probably post the screen shot on your Game Creators (http://gamescreators.sf.net/) site, to show that the code is very portable, once you've uploaded a fixed version of the source code.

already done :wink: