Introduction In strategy games, the avatar is moving from a place to another, without hitting the wall or walk through a mountain. How this is done? In computer science there is some kind of branch called “Obstacle avoidance” this branch studies how the character can move on the map and avoid obstacle while he is [...]

Introduction We have presented the interface development of the Tetris game. In this tutorial we are going to introduce the core implementation of the game. First we will look at the game matrix and how to update the game with the new values updated in the game matrix. The Overall Idea We have the game [...]

Introduction Tetris game is famous and easy to play. Also its rules are few, although it has a strong game play. We will cover the implementation of the game from scratch. We will start by game design, then game interface and then game code. The game has blocks that get down from the screen top [...]

Tutorial 8: Map Tiles Introduction Have you ever played a strategy game like “Warcraft” or “Command & Conquer”?. Did you notice the map navigation? Do you know how did they (game developers) build such type of maps?. These questions and more will be answered in this tutorial. We will explain the concept of map tiles, [...]

Tutorial 7: Loading 3D files from OpenGL Introduction When you work with OpenGL you will find the environment without modeling tools. Actually, OpenGL was not designed basically for creating models; instead it is for animation and rendering. However you still able to create models with OpenGL but this will lead to long time developing and [...]

Introduction Vectors are very important in implementing games. They are used to define the direction of an object also defines the velocity which needs direction and speed. We are going to introduce the algebra of vectors, and then we will show how to use vectors in our programs by applying a simple example. An example [...]

Introduction Text is the way of delivering messages. It is a way of interactivity between the user and the game. It can be used to post messages in multiplayer environments game. Also when programming, text can be used as a tool of debugging. For example, suppose there is a function to create a line rotation. [...]

Introduction Texturing is the way of covering objects with textures. In game design sometimes it is needed to have walls with the exact appearance of the real walls, to accomplish that we have two ways, the first way is to design a model for a wall and build the detailed bricks and tiles, the other [...]

1 2