Android Extras (Micro Game Consoles/GPS/Keyboard/Audio)

Previous topic - Next topic

erico

Really great news Ian! By that I believe you now own 254 different console/handhelds? :nana: :booze:

Ian Price

No, it's only 253... And I'm not sure if they all work nowadays! :P
I came. I saw. I played.

spacefractal

inapp can been a bit complicered due various checking,but have tried to keep it simple in the end. For controllers, its just using command like that in a function:

Code (glbasic) Select

IF GameControllers("Up", 0) THEN RETURN TRUE // 0 = Player 1, 1 = Player 2


And doing this line, before or after your SCREENSHOW command:
Code (glbasic) Select

GameControllers("Update")


That asume of course you got the new SDK working, which can using the full SDK download from this link (this include a bit older ANDROIDEXTRAS throught):
Code (glbasic) Select

http://www.glbasic.com/forum/index.php?topic=9341.0


Howover if its a unknown controller, the game might want to remap it.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

Have you tried 3D objects on the Ouya yet ?

spacefractal

No, but howover game like shadowrun ran awesome which was nvidia optimized. So ouya seen very good to 3d graphics. I'm are to 2d coder throught.

I'm could test with some of the examples....
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad


erico

Quote from: spacefractal on 2013-Oct-05
...
No, but howover game like shadowrun ran awesome which was nvidia optimized. So ouya seen very good to 3d graphics. I'm are to 2d coder throught.
...

So, if we have some not so 60fps performance going on 2d on Ouyeh at full HD, maybe doing the 2d game in a 3d world could help? In case its native 3d is super fast.

spacefractal

60fps is possible. My games is just have heavy fillrate based and did have multiply issues when 3d surface used. So Is depend on the game made. I'm in java did set the surface set to 720p automatic. Ouya up scaling it's surface nice, much faster than off buffer...

Some ouya games is 60 fps, include a nice lowres 2d retro game.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

I've moved some of the posts regarding problems. Let's keep this thread on track as it's incredibly valuable. :)

I'm also making this thread sticky.
I came. I saw. I played.

spacefractal

Im have fixed some gamecontroller isues as well issues for v11.569, which should works nice. The newest version is in glbasic with Android API-14 and API-16 v4

Later im also include seperate, but my time is soon running out for this day, so im upload a seperated version tomorrow. Hopefilly fivesprite or Ian can update the first post to avoud eventuelly confuction.

PS. Im cant update the first post, this version was orinally by FiveSprite, even im also did some work too.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

If you add the new update here spacefractal, I'll put a link in the very first post and update it. :)
I came. I saw. I played.

spacefractal

I have fixed comply of bugs and got the sample project working again as well fixing some remap issues. The url for the new version (1.5.2) is the same dropbox as the previous.

Or here:
http://dl.dropboxusercontent.com/u/3236515/GreedyMouse/AndroidExtras.zip

Later today or tomorrow im include this in the sdk upgrade project (but will mention it trought)
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

various issues updated in AndroidExtras.zip (crashes and avoid irrerevante remap invoking). Also there is a SDK to much, so please remove the Leadbolt SDK fom Android\libs, which im completly forget. Im got some 1 star review due that, even its was unused....  :(
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

Quote from: spacefractal on 2013-Oct-04
inapp can been a bit complicered due various checking,but have tried to keep it simple in the end. For controllers, its just using command like that in a function:

Code (glbasic) Select

IF GameControllers("Up", 0) THEN RETURN TRUE // 0 = Player 1, 1 = Player 2


And doing this line, before or after your SCREENSHOW command:
Code (glbasic) Select

GameControllers("Update")


That asume of course you got the new SDK working, which can using the full SDK download from this link (this include a bit older ANDROIDEXTRAS throught):
Code (glbasic) Select

http://www.glbasic.com/forum/index.php?topic=9341.0


Howover if its a unknown controller, the game might want to remap it.

I've just introduced this to AquaVenture and the game crashes/returns to "PLAY" screen when you press the control stick or  D-Pad up. :(

Incidentally, what are the keycodes/names/values for the other non-direction keys/buttons?
[EDIT] Found in the Android Extras code.
I came. I saw. I played.

spacefractal

#44
Do you uses the newest version of GameControllers.java?  There was some crash issues I'm have fixed recentely for a week ago. So make sure its updated. Im forget to include a version number, but its was in public void setPlayerID(int currentPlayer, String name) last time, which might tried to access an -1 to a array (which is of course not possible).

when you have updated both GameControllers.java and SDLActivity.java, let me know again. If its still crash, im need the LogCat, so im have have change to checkout why it crash:

Compiler\platform\android\bin\_Logview.bat
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/