Avoiding Leaks in the Game World

Creating Multiple rooms is not a difficult process but there are some new concepts that you have to grasp and there is one very important rule of thumb you absolutely need to know. Let's review this before we actually cut the doorway.

First of all: The rule of thumb you need to know: Avoid Leaks in your game!

 

The Compiler buttonWhen you run the Compiler it builds your game much as a house would be built. It builds the frames then it applies the textures. Picture this applying the textures as painting. It paints the textures you want onto the surfaces you have designed.

What you have to do when designing your games is make sure there are no unwanted holes in your game. Because what will happen is that the texture (Paint) will pour out. The compiler will keep pouring paint out in areas that are not displayed in the game. This will slow your game down considerably and may cause it not to run.

Here is a visual explanation:

Here are two room placed side by side. I will be cutting a hole between them to create a doorway.

Two rooms with an unwanted spaceSee how the two rooms have a little bit of space between them? When I cut a doorway between these rooms there will be a leak where the compiler will try to pour the texture out into the surrounding not visible area of the game.

 

Always place your structures right up against each other. To get a better look and ensure you have placed them correctly you can use the camera button and zoom in on the grid.

 

two Rooms properly placedThe two rooms are placed right up against each other. This is correct placement. When we cut a doorway between the rooms the textures will not leak out upon Compile.

 

 

Remember: Leaks can slow your game down considerably - even stop it. So always take care when placing your structures in the game.

Okay lets continue on with the tutorial and actually cut the doorway


 

Latest Articles

AMD New Chipset and Processor breaks the barrier in gaming realism - games that look as good as movies are coming

Video Game design Summer Camps for teens and kids

How to write a video game players guide - Writing a guide is an easy way to start learning about how games are made.

 

For absolute beginners

All Materials, unless otherwise stated are Copyright©2000-2008
Kalif Publishing and StormtheCastle.com