[C3][Plugin] AirConsole

For discussion and help with the Construct 3 Plugin SDK

Post » Sun Jul 30, 2017 4:26 am

@cjbruce

These are all implemented, except for a very few, like

getServerTime() (there was a reason I did not implement it, can't remember)
editProfile() -> this one is controller exclusive
onEmailAddress -> this one is controller exclusive
requestEmailAddress -> this one is controller exclusive
onDeviceMotion -> this one is controller exclusive
vibrate -> useless, send a vibrate message and implement html vibrate on your controller. It is controller exclusive
setOrientation -> this one is controller exclusive, used at instanciation
showDefaultUI -> this one is controller exclusive

Constants are not to be implemented in Construct
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Sun Jul 30, 2017 12:18 pm

Psychokiller1888 wrote:@cjbruce

These are all implemented, except for a very few, like

getServerTime() (there was a reason I did not implement it, can't remember)
editProfile() -> this one is controller exclusive
onEmailAddress -> this one is controller exclusive
requestEmailAddress -> this one is controller exclusive
onDeviceMotion -> this one is controller exclusive
vibrate -> useless, send a vibrate message and implement html vibrate on your controller. It is controller exclusive
setOrientation -> this one is controller exclusive, used at instanciation
showDefaultUI -> this one is controller exclusive

Constants are not to be implemented in Construct


Nice! Of the remaining ones, I think setOrientation() is the only one that is absolutely necessary to make a game. Without this, controllers are stuck in portrait mode, which is really awkward for many games.

I'm not sure about editProfile(). I suppose it would be up to AirConsole if they want to require it.

I'm also not sure about onDeviceMotion(). I got some weird results trying to do this in C2. It seemed like AirConsole was overriding the C2 behavior, and making accelerometer controls not work at all for iOS. I suppose it is best to not implement onDeviceMotion(), and try to get accelerometer controls working entirely with Construct.
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
48
S
14
G
24
Posts: 401
Reputation: 16,650

Post » Sun Jul 30, 2017 1:44 pm

Ok, I started to add missing features for the controller. I added 3 plugin properties: Orientation, Sync time and Device motion. Will finish that soon, as soon as I understand how to use a combo property in the c3 plugins...

EDIT

Ok, this does the trick

Image
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Sun Jul 30, 2017 8:05 pm

Ok, I have started and almost completed a controller maker for AC in C3
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Mon Jul 31, 2017 7:36 am

The plugin is now on the official AirConsole repo. Find it there and enjoy AirConsole on your C3 projects!

https://github.com/AirConsole/airconsole-construct3
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Thu Aug 03, 2017 5:06 pm

Just passing by to say that the plugin works like a charm. Thank you for your effort :)
B
17
S
5
Posts: 16
Reputation: 1,191

Post » Thu Aug 03, 2017 5:47 pm

Cool, great! Thanks for testing out!
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Thu Aug 10, 2017 5:26 pm

This is great stuff, I have done a quick test and it is working good!

I have not read the whole wiki yet but if I build a controller in C3, can we send messages from the Screen to the Controller? Are all the Messaging Conditions works for both?

Thanks, once again great work, looking forward to experiment more on that!
B
21
S
6
G
5
Posts: 51
Reputation: 4,999

Post » Sat Aug 12, 2017 7:22 am

Thanks!

Well, you should be able to receive the messages on the controller, and it should work, as the messages come in from SCREEN. If you build a controller, you'd send message to deviceId 0 so the go to SCREEN. This is WIP and under design consideration, so I cannot yet guarantee everything works when it comes to build controllers
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

Post » Tue Aug 15, 2017 5:50 pm

AirConsole for C3 1.7.0.3 is out:
- Unbundled AirConsole API from the plugin as requested by AirConsole TOS, now using dynamic API load from external url
- Previewing always falls to mock-up version
- Mock-up outputs infos to console

https://github.com/AirConsole/airconsol ... ag/1.7.0.3
B
33
S
11
G
3
Posts: 226
Reputation: 4,326

PreviousNext

Return to Plugin SDK

Who is online

Users browsing this forum: No registered users and 1 guest