[Plugin] AirConsole - local multiplayer for your game

0 favourites
From the Asset Store
"Easy Local Notifications" enhances games with customizable local notifications.
  • justifun I have forwarded your PM to our product manager (Still don't have enough reputation on this platform to answer ^^)

    - never tried NW.js

  • FraConsole - Haven't heard from your product manager yet.

  • justifun I am sorry - but he is super busy at the moment with the contest and our new promo video. I told him again and he hasn't forgotten you!

  • Hello

    I see no C2 plugin , just JS codes

    where's the C2 plugin ?

  • Any news on this? The ideas is very clever.

    FraConsole Can you please specify how the revenue share worksin your Call for Projects? Is your business model based on advertising? Or do you also offer premium content to the users?

    Thank you and congrats for the idea!

  • with this plugin, I can create a local multiplayer from one phone to another via wi fi?

  • I had this idea long ago and now we have it as airconsole. Definitely it has potential, but in the current form not so many will use it.

  • FraConsole I sent you a PM.

  • Current C2 plugin is based on AirConsole API 1.3. ADs are available from API 1.4 so we have to wait for AirConsole to update the plugin.

  • I'm trying to test the pong game that i got from this URL. (developers.airconsole.com/#!/guides/construct2#/guides/construct2) I uploaded the files to 000webhostapp.com. So I try to run the game in the simulator but the screen stays with the loading airconsole page. Please really need help with this so I can start working on my game.

    This is the URL ()

  • arod17pr it seems its because of https

    If you want you can upload it to: airconsole.com/developers

    which you will have to do anyways if you want to submit your game in the end to AirConsole.

    When creating your game, you will need to set a cover image etc. but it can be just a 512x512 placeholder image.

    You can update this data later on.

    TO EVERYBODY ELSE: I still can not reply PMs because my reputation is below 500 :/

  • FraConsole

    Yeah you are right. I installed a local webserver and it works perfectly. But I'm going to do what you said.

    Thank you!

  • FraConsole

    Is there any chance of a way to build a controller without any coding? Like only using the plugin? Can you update it to do so?

    And where exactly do i write all of this code?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I need help please. I do not get to operate the controller. The game loads on the computer screen, however I copied the following code in a file controller.html and the driver does not appear in the device:

    <html>

    <head>

    <!--<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>-->

    <meta name="viewport" content="user-scalable=yes"/>

    <style type="text/css">

    html, body {

    height: 100%;

    overflow: hidden;

    }

    body {

    background-color: #222;

    }

    button {

    margin-bottom: 1px;

    width: 48%;

    height: 48%;

    border: 0;

    box-sizing: border-box;

    font-size: 40px;

    color: #FFFFFF;

    background-color: #333333;

    outline: none;

    }

    </style>

    </head>

    <body>

    <div style="width:100%;float:left;">

    <button id="leftup">UP</button>

    <button id="rightup">UP</button>

    </div>

    <body>

    <div style="width:100%">

    <button id="leftdown">DOWN</button>

    <button id="rightdown">DOWN</button>

    </div>

    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

    <script type="text/javascript" src="https://www.airconsole.com/api/airconsole-1.3.0.js"></script>

    <script type="text/javascript">

    var air_console = new AirConsole();

    // Let the screen know we are here

    var sendHandshake = function() {

    air_console.message(AirConsole.SCREEN, {

    handshake: true

    });

    };

    air_console.onReady = function() {

    sendHandshake();

    };

    air_console.onMessage = function(device_id, data) {

    if (data.handshake) {

    sendHandshake();

    }

    };

    var down_event = isMobile() ? 'touchstart' : 'mousedown';

    var up_event = isMobile() ? 'touchend' : 'mouseup';

    $("#leftup").on(down_event, function () {

    air_console.message(AirConsole.SCREEN, {

    message: 'leftup'

    });

    });

    $("#leftdown").on(down_event, function () {

    air_console.message(AirConsole.SCREEN, {

    message: 'leftdown'

    });

    });

    $("#leftup").on(up_event, function () {

    air_console.message(AirConsole.SCREEN, {

    message: 'leftstop'

    });

    });

    $("#leftdown").on(up_event, function () {

    air_console.message(AirConsole.SCREEN, {

    message: 'leftstop'

    });

    });

    $("#rightup").on(down_event, function () {

    air_console.message(AirConsole.SCREEN, {

    message: 'rightup'

    });

    });

    $("#rightdown").on(down_event, function () {

    air_console.message(AirConsole.SCREEN, {

    message: 'rightdown'

    });

    });

    $("#rightup").on(up_event, function () {

    air_console.message(AirConsole.SCREEN, {

    message: 'rightstop'

    });

    });

    $("#rightdown").on(up_event, function () {

    air_console.message(AirConsole.SCREEN, {

    message: 'rightstop'

    });

    });

    /**

    * Returns true if device is a mobile device

    * {Boolean}

    */

    function isMobile() {

    if (navigator.userAgent.match(/Android/i) ||

    navigator.userAgent.match(/iPhone/i) ||

    navigator.userAgent.match(/iPad/i) ||

    navigator.userAgent.match(/iPod/i) ||

    navigator.userAgent.match(/BlackBerry/i) ||

    navigator.userAgent.match(/Windows Phone/i) ||

    navigator.userAgent.match(/Opera Mini/i) ||

    navigator.userAgent.match(/IEMobile/i)) {

    return true;

    } else {

    return false;

    }

    };

    </script>

    </body>

    </html>

    How do I have to create the driver?

    Thank you.

  • iherwis

    Sorry, you will have to code a little bit if you want to make a controller.

    In the same directory of your web-exported construct2 files, create a controller.html

    There are some examples at: github.com/AirConsole/airconsole-controls

    the plugin is currently being updated and showing ads will follow soon

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)