And now, our humble beginnings; Enter The Code!
We will start out with the main source that we will build upon and
GraphicsUnit.pas to help speed along some of the graphics handling.
When run it should show the included background scene. You can then press Esc to close the program. If you are new to JEDI-SDL or even Pascal then you will be able to play with this further to get a better grasp of how to work with the two before you jump onto Part 2.
Download the source files
here!
Setup
The project file included already has Delphi Compatibility mode enabled, which is required. But ensure that you have it on in case you are copying and pasting my code into a new project of your own making.
You will need to supply the path to the JEDI-SDL folder for the sdl header!
In Lazarus go to Projects -> Compiler Options... and click on the Paths tab. There in the Other Unit Files (-Fu) field change C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-
SDLv1.0\SDL\Pas\ to match the path of your own copy of JEDI-SDL.
Lastly, since I have not supplied the sdl.dll file along with the source, you will be required to make a copy of the file to their the source directory or a location within your system's path.
Once complete you should be able to compile and run it without any problems!
End of Part 1
That's it for now. In the next tutorial, 'The Dirt' we'll start to get into the good stuff where we'll be creating the play-field on which we'll be causing our mayhem!
Go to Index |
Goto page 2