Tutorials
[insert_php]require(‘./code/megastorm.php’ ); $pIndex = “CRM32Pro-Tutorials”; [/insert_php]
These tutorials about using CRM32Pro will show you from the basic to a more advanced methods of working with the library.
As you can see, there are some missing tutorials:
- How to use the configuration system.
- How to use the XML parser.
- Using tiles and tileset.
- Using sprites.
You also can check the SpacePong and TitanBomber source code as examples of fully functional games using CRM32Pro.
Tutorial 1: basic code
- Initialize SDL and CRM32Pro libraries.
- Use of log system.
- Initialize graphics: window icon, video mode and custom cursor.
- Initialize sound system.
- Use of time system.
- Blitting a surface.
- Play a sound with mouse clicks.
- Exit with ‘escape’ key closing all resources.
Tutorial 3: GUI, fonts and FX
- Initialize SDL and CRM32Pro libraries.
- Use of log system.
- Initialize graphics: window icon, video mode and custom cursor.
- Load buttons from a DPF file.
- Blitting a surface.
- Draw buttons: checkbox, inputbox, progressbar and slider.
- Use of fonts.
- Option fade to white special effect at exiting time.
- Exit with ‘escape’ key closing all resources.
Tutorial 5: MPEG-1 playback with real-time FX
- Initialize SDL and CRM32Pro libraries.
- Use of log system.
- Initialize graphics: window icon, video mode and custom cursor.
- Initialize sound system.
- Play a MPEG-I video and audio stream until it finishes or ‘escape’ key is pressed.
- Optional real-time FX on the video stream using ‘left’ and ‘right’ cursor keys.
- Exit with ‘escape’ key closing all resources.
Tutorial 8: Sprites and surfaces collision system
- Initialize SDL and CRM32Pro libraries.
- Use of log system.
- Initialize graphics: window icon, video mode and custom cursor.
- Load resources from a DPF: images, fonts and sprites.
- An image following the cursor.
- Sprite auto movement.
- ‘F1’ key enabled/disabled collision system.
- Information panel with FPS in real-time and number of collisions.
- Exit with ‘escape’ key closing all resources.
Tutorial 9: Logic and Render rates, cloning sprites and smooth movement
- Initialize SDL and CRM32Pro libraries.
- Use of log system.
- Initialize graphics: window icon, video mode and custom cursor.
- Load resources from a DPF: images, fonts and sprites.
- Use of time system for setting the Render rate to unlimited and Logic rate to 20 executions per second.
- Use of CRM32Pro.SetRenderCallback() for rendering your graphics with optional smooth movement.
- Cloning sprites.
- Exit with ‘escape’ key closing all resources.
Tutorial 11: Integrated console and debug window
- Initialize SDL and CRM32Pro libraries.
- Use of log system.
- Initialize graphics: window icon, video mode and custom cursor.
- Initialize sound system.
- Use of time system.
- Use of the integrated console and debug window.
- Exit with ‘escape’ key closing all resources.
Download
[insert_php] printDetails(); [/insert_php] | LGPL license
- Binaries
- 32bits binaries for supported operating systems.
-
- [insert_php] printDownload(“linux-x86″,”tgz”,”icon-os-linux.png”, “Linux”);printDownload(“mac-x86″,”dmg”,”icon-os-mac.png”, “MacOS X”); printDownload(“win-x86-gcc”,”zip”,”icon-os-windows-gcc.png”, “Windows GCC”); printDownload(“win-x86″,”zip”,”icon-os-windows-vs.png”, “Windows”); [/insert_php]
- Source code
- Source code and make files for VS2008+ and GNU C/C++ 4.x.
-
- [insert_php] printDownload(“source”,”zip”,”icon-source-code1.png”, “Source code”);[/insert_php]
- Previous releases
- Get access to all releases repository.
-
- [insert_php] printRepository(); [/insert_php]