Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,762 members, 7,824,185 topics. Date: Saturday, 11 May 2024 at 03:23 AM

Learn How To Programme Playable Game In 48 Hours! - Gaming - Nairaland

Nairaland Forum / Entertainment / Gaming / Learn How To Programme Playable Game In 48 Hours! (1597 Views)

Have You Tried This Hidden Game In Google Chrome??? / Sorry, Nigerians - Xbox One Will Not Be Playable In Nigeria At Launch / Which Is The Most Popular Game In The World ? (2) (3) (4)

(1) (Reply)

Learn How To Programme Playable Game In 48 Hours! by losprince(m): 12:15pm On Jun 03, 2013
Game Programming in C and C++
Knowledge is power - A Simple Game from Start to Finish
Do you want to learn how to create a game? This series will teach you how to create a game, starting from the very beginning and ending with a fully playablegame.
*. Same Game - Part 1: Introduction to technologies and drawing the game board
*. Same Game - Part 2: Creating a real, playable game
*. Same Game - Part 3: Adding difficulty levels and other menu options
*. Same Game - Part 4: Changing the gameboard size and the block count
*. Same Game - Part 5: Adding undo/redo functionality and keyboard accelerators
Re: Learn How To Programme Playable Game In 48 Hours! by losprince(m): 12:28pm On Jun 03, 2013
"The Same Game": A Simple Game from Start to Finish, Part 1of 5 By knowledge is power
Foreword to Same Game
In this five part series, we'll be creating a version of a game called SameGame usingthe Microsoft Foundation Class library fromstart to finish. We'll include features beyond the simple removing of blocks in the game. We'll implement an undo/redo subsystem and some user configuration dialogs. We'll show you step by step with not only source code but screenshots how to build a fun game from start to finish and how to use Microsoft's MFC classes. Every article comes with complete source code, so you can build and run the game yourself.
The rules to the SameGame are quite simple, you try to remove all of the colored blocks from the playing field. In order to remove a block the player must click on any block that is next to, verticallyor horizontally, another with the same color. When this happens all of the blocks of that color that are adjacent to the clicked block are removed. All of the blocks above the ones removed then fall down to take their place. When an entire column is removed, all columns to the right are shifted to the left to fill that space. The blocks aren't shifted individually but as a column. The game is over when there are no more valid moves remaining. The goal is to end with an empty board in as little time as possible. Some versions of the SameGame use a scoring algorithm that can be implemented as an additional exercise for the user.
Prerequisites
You'll need to have a basic C++ knowledge of functions , recursion , classes , and inheritance . The code was written using Visual Studio 2005 on Windows XP although later versions of Visual Studio should be fine although the screenshots will look slightly different from what you will see. You must use the Standard or Professional edition of Visual Studio; VisualStudio Express cannot be used, because itdoes not come with MFC.
If you are student, you may be able to getthe Professional Version of Visual Studio for FREE from Microsoft DreamSpark .
If you are not a student, and you do not have the full version of Visual Studio, can work through this tutorial using a trial version of Visual Studio .
What You'll Learn
First and foremost, you'll learn some basics of how to create your own game. You'll learn about the Microsoft FoundationClass library and some basic usage and the Document/View architecture paradigm.
Here's an outline of the series, with links to each article:
*. Same Game - Part 1 Introduction to technologies and drawing the game board
*. Same Game - Part 2 Creating a real, playable game
*. Same Game - Part 3 Adding difficulty levels and other menu options
*. Same Game - Part 4 Changing the game board size and the block count
*. Same Game - Part 5 Adding undo/redo functionality and keyboard accelerators
Why MFC?
MFC is an easy-to-use library, especially for a simple game like the one we want to make. It will make it easy to create an application with a true Windows look-and-feel.
Starting the Same Game Project
In this article we'll be using Visual Studio 2005 to create our game. The following instructions can easily be adapted to all other versions of Visual Studio. First start up Visual Studio and create a new project.The type of project is "Visual C++" ->"MFC" -> "MFC Application".

(1) (Reply)

Who Has Seen This Type Of Wireless Pad / Where Do You Guys Get Your Data From??? / Your Best RPG Game So Far

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 18
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.