rexrainbow's Recent Forum Activity

  • 1. javascript has "array", and "object" (hash table)

    2. I used JQuery only when it needs to have a html element. (But not all environments support JQuery I think.)

    3. Yes, since C2 only has number and string type, JSON (string) could be used to store the date structure.

    4. Yes, they all could be used.

  • Ashley

    Thanks for replying. Since node.js is DOM free, form control is not necessary at all, even no canvas in node.js.

    Or designer could run (linux) node-webkit export on server machine. It is another solution maybe.

  • I had made a multiplayer turn based game -Gomoku (five in a row) before.

    It is just a possible solution, I am not sure this framework could be suitable for all cases.

  • Ashley

    ( It might be discussed before. )

    Since C2 could create multi-players game by using multiplayer/websocket plugin, it also could be used to create a host/server -- it is just another special client.

    It might be possible to deploy this exported client on node.js server (not node-webkit exported), by pure javascript code without any html element. Other logical things like collision, plugins, behaviors would be the same as normal html5 export.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • PixelImpact

    The visible area is 10x10 in this sample. But the whole board is 10x20. The top 10x10 is prepared for falling down.

    Modify board size in properties table of rex_board object (it is 10x20 default). And change the most left-top position in properties table of rex_squareTx object, field "X at (0,0)", "Y at (0,0)".

  • kmsravindra

    I had tried sync canvas by URI in this test case before, the data is too large to sync in real-time.

  • DuckfaceNinja

    You are welcome.

    I also use rex_fnCallPkg plugin to create a callback saved into a string variable.

  • Here is a test case of sync-canvas using firebase.

    • drag at right canvas to draw
    • left-top canvas shows current color, click it to clean right canvas

    Open two (or more) client to see the sync.

    It syncs the canvas by broadcasting drawing commands in a JSON string created by rex_fncallpkg plugin.

    It is possible to sync canvas in C2's MP with the same way.

  • PixelImpact

    This sample destroys chess by picking it, so you could check frame index of each chess.

    For example, insert events at event sheet - "FSM-match3-ELIMINATION", line 1.

  • keepee

    Objects or behaviors all could do something before and after events. Most of them ran before events, only few behaviors ran after events.

    For example, official pin behavior would set related position after events to ensure that the changing of position of pinned object had done.

  • keepee

    It's because that the behavior is running before events in a tick.

  • I am learning firebase and wrapping it into C2 plugins.

    Firebase also could support collaboration (firepad.io), and more backend features. Hope I could release my plugins soon.

    BTW, parse is also a useful backend service.

rexrainbow's avatar

rexrainbow

Early Adopter

Member since 4 Apr, 2011

Twitter
rexrainbow has 84 followers

Connect with rexrainbow

Trophy Case

  • 13-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies