System: List All Pages
About This Wiki The C++ Wiki is dedicated to helping you learn how to make games using C++. You don't need any experience in programming or making games, we'll teach you everything we know.1 Why...
Here's some books that can learn you programming in c++. Accelerated C++ Needs Description. Beginning C++ Game Programming Needs Description.
Categories: {$list}
This category that collects our tutorials suitable for beginners. If you are a complete beginner, start with How to Execute Code Examples and then move on to Your First...
This category that collects our tutorials about using Code::Blocks. Subcategories Pages in category 'Code::Blocks Tutorials' Categories: Tutorials
This is the top level category of the Cpp Wiki. Subcategories Pages in category 'C++ Wiki'
This category that collects our tutorials about graphics. Subcategories Pages in category 'Graphics Tutorials' Categories: SDL Tutorials : Tutorials
This category that collects our lists. Subcategories Pages in category 'Lists' Categories: Cpp Wiki
This category that collects our tutorials about using SDL. If you are a complete beginner, start with Setting up SDL. Subcategories Pages in category 'SDL Tutorials' Categories: Tutorials
This category collects all of our source code pages, snippets, etc. Subcategories Pages in category 'Source Code' Categories: Cpp Wiki
This category that collects our tutorials. Subcategories Pages in category 'Tutorials' WIPs The following tutorial's are works in progress : Categories: Cpp Wiki
Anyone know how I can change this to check only if it collides with certain sides? for (int i = 0; i < blocks.size(); i++) { if (((player.x + 11) > blocks[i].x and...
This is the wiki's community portal. Bulletin Board GDN Header project started. Member Pages! We're working on adding some tutorials. Things to do Add an operator to the List of Operators Help...
A compiler is a program that turns your C++ code into something the computer can read. A compiler will sometimes come with an IDE, but not always. MinGW Compiler Visual C++ Compiler Related...
Welcome to C++ Wiki Complete! The place where you can learn how to program games in C++. Need Some Help? Getting Started Beginner's Guide Read a Tutorial Ask a question on the...
A debugger is List of debuggers: list item List item
//Includes, put at top. #include <string> #include <sstream> //Main variables, put somewhere outside of a function above when it is first used. long num_of_scr = 0; string scr_name...
This page is for the gdn header file we're working on. It'll probably be deleted when we're finished. #ifndef GDN_H #define GDN_H #include <cstdlib> namespace GDN { /**...
C++ Wiki is a game design / programming community which teaches absolute beginners how to make games using C++. The people who write the tutorials, articles, lists, faqs, and documentation were...
Blind Archer Translation // Blind Archer // A classic BASIC-style text-based guessing gmae extravaganza! // by Shawn Hartnell // You have full permission to use and abuse this code // It likes...
This is my concept map of C++. It helps me organize what I think i know. Programming A program is a set of step by step instructions for a computer to follow. Programming is the art of giving...
My personal to-do list. Set up side search List functions for GDN library
Header files are… (Needs description) They can be included in a c++ program by using the include keyword. #include <iostream> #include "header.h" Using quotation marks will look in the...
So you want to get started with C++? First you should choose a development environment. Here are a few suggestions: Dev-C++ Borland C++ C++ Express Code::Blocks Eclipse (with CDT plugin) If you...
Wha's Me Freekin' Number? Snap to Grid File Dialogs
Integers - Jun 26 How to Execute Code Examples - Jun 21 Setting Up SDL Metaballs
Please change this page according to your policy (configure first using Site Manager) and remove this note. Who can join? You can write here who can become a member of this site. Join! So you...
This is a list of constants built into the C++ standard library. Data Types Constant Name Value Description Defined In… CHAR_BIT CHAR_MAX limits.h or climits CHAR_MIN limits.h...
This is a complete list of operators in C++ Input and...
math.h is a standard header file that comes with most C++ compilers. It contains the most useful math functions. The following math functions exists in...
Member page of hartnell. foldunfold Table of Contents Forum Bookmarks Scratchpad hartnell:code-snippets hartnell:concept-map hartnell:to-do Forum Bookmarks SDL Game Loop...
This is the member page of kake_fisk.
Member pages! hartnell Kake Fisk u9
Members: Moderators Admins
C++ Wiki C++ Wiki Getting Started Beginner's Guide Learn C++ Tutorials Source Code Community Forum Recent Posts Community Portal Resources Compilers IDEs Debuggers Wiki...
Set up lib Possible first 2D tutorial - move sprite with keyboard.
u9 is still working on this one :)
Edited Pages New Pages Categories: Cpp Wiki
scratch. scratch. Suggested Source Code Snippets Tilemap Some Notes Console / ASCII racing game. Clear the freekin' screen. system("cls");
Welcome to the first in a series of tutorials on how to make a simple zombie massacre game using C++ and SFML. The goal of this tutorial series is to introduce you to Simple Fast Multimedia Library...
C++ Wiki C++ Wiki Getting Started Beginner's Guide Search Learn C++ Tutorials Source Code Lists Header Files Books Community Forum Recent Posts Community...
To learn how to run the source code here using Code::Blocks, see : How to Execute Code Examples. Beginner This code is generally easy to understand and is aimed at complete beginners. Big Freein'...
Big Freekin' F II: Son of the Grandfather of Big Freekin' F. Requires: Only C++ #include <iostream> using namespace std; int main() { cout << "...
This will open the open file and save file dialog. #include <iostream> #include <windows.h> using namespace std; OPENFILENAME ofn; // Common dialog box structure. char...
A game of inevitable futility. Requires : Just C++ #include <iostream> using namespace std; int main() { string str; cout << "Pull my finger. (Y/N) "; cin >> str; cout...
This code shows how to snap the mouse coordinates to a 32 by 32 grid. It is perfect if you want to snap your player to a square, or to make a tilemap editor. Requires: SDL Link parameters (assuming...
A really dumb text game written in C++. #include <iostream> using namespace std; int main() { bool game_over = false; string action; cout << endl; cout <<...
Description Guess the number with a drunken lephrecaun. Instructions Type in your guess. Known Bugs If you enter a string, it goes bugshit crazy. For now, it only works with numbers. // wha's me...
This will encrypt and decrypt a string with xor. #include <iostream> using namespace std; int main() { char msg[] = "Hello World!"; int len = strlen(msg); char* crypt =...
spacechase0 Go to my GameMaker Wikicomplete member page. Go to my website.
Categories: Cpp Wiki
Top
{Community} Community Portal {Wiki} Recent Changes List All Pages Page Tags List Wiki Members Site Admin
Arrays are a relatively simple and efficiant way to store multiple values in one place. You can think of them as a table or bar graph. An array consists of cells that can hold information. 1D...
This tutorial will introduce you to classes in C++. Classes are the foundation of object oriented programming. Inheritance Ancestor Categories: Tutorials
Collision detection are an important part of game making. It is used to detect collisions or intersections between two game objects. Rectangular Collision Detection This will check if 2 objects are...
This tutorial will introduce you to data structures in C++ Introduction Data structures are a way of storing data while your program or game is running. Simple data structures can hold one or more...
A data type is used to define which kind of data something contains or can contain. These are the different data types: Data Type Description Example(s) bool Boolean. Can be either true or...
This tutorial will teach you how to display sprites in SDL. A sprite is an image or series of images. These images are used to display game objects and game interfaces. This is a quick sprite I've...
To display text in SDL you have to get SDL_ttf. You can download it here: http://www.libsdl.org/projects/SDL_ttf/ You want the "SDL_ttf-devel-2.0.9-VC8.zip" under Binary for Win32. Extract it's...
Event means something that happens. In this case it can be for example a key press or clicking the close button. Firstly we have to include the headers, initialize the surfaces, add the main...
This tutorial will introduce you to the main concepts you will need to work with floating point numbers in C++. A floating point number is a number that has a decimal point in it : 44.55 A number...
A function is a group of statements that is executed when it is called in the main program. This is how functions looks like: type function_name(argument1,argument2,..) {statements} type: is the...
Below is the Random number tutorial outline from .tut. :) Intro Computers cannot generate random numbers. Complex math is used instead. To get the random number generated started, you need to set...
When you have opened Code::Blocks, click the Create a new project icon. Now a window will popup asking which type of project you want to create. If this is your first project, I sugest start with...
While you are a beginner, most of your code will be in the form of short snippets and examples. This tutorial shows you how to compile and run (execute) these examples. It's also useful to execute...
Standard output: Cout is the standard output. It's used like this: cout << "Hello"; You can also output numbers and variables. cout << 23 << endl; cout << variable...
This tutorial will teach you how to use integers in C++. Integers Integers are whole numbers such as -1, 0, 1, etc Integers can't have decimal fractions : Integer: 44 Float: 44.551 Round Down (...
This tutorial will introduce you to using lists in C++. Lists A list is an ordered collection of values. The following list functions exist: id.clear() Removes all values in the...
Basic Math Math Operators Operation Operator addition + subtraction - multiplication * division / mod (remainder) % Increment ++var | var++ Decrement --var | var-- #include...
This tutorial shows how to make a metaballs demo. It uses SDL for drawing the graphics. The metaballs are kept in a vector. First we start off by including the needed libraries. Here we need SDL...
Namespaces prevent naming conflicts by putting functions in their own "zone". To just use one function of a namespace, you could do this: std::cout << "std is a namespace" <<...
First Steps To play sounds in SDL you have to get SDL_mixer. You can download it here: http://www.libsdl.org/projects/SDL_mixer/ You want the "SDL_mixer-devel-1.2.8-VC8.zip" under Binary for...
This tutorial will introduce you to using pointers in C++ A pointer is the stored memory location of something else. The reason to use pointers is speed. Categories: Tutorials
This tutorial will introduce you to concepts you will need to position game objects in C++ using SDL. A position is a point along a line. <-- - - - - - - - - O - - - - - - - - --> In...
This tutorial is a conceptual framework of what programming is. It's a bird's eye view of programming. Video games are computer programs. Programs are step by step instructions followed by a...
This tutorial will introduce you to using queues in C++. Queues Queue data structures are called FIFO (First-In First-Out) structures. The value that was first pushed in, will be the value first...
Basic / Beginner Tutorials Programming 101 Your First Program Basic Math Math Data Input/Output Data Types Integers Floating Point Numbers Pointers Data Structures Variables Limit the...
This tutorial will teach you how to set up SDL in Code::Blocks. SDL can be downloaded here: http://www.libsdl.org/download-1.2.php download the SDL-devel-1.2.13-mingw32.tar.gz (Mingw32) under...
This tutorial will introduce you to using stacks in C++ Stacks A stack is a last-in-first-out structure. Elements are pushed onto the stack and poped. The last element pushed on is the first...
If statement: The if statement checks if the condition is true before executing the statement. if (condition) {statement} #include <iostream> using namespace std; int main() { bool a =...
Tilemaps are very useful for making game levels. A tilemap is a 'map of tiles' of a level. Each type of tile is given a number. For example, in a space where you want a wall, you can use the number...
Variables are like a box that holds data. You can put data in the box. Then you can look at it. Or, if you want, you can change the data in the box. Declaring Variables Variables can be declared...
Fstream let's you write and read from files. Writing to a File: This will write the string str in file.txt. #include <iostream> #include <fstream> using namespace std; int...
The Code This is your first program: #include <iostream> using namespace std; int main() { //This prints "Hello World!" on the screen cout << "Hello World!" << endl;...
All Categories Categories: Cpp Wiki
Categories: Cpp Wiki