Tutorials

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

CRM32Pro Tutorials

  • 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

CRM32Pro Tutorials

  • 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

CRM32Pro Tutorials

  • 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

CRM32Pro Tutorials

  • 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

CRM32Pro Tutorials

  • 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 10: a small TCP/IP chat system

CRM32Pro Tutorials

  • Initialize SDL and CRM32Pro libraries.
  • Use of log system.
  • Create a TCP/IP server.
  • Server in authoritative mode.
  • Create a TCP/IP client.
  • Exit with ‘escape’ key closing all resources.
Tutorial 11: Integrated console and debug window

CRM32Pro Tutorials

  • 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

Last version: v5.22 (19-September-2012)
ChangeLog | Roadmap | LGPL license

Binaries
32bits binaries for supported operating systems.
Source code
Source code and make files for VS2008+ and GNU C/C++ 4.x.
Previous releases
Get access to all releases repository.