Ouzel is a C++ game engine mainly targeted for development of 2D games.
Supported platforms:
- Windows 7, 8, 10
- macOS 10.8+
- Linux
- iOS 8+
- tvOS 9+
- Android 3.0+
- Emscripten (sample)
Supported rendering backends:
- Direct3D 11
- OpenGL 2, OpenGL 3 and OpenGL 4
- OpenGL ES 2 and OpenGL ES 3
- Metal
Supported audio backends:
- XAudio 2
- DirectSound
- CoreAudio
- OpenAL
- OpenSL ES
- ALSA
- Cross-platform (Windows, macOS, iOS, tvOS, Android, Linux, and Emscripten targets supported)
- Multi-threaded (separate threads for rendering, sound, and game)
- 2D and 3D scene management
- GUI helper classes and management
- Bitmap and true-type font support
- Multiple side-by-side viewport support
- XInput, DirectInput, IOKit, and Apple GameController gamepad support
- Actor animation (including tweening) system
- Particle systems
- Resource caching system
- Localization support via loading string translations and UTF-8 string support
- Software audio mixer for sound effect playback
- High DPI support on Windows, macOS, and iOS
- Easy to install (just pull the repository and it's subrepositories and build it)
The following code will open create a scene with a sprite in the center of it:
#include "ouzel.hpp"
std::string DEVELOPER_NAME = "developer";
std::string APPLICATION_NAME = "game";
class MainScene: public ouzel::scene::Scene
{
public:
MainScene()
{
addLayer(&layer);
cameraActor.addComponent(&camera);
layer.addChild(&cameraActor);
playerSprite.init("player.png");
player.addComponent(&playerSprite);
layer.addChild(&player);
}
private:
ouzel::scene::Layer layer;
ouzel::scene::Camera camera;
ouzel::scene::Actor cameraActor;
ouzel::scene::Sprite playerSprite;
ouzel::scene::Actor player;
};
void ouzelMain(const std::vector<std::string>& args)
{
ouzel::engine->getSceneManager()->setScene(std::unique_ptr<ouzel::scene::Scene>(new MainScene()));
}
2D platformer Bearslayer is being developed using Ouzel engine.
Ouzel uses the stb submodule. The following command has to be run after cloning the Ouzel engine:
$ git submodule update --init
or these commands if you have a really old version of git:
$ git submodule init
$ git submodule update
Makefiles and Xcode and Visual Studio project files are located in the "build" directory. Makefiles and project files for sample project are located in the "samples" directory.
You will need to download OpenGL (e.g. Mesa), OpenAL drivers, libxcursor, and libxss installed in order to build Ouzel on Linux. To build it for Raspbian pass "platform=raspbian" to "make" as follows:
$ make platform=raspbian
To build Ouzel with Emscripten, pass "platform=emscripten" to "make" command, but make sure that you have Emscripten SDK installed before doing so:
$ make platform=emscripten
You can build Android samples and run them on an Android device by executing the following commands in "samples/android" directory (Android SDK and NDK must be installed and added to PATH):
$ ant debug
$ adb install -r bin/samples-debug.apk
$ adb shell am start -n org.ouzelengine/org.ouzelengine.MainActivity
- Windows 7+ with Visual Studio 2015 or Visual Studio 2017
- macOS 10.10+ with Xcode 7.2+
- Any reasonable new Linux distro (including Raspbian)
You can ask question in the following locations:
- Ouzel Twitter account: https://twitter.com/ouzelengine
- Ouzel server on Discord: https://discord.gg/4sWuJE8
- #ouzel channel on the Freenode network (Freenode Webchat)
- Author of the Ouzel engine: https://twitter.com/elnormous
- Development roadmap: https://trello.com/b/5tRlUXKR/ouzel-roadmap
Ouzel codebase is licensed under the BSD license. Please refer to the LICENSE file for detailed information.