#game-engine #2d #framework #engine
A very nice cross platform 2d game engine in c++, for reference or even use in a 2d game MIT License
|
|
%!s(int64=10) %!d(string=hai) anos | |
|---|---|---|
| 3rdPartyTools | %!s(int64=10) %!d(string=hai) anos | |
| cmake | %!s(int64=12) %!d(string=hai) anos | |
| doc | %!s(int64=10) %!d(string=hai) anos | |
| examples | %!s(int64=10) %!d(string=hai) anos | |
| libs | %!s(int64=12) %!d(string=hai) anos | |
| oxygine | %!s(int64=10) %!d(string=hai) anos | |
| readme | %!s(int64=10) %!d(string=hai) anos | |
| tools | %!s(int64=10) %!d(string=hai) anos | |
| .gitignore | %!s(int64=10) %!d(string=hai) anos | |
| .hg_archival.txt | %!s(int64=10) %!d(string=hai) anos | |
| .hgignore | %!s(int64=10) %!d(string=hai) anos | |
| Android.mk | %!s(int64=10) %!d(string=hai) anos | |
| CMakeLists.txt | %!s(int64=10) %!d(string=hai) anos | |
| Doxyfile | %!s(int64=11) %!d(string=hai) anos | |
| license.txt | %!s(int64=12) %!d(string=hai) anos | |
| readme.md | %!s(int64=10) %!d(string=hai) anos |
See oxygine-framework/readme/ folder. It has insructions how to build and run oxygine on different platforms.
https://bitbucket.org/oxygine/oxygine-framework/wiki/Home
One more shell around OpenGL/D3D API you would say? No, this is a set of classes and tools to create a game according to your requirements.
In the basis of the engine there is a scene graph, that is similar to Flash one. To be short, You can call this as Flash for C++, but more comfortable and way faster. Initially it was developed for mobile platforms (iOS, Android), but can be also used for PC games.
Source code is available under MIT license (use for free anywhere).
##SDK includes:
##Supported platforms:
##Examples of code:
```cpp
//create sprite and display it
spSprite sprite = new Sprite();
sprite->setResAnim(gameResources.getResAnim("anim"));
sprite->attachTo(getStage());
sprite->setScale(0.5f);
//run animation tween
sprite->addTween(TweenAnim(gameResources.getResAnim("anim2")), duration, loops);
//run position tween
sprite->addTween(Sprite::TweenPosition(x, y), duration, loops);
//handle events
sprite->addEventListener(TouchEvent::CLICK, clickHandler);
```
##Features:
You could build it on top of the Marmalade, SDL2 or adapt it for your platform. Oxygine could be build with Emscripten for internet browser as well.
And this is not all. There are a lot of features, but it is easy to use them, framework is not a monster and very intuitively clear. Viewing of couple examples would be enough to understand how it works.
##Contacts You could find more information on oxygine.org