Build Status
windows | mac | linux | emscripten | iOS | Anodroid |
---|---|---|---|---|---|
Here comes Yet Another Portable Retro Engine(yapre)!
It is a toy project for everyone to make retro games on any platform(for now Windows, MacOS, Linux, emscripten, iOS and Android are supported) using C++ and lua.
Try the demo app in your webbrowser by typping yapre.run in your address bar!
> git clone --recurse-submodules -j8 git@github.com:wo1fsea/yapre.git
> cd yapre
> .\build_scripts\build_windows.bat
> git clone --recurse-submodules -j8 git@github.com:wo1fsea/yapre.git
> cd yapre
> sh ./build_scripts/build_mac.sh
> git clone --recurse-submodules -j8 git@github.com:wo1fsea/yapre.git
> cd yapre
> sh ./build_scripts/build_linux.sh
> git clone --recurse-submodules -j8 git@github.com:wo1fsea/yapre.git
> cd yapre
> sh ./build_scripts/build_ios.sh
> git clone --recurse-submodules -j8 git@github.com:wo1fsea/yapre.git
> cd yapre
> sh ./build_scripts/build_ios_simulator.sh
> git clone --recurse-submodules -j8 git@github.com:wo1fsea/yapre.git
> cd yapre
> sh ./build_scripts/build_android.sh
> git clone --recurse-submodules -j8 git@github.com:wo1fsea/yapre.git
> cd yapre
> sh ./build_scripts/build_emscripten.sh
> sh ./build_scripts/run_emscripten.sh
Init()
Deinit()
Update()
yapre.platform
yapre.Exit()
yapre.AddTimer(time_ms, callback_function)
yapre.Beep(freq, duration_ms)
yapre.RenderSize(width, height)
yapre.SetClearColor(r, g, b, a)
yapre.DrawSprite(texture_path, x, y, z, width, height, rotate, r, g, b)
yapre.BindKeyboardInputCallback(key, callback_function)
yapre.UnbindKeyboardInputCallback(key)
yapre.BindMouseInputCallback(key, callback_function)
yapre.UnbindMouseInputCallback(key)
yapre.BindTouchInputCallback(key, callback_function)
yapre.UnbindTouchInputCallback(key)