NOGDUS $1670.00 has been donated to NOGDUS!
August 22, 2017, 05:30:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Project Templates  (Read 3927 times)
0 Members and 1 Guest are viewing this topic.
Richard Marks
Administrator
Offline Offline

Respect: 3425
« on: March 09, 2009, 07:01:22 PM »

Project Templates

Want to get started working on a project really fast?
I'm going to be creating startup projects for the Code::Blocks IDE and making them available here.

How to Install and Use User Templates
On Linux:
Extract the archive you down to the /home/username/.codeblocks/UserTemplates/ directory.
Pick User Templates when creating a new project in Code::Blocks.
You should see the template you just installed.

On Windows:
...not sure yet.. I'll get back to you.. Cool
Logged

Richard Marks
Administrator
Offline Offline

Respect: 3425
« Reply #1 on: March 09, 2009, 07:14:42 PM »

SDLGameProject
A user template for starting a simple game based on SDL.
The project depends on SDL, SDL_image, and SConS to be built, and should build without any trouble in Code::Blocks.
The code is OOP organized and documented using Doxygen-compatible comments.
The project will open an 800x600 window and simple clear it black.
There is code for handling the W,S,A,D, and arrow keys in a game-oriented manner.
Code:
if (motionButtonDown[MOTIONBUTTON_UP])
{
// the UP arrow or W key is currently down
}

The following "motion button constants" are defined:

MOTIONBUTTON_UP, MOTIONBUTTON_DOWN, MOTIONBUTTON_LEFT, MOTIONBUTTON_RIGHT

Download SDL Game Project User Template for Code::Blocks 8.02
License: Feel free to use this project code as you wish, just do not re-distribute the template as your own.
Logged

Richard Marks
Administrator
Offline Offline

Respect: 3425
« Reply #2 on: March 20, 2009, 01:37:57 PM »

AllegroGameProject
A user template for starting a simple game based on Allegro. (I ported the SDLGameProject Template to Allegro)
The project depends on Allegro version 4.2.x, and SConS to be built, and should build without any trouble in Code::Blocks.
The code is OOP organized and documented using Doxygen-compatible comments.
The project will open an 800x600 window and simple clear it black.
There is code for handling the W,S,A,D, and arrow keys, as well as code to show how to handle individual mouse-clicks.
There is code for handling closing the window via the [X] button, and also FPS locking for CPU independent timing!

Download Allegro Game Project User Template for Code::Blocks 8.02
License: Feel free to use this project code as you wish, just do not re-distribute the template as your own.

If you downloaded this template and the ESC keys and stuff didn't work, its because I screwed up and forgot something important!
I've updated the archive for downloading with the missing code.
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
.: Theme by Richard Marks :.
Valid XHTML 1.0! Valid CSS!