Native LesserPanda framework written in C++, powered by Oxygine. This will very likely to replace the lesser-panda-native.
This project can be built for several platforms, each with some specific setups. Follow the steps to make it work properly.
First of all, setup oxygine so you have a folder that contains
oxygine-framework
and SDL
repos. Clone this project to that folder.
Then follow the steps to be able to build for any supported platforms.
Open the proj.win32/LesserPanda.sln
with Visual Studio and build
Open the proj.macosx/LesserPanda_macosx.xcodeproj
with XCode and build
Open the proj.ios/LesserPanda_ios.xcodeproj
with XCode and build
- Install
JDK
,ant
,android-sdk
andandroid-ndk
- Export NDK root folder to
PATH
- Open
proj.android
and run scripts
To make this step simplier, I've modified the cmake file to work with
the portable version from fips.
Simply use fips
to install emscripten
and follow the rest steps,
you'll get a working setup.
- Install
fips
andemscripten
- Export your
oxygine-framework
andemscripten
folder toPATH
- Open
proj.cmake
and run scripts
I'll try my best to keep the same API as the JavaScript version, but slightly adjusted to be better to use in C++.
Add a new system:
this->addSystem<lp::Gfx>();
this->addSystem<lp::Input>();
Spawn an Entity
:
auto player = this->spawnEntity<MyMarioEntity>(100, 100, "actors");