S2DL ver 2.1 Release
After about 3 years the next S2DL release is available. This version can be considered Beta as I have just packaged the latest info available in my reporitories into a new file - not all functions have been tested properly. (I also believe some code was lost, and I have had to recreate it and may have missed some methods).
S2DL is an object orientated set of wrappers for JEDI-SDL with extensive OpenGL addins to make it faster.
Included in this download are the following S2DL source files:
S2DLDraws - the base class for instantiating an application window
S2DLImage - Load, Display and Manage images
S2DLInput - Manage Keyboard and mouse - also base logic for Joystick but I dont have a joystick to test with
S2DLSound - Load, Play and manage sound files
S2DLFont - Load, Display and Manage bitmap style fonts
S2DLLogger - Log management code for recording what happens in the game while it occurs
S2DLState - State Management - a State is a logical screen, move between states when you change game screen eg from Menu to Game to High Scores
S2DLGuis - Basic Guis - Labels and Containers supported (Next version will include an Edit box)
S2DLGuiState - Extended Game State to specifically manage Guis - think Delphi forms
S2DLTiledMapState - Extended Game State to display a tiled map
S2DLParticleEngine - Basic Particle Engine (Release state of this unit is uncertain)
S2DLMovieState - Does not Work - please ignore
2011\06\20
18MB download (See notes below)
Source code and SDL libraries
http://www.cairnsgames.co.za/files/S2DLv2-1.zip
Not yet uploaded (due to problems with ftp to my host):
Demos - incomplete games
http://www.cairnsgames.co.za/files/S2DL-Demos.zip
Complete Games
Fantasy Land http://www.cairnsgames.co.za/files/FantasyLand.zip
Flies http://www.cairnsgames.co.za/files/Flies.zip
Weapons of War http://www.cairnsgames.co.za/files/WeaponsofWar.zip
Star Trekking http://www.cairnsgames.co.za/files/StarTrekking.zip
Dependancies: JEDI-SDL (Not included) works fine with JEDI-SDL ver 1-0
Contents:
SDL DLLs in Binaries folder
Source code for S2DL classes (See above)
Project Template that can be expanded for new games
Demos
- Hello World
- Balls (Puzzle game demo)
- TileMap (Simple tiled map demo)
- S2DLVolumeDemo (idea stolen from elsewhere and converted to S2DL - shows FPS based on number of sprites being displayed - origin unknown)
- GameState - Demo of game state functions
- Viking Rampage (Nice Isometric Tiled demo - was going to be a PGD contest entry - design docs included - incomplete)
More complete Game Samples
- Flies (Swat the flies to score points - Complete Game)
- Fantasy Land (3rd Place in a local Game Dev Contest - Complete Game)
- Weapons of War (Balls demo extended to a full game - Complete Game)
- Startrekking (Balls demo extended to a full game - Complete Game)
Note: The large size of the download is due to the number of complete game demos including their needed images
Note 2: Will later distribute the base classes as a source code download, and demos separatly (Basic demos, full games)
How to Compile in FreePascal
- Compiling in FreePascal makes very small binaries
- Instructions are included on installing S2DL to work in lazarus (This is old and may no longer be relevant)
fpc -FuC:\S2DL\Source <ProjectName>.lpr
Note: .dpr files can be renamed as .lpr for freepascal/lazarus - they may need to be modified to include an ifdef for delphi syntax.
Bookmarks