Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
3pp
cmake
docs
example
include/cb
src
.clang-format
.gitattributes
.gitignore
CMakeLists.txt
LICENSE
README.md

README.md

Critterbits

Critterbits is a simple 2D game engine written in C++ and powered by SDL2. My main goals were to make an engine that could:

  • Render 2D sprites with animation and 2D tilemaps (TMX format)
  • Handle basic collision and scripted interactions
  • Be flexible (use runtime interpretation of data files rather than hardcoded)

The engine isn't complete in its current state, but the basics do work. It can render maps and sprites, execute scripts, and accept input. You can read more about how to use the engine in the documentation. There's also an example project in the repository.

The engine code is licensed under the MIT license. Images in the example app are part of the Winter RPG Tiles and 80+ RPG Pixel Characters packs. Please purchase a license if you wish to re-use them.

You can read more about the engine at the posts on my blog.

Building

I've mostly tested the engine on Ubuntu 16.04 and Windows 7. Check the building documentation for more information.

Editor

Tiled Map Editor: http://www.mapeditor.org/

Windows 7+ dependencies

Tools

Visual Studio 2015, cmake 3.6.2

Libraries

External: SDL2-2.0.4-win32-x64, SDL2-devel-2.0.4-VC, SDL2_image-2.0.1-win32-x64, SDL2_image-devel-2.0.1-VC, SDL2_ttf-2.0.14-win32-x64, SDL2_ttf-devel-2.0.14-VC, SDL2_gfx-1.0.1 (build from source)

Included in repository: cpptoml, duktape-1.5.1, tinyxml2-2.0.4, tmxparser, zstd

Ubuntu 16.04+ dependencies

Tools

APT packages: build-essential, clang-format-3.8, cmake

If building 32-bit: g++-multilib, libc6-dev:i386

Libraries

External (APT packages): libsdl2-2.0-0, libsdl2-dev, libsdl2-gfx-1.0-0, libsdl2-gfx-dev, libsdl2-image-2.0-0, libsdl2-image-dev, libsdl2-ttf-2.0-0, libsdl2-ttf-dev

Included in repository: cpptoml, duktape-1.5.1, tinyxml2-2.0.4, tmxparser, zstd

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.