Tilengine

Tilengine is a free, cross-platform 2D graphics engine for creating classic/retro games with tilemaps, sprites and palettes. Its unique scanline-based rendering algorithm makes raster effects a core feature, a technique used by many games running on real 2D graphics chips.

View on GitHub or Go to downloads

26/07/2016 - ObjectPascal Wrapper 1.0

22/03/2016 - C# Wrapper 2.0 available

View full changelist

Main features

Cross-platform

Tilengine is written in portable C, without dependencies on any OS, framework or third-patry proprietary component. Only a 32-bit C compiler is required. There are also wrappers for C#, Python and Java

High performance

Tilengine is native code. There is no virtual machine or interpreter consuming additional resources. When Tilengine draws a frame, it uses all the CPU available

Embeddable

Tilengine is easily embeddable inside other game engines, acting as a slave renderer on an externally provided video surface

Graphical features

Raster effects

With Tilengine is possible to modify rendering parameters for each scanline. This technique is used to create visual effects in many high-profile 2D games

Transforms

Every background layer in Tilengine can be rotated and scaled, and all sprites can be scaled. It's like mixing SNES Mode7 with Sega SuperScaler hardware.


Transparency

All Tilengine elements (backgrounds and sprites) can have set to different types and levels of blending to do lighting, shadows or translucency effects.

Animation

Tilengine has a built-in sequencer to automate animations in sprites, tiles and palettes

Examples

The following examples are a selection of the included ones inside the download package. They are distributed as source code to showcase the main features and possibilities of Tilengine, and are designed to replicate how real 2D graphics chips work. The graphics assets are ripped from real games. Many screenshots can be clicked to view the sample in youtube.

Sidescroller

Sidescroller

Perspective projection

Perspective projection

Pseudo 3D road

Pseudo 3D road

Shoot-em'up

Shoot-em'up

Pseudo 3D road (scaling)

Pseudo 3D road (scaling)

Spinning barrel distortion

Spinning barrel distortion

Sidescroller 2

Sidescroller 2

Scaling + transparency

Scaling + transparency

Color cycling + palette fading

Color cycling + palette fading

Download

Before downloading, please be aware that tilengine is a development tool, and as such it is not for everyone. Is it what you need? Check this guideline to know if it's what you're looking for!

Tilengine is for you:

  • You're a game programmer with classic 2D games in mind
  • You've developed a game engine and want to integrate arcade style 2D graphics

Tilengine is not for you:

  • You're a game designer without programming skills
  • You're looking for an all-in-one integrated game development suite
  • You want to develop Full HD / 4K GPU accelerated games

The download bundle includes support for Windows and Linux desktop operaing systems with the following items: