The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Yet another SDL2 based game in the play store
Martin Gerhardy
Guest

Hi,

I've released yet another game in the google play store. Just an
experiment what is possible with the codebase of my first game (CaveExpress)

https://play.google.com/store/apps/details?id=org.cavepacker

If you like it, please rate it - and as always - the code is on github
at: https://github.com/mgerhardy/caveexpress (yes, same repository as
CaveExpress)

I hope the code can serve someone as example for SDL2 based games - and
don't hesistate to report silly coding errors if you stumple upon them.

I'm currently only providing android binaries (via appstore) but it
works on windows, linux, macos, nacl (tested) and theretically on ios.

Have fun and a lot of puzzle hours with it.

Regards
Martin
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
compile from windows on android
zellJunior


Joined: 29 Mar 2014
Posts: 3
Hi, can you help me to compile my game for android. I was trying to do this under eclipse, tutorial from http://www.dinomage.com/2013/01/howto-sdl-on-android/
it gives me error that egl/eglplatform.h not found. Some time ago, I don't remember how, but I managed to get rid of this error, but when I run app in the emulator, it crashed.
can you guide with some steps, or if you need more info about what I did I can write it.
ruler501


Joined: 14 Aug 2014
Posts: 26
Location: Dallas, Texas
You need to specify a platform target in Application.mk
Yet another SDL2 based game in the play store
M. Gerhardy
Guest

Sorry. I dont understand. Do you have problems compiling or running the game. Application.mk is autogenerated by the Makefile.
Martin Am 15.08.2014 18:07 schrieb "ruler501":
Quote:
You need to specify a platform target in Application.mk


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

ruler501


Joined: 14 Aug 2014
Posts: 26
Location: Dallas, Texas
I was replying to zellJunior

The problem he is describing comes from not having

APP_PLATFORM := android-{whatever}

in your Application.mk
zellJunior


Joined: 29 Mar 2014
Posts: 3
thank ruler501, it helped, but when I open my compiled project in eclipse, I have some errors in SDLActvity.java.
RE: Yet another SDL2 based game in the play store
ruler501


Joined: 14 Aug 2014
Posts: 26
Location: Dallas, Texas
zellJunior wrote:
thank ruler501, it helped, but when I open my compiled project in eclipse, I have some errors in SDLActvity.java.


I don't use Eclipse so I can't help there. I just use cli and Code::Blocks