Topic: [TO DEVELOPERS] Porting to Android
A couple of weeks ago I bought a smartphone with Android operating system. I once heard that there is Android port of Teeworlds client. I was very disappointed when I learned that this port is abandoned and is not playable. I have some skills in both Java and C (mainly in Java) and can spend enough time to create port. Game UI will be extreamely simplified and rewritten in Java. SDL will only manage a single game session. It sounds simple, but very hard to plan things without clear understanding of source code. Of course, I can understand it myself.. After spending A LOT of time. But I think that well-designed game (which tw actually is) do not require full rewriting of source in order to create port. So I would be happy if developers respond few questions.. or just don't ignore me and guide on the right path. To begin, I need to know the answers to these questions:
- common questions -
1) What are THE MOST important classes defined in client's source?
3) What does game flow seem like?
2) Would there be any problems with separating UI and game logic?
- specific topics -
1) How does game client manage game lists and perform connection to selected game? I believe that it is possible to write 2 methods in C: one, invokable from Java code, to obtain a list and another like "connectToGame(someGameId)". Am I right or just crazy?
2) What is the easiest way to inject whole configuration data into game?
3) Is there any nonobvious dependencies between classes?
- other topics -
1) Sorry if my questions are unclear or malformed, so please provide at least any help.