BASIC

Author Topic: Android Extras (Micro Game Consoles/GPS/Keyboard/Audio)  (Read 58136 times)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
Really great news Ian! By that I believe you now own 254 different console/handhelds? :nana: :booze:

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
No, it's only 253... And I'm not sure if they all work nowadays! :P
I came. I saw. I played.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

MrTAToad

  • Guest
Have you tried 3D objects on the Ouya yet ?

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
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....
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

MrTAToad

  • Guest
Yes, give it a go!

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
...
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.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
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.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
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.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
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)
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
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....  :(
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
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.
« Last Edit: 2013-Oct-25 by Ian Price »
I came. I saw. I played.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3669
    • View Profile
    • Space Fractal
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
« Last Edit: 2013-Oct-26 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.