logo
Home Games CRM32Pro C/C++ Code Updated
 
 
bg
   

Example 1: Basic code

   

 - Initialize SDL and CRM32Pro.
 
- Use of log system.
 
- Initialize graphics: window icon, video mode and cursor.
 
- Initialize sound system.
 
- Use of time system.
 
- Blit a surface, play a sound with mouse click and exit with ESC key.
 
- Exiting using right way.

   
 
   

Example 2 and 3: Creating a small chat

     - Initialize SDL and CRM32Pro.
 
- Use of log system.
 
- Using TCP/IP and threads.
 
- Initializing network system acting as client and as server.
 
- Exiting using right way.
   
 
   

Example 4: Using a GUI with buttons, fonts and FX effect

     - Initialize SDL and CRM32Pro.
 
- Use of log system.
 
- Initialize graphics: window icon, video mode and cursor.
 
- Load buttons from resource file.
 
- Blit a surface, show interface with buttons and show the use of fonts and fades.
 
- Exiting using right way.
   
 
   

Example 5: MPEG-1 player with FX effects

     - Initialize SDL and CRM32Pro.
 
- Use of log system.
 
- Initialize graphics: window icon, video mode and cursor.
 - Play a MPEG-I (video & audio stream) until the end or ESC key pressed.
 
- Show FX effects on video playback (using cursor keys: <- and ->).
 
- Exiting using right way.
   
 
   

Example 6: Sprites and surfaces collision system with an information panel

     - Initialize SDL and CRM32Pro.
 
- Use of log system.
 
- Initialize graphics: window icon, video mode and cursor.
 - Load resources from DPF: images(IPF), font and sprite.
 - Image following the mouse cursor.
 
- Sprite auto movement.
 
- With F1 key, you can enable/disable collision system.
 
- Information panel with FPS(real time) and number of collisions.
 - Exiting using right way.
   
 
 
Copyright (c) 2012 MegaStorm Systems. All rights reserved.