PDA

View Full Version : S2DL ver 2.1 Release



cairnswm
20-06-2011, 07:52 PM
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.

WILL
21-06-2011, 02:08 AM
Very awesome William! :)

I always liked your JEDI-SDL-based library. Glad to see if back on the development block.

Any plans to fix up your old website that showcases all your past projects?

cairnswm
21-06-2011, 02:47 AM
Any plans to fix up your old website that showcases all your past projects?

Most of those games dissapeared along with the site :(

Might find time inbetween to try and put my website together with the games I can find.

Legolas
21-06-2011, 09:05 AM
The zip file seems corrupted. Well, at least I can't open it at all :)

azrael11
21-06-2011, 08:03 PM
The zip file seems corrupted. Well, at least I can't open it at all :)

The same is here too.
Yep file is corrupted ....

cairnswm
22-06-2011, 03:38 AM
I tried it last night and yes it is corrupt - I will try upload in smaller packages

Source
Demos
- Basic
- One file each for completed games

etc

cairnswm
22-06-2011, 07:55 PM
Links updated

wagenheimer
22-06-2011, 11:34 PM
I still can't download them! I got errors on all! =(

Please upload them to an alternative server, like www.4shared.com

cairnswm
23-06-2011, 04:12 AM
OK the source files and SDL binaries download is working and tested - my host keeps closing connection on the larger files.

Demo for Flies also uploaded successfully.

azrael11
23-06-2011, 09:07 AM
Still cant't download my friend :(

kotai
11-06-2012, 08:37 AM
Hi.

Your S2DL is compatible with DelphiXE2 for work with iPhone/iPad ?

Kotai.

Super Vegeta
03-07-2012, 10:39 AM
Is there documentation available?

WILL
03-07-2012, 09:16 PM
I think a website dedicated to S2DL should be made as a resource centre for all things relating to this graphics/game library. :)

cairnswm
01-07-2015, 06:42 PM
So 4 years on I've started working on Version 3 of the S2DL libraries. Version 3 will switch completely to SDL2 but will try and do as few changes to the S2DL design as possible. So all OpenGL calls are being removed and all hardware acceleration left to SDL2.

So far I have been able to convert
S2DLDraws (most of)
S2DLImage (most of)
S2DLFont - changed 3 lines of code
S2DLInput - Added 12 new constants....

The 2 basic demos are working
HelloWorld (Simple app to show text on the screen)
Balls (Simple game showing sprites - not animated - and mouse input)

Will try finish what I've done and make it available again.