Good News: Android Port

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Good News: Android Port

Post by Tank Program »

Busy times moving back to England and resuming my PhD. Lots of work to be done. Did manage to sqeeze in some Android development and port Armagetron for our gaming enjoyment.

Introducing Androgetron.

Screenshots:
Image Image
Image
User avatar
Ratchet
Match Winner
Posts: 779
Joined: Sat Mar 15, 2008 5:55 am

Re: Good News: Android Port

Post by Ratchet »

That's pretty damn sweet :D

& I love the epic promotion video. Great job!

Can't wait to try it out :P
Image
"Dream as if you'll live forever,
Live as if you'll die today." -James Dean
User avatar
Clutch
Shutout Match Winner
Posts: 1008
Joined: Fri Aug 28, 2009 5:53 pm
Location: A frozen wasteland

Re: Good News: Android Port

Post by Clutch »

I know your pain guy in the bottom right, corners suck
Boxed
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1876
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Good News: Android Port

Post by kyle »

Wow so much more fun to play it on my phone than on my PC.

Thanks guru3
Image
User avatar
Renegade
Core Dumper
Posts: 162
Joined: Wed Feb 06, 2013 7:44 pm

Re: Good News: Android Port

Post by Renegade »

I hope it's not another April fool's joke :d oh, dear, please say it ain't so
Image
XD|VIPer
Average Program
Posts: 76
Joined: Thu Feb 09, 2012 12:53 am

Re: Good News: Android Port

Post by XD|VIPer »

That will be good for a tablet :D

It can't be a joke, as there is download links
Nice video example, tank. And thanks tank for the release...
User avatar
sinewav
Graphic Artist
Posts: 6413
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Good News: Android Port

Post by sinewav »

This app is incompatible with your phone.
:/ I might get a new phone in a couple of months...

Also, Tank, please update the main site with this news. Tank You. Looking forward to trying it out one day, then playing it on the toilet at work when trying to avoid my inbox.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Re: Good News: Android Port

Post by Tank Program »

Clutch wrote:I know your pain guy in the bottom right, corners suck
I was playing bottom right. Timing turns is harder on the touch screen I think. :(
sinewav wrote:
This app is incompatible with your phone.
:/ I might get a new phone in a couple of months...
Sorry about this - Android 2.2 and up. That's the min version of most devices, and what my tablet that I used for testing runs.
sinewav wrote:Also, Tank, please update the main site with this news.
Done.
Image
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Good News: Android Port

Post by Light »

Can't tell if srs or trollolol. >_> Damn Apr 1st. Guess time to dl and find out.

/e Okay, so real. :P I had my expectations a little too high though. I assumed that online play and the ability to alter settings would be there. Hopefully it gets there. It would be really nice to be able to connect from mobile.

It's a nice start, but so far, I think GL Tron has it. This barely feels like AA to me.
User avatar
Z-Man
God & Project Admin
Posts: 11585
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Good News: Android Port

Post by Z-Man »

Thought process:
Oh, Tank's pulling another one of those.
Haha, people in the comments are going along with it.
Yeah, a real play store link. Big deal. Guess he put some effort into it to make a fake app.
WHA?
...
WHAAAAAAAAAAA?

Great job on all accounts. Runs really smoothly for me (Xperia Play), I just miss support for the real buttons :)
Curious: which parts are taken from the regular source? Neither any of the rendering nor UI, I can see that. Lack of rubber and different feel to turning and the camera may be just settings, but it smells like a full rewrite.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Re: Good News: Android Port

Post by Tank Program »

Z-man, you're correct. I have indeed pulled another one. ;)

Welcome everyone to probably my most involved and therefore most dissapointing April Fools' Day joke of all time - so few people replied! Almost no one questioned! Instead of properly porting Armagetron, I have written an Armagetron clone from scratch, hence the different name. All new AI, physics, camera, rendering (GLES), input, menu. Shared code consists of rModel.cpp lines 117 to 214 for model loading and that's it.

The idea was to trick everyone into believe Armagetron was "ported" to Android. Achieved simply by it look exactly like Armagetron. The Androgetron physics are all sort of "close enough" that it's believable that altering the Armagetron physics could result in similar play. If it looks and feels like Armagetron, is it Armagetron? In this case, no.

Porting Armagetron properly has some fundamental issues. First there's translation to GLES. Really, I don't think this is a huge issue. Some minor quirks you have to get used to but as near as I can tell it's pretty well the same in the end that it's easy enough to translate. All the tricky stuff is already done - such as working out what translations to use.

Let's assume we want to keep Armagetron in C++ on Android. Armagetron uses a gaggle of libraries at this point, which yes, most of them are nominally buildable with the Android NDK. It's still dependency hell, and the build system is nowhere near as nice as that of proper GNU Autotools. There's a more crucial problem, which I wish I could remember the proper name of. It boils down to Armagetron relies on the compiler including information about which objects are which classes internally (or something like that). The Android NDK strips this information out. Chunks of Armagetron would need to be rewritten to work around this or some heavy toolchain work would need to be done to switch out the NDK ARM compiler with one that actually does the necessary stuff. Of course, due to the build system being user-unfriendly, this is also difficult.

It boils down to from my point of view that, for me, porting Armagetron natively in C++ is a problem, with a lot of things I'm completely unfamiliar with involved. Alternatively there's rewriting Armagetron into Java - porting in the truest sense. This is another load of work involving not only porting engine code but working around all the libraries and either finding Java equivalents or writing Java equivalent functions as necessary. Not exactly easy, but from my point of view quite a bit easier. The problem becomes interpreting all the C++ which I may or may not properly understand into their Java equivalents (which I also may or may not understand) and getting it to all hang together. Friend classes anyone? Overall easier, but I also feel it's out of my skill range. So porting to Java is a problem too.

What I do have though is a rough idea of how Armagetron works. Go forwards, hit wall, die. I also have a rough idea of how to work in Java and in OpenGL. That leaves only the Android specific components of making a Tron clone as the unknowns. That's something I can get behind - it's much easier to learn one new thing at a time. So that's what I did and hence Androgetron.

Happy April Fools' Day!
Image
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Re: Good News: Android Port

Post by Jonathan »

Haha, nice one. I was wondering what this really was. It looked interactive on the video so I knew something was up, in the sense of reverse psychology on top of April Fools' Day. Its ambiguous feel was another red flag.
ˌɑrməˈɡɛˌtrɑn
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Good News: Android Port

Post by Light »

Jonathan wrote:Haha, nice one. I was wondering what this really was. It looked interactive on the video so I knew something was up, in the sense of reverse psychology on top of April Fools' Day. Its ambiguous feel was another red flag.
At first I thought April Fools!

Then I thought he was going to try and make one for real, and only had the beginning of it done. I hoped he would continue it to work with the multilayer servers, but didn't expect much.

Luckily, low to no expectations so not much reaction here. :P
User avatar
Renegade
Core Dumper
Posts: 162
Joined: Wed Feb 06, 2013 7:44 pm

Re: Good News: Android Port

Post by Renegade »

Knew it!

Fooled me once, shame on you. :d
Image
User avatar
Bytes
Round Winner
Posts: 219
Joined: Sun May 06, 2012 12:13 pm

Re: Good News: Android Port

Post by Bytes »

Androgetron, for those with no sexually discerning features.
Image
Locked