Tutorial 01 - Understanding the Engine

Thanks for trying out Simple Direct Engine. I've spent a lot of time developing it so I hope you enjoy it.SDE is a bit different of other engines, because it camera based. You'll understand if quickly because it's like composing the image with layers (the photoshop way!) .

Imagine that you're doing a side scroller. You want a very complex background and a simple character. The character should be always over the background, and on the top you want the number of lives and the current score. So you need three layers: one for the background, another for the character and a last one for the user interface.

If this image looks blurry, you're using old IE6.
Come on, give Opera or Firefox a try!

Mixing all the layers will generate the final image that you'll see on the screen. In SDE, a layer is represented by a Camera. So it's very simple to translate the previous example to pseudocode:

Create background camera
Create foreground camera
Create gui camera
Add background objects
Add foreground objects
Add gui components
Repeat
  Render background
  Render foreground
  Render gui
  Handle user input

Though most of the things done here are automatically done by the engine. So let's start the next tutorial and create some cool things!