I was going nuts trying to figure out why my moving blocks wouldn't change direction in the Android version (they worked fine in both Windows and iOS).
And it came down to the type of the variable I was using.
The 'if' statement that would trigger when to change direction was based on checking for the variable to be less than one.
The variable was defined as a char (which, in most systems, can be used as a number between -127 and 127). I was going for using the smallest variables necessary for each purpose.
However, in the Android world (built in cygwin with gcc), this comparison was not working when the variable got set to minus one.
But, as soon as I changed it to a regular integer, it was happy.
So, the lesson is:
DO NOT use 'char' and 'unsigned char' for variables that will be used in numeric operations (logic or math) if you want to keep your cross-platform programming working.
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master