PantsSleeve's Recent Forum Activity

  • russpuppy

    That is a great question! WebRTC was my initial choice. Unfortunately there is very limited support in the browsers on iOS for webRTC. There is a browser called Bowser that supports it, but the thought about CrowdGaming is that you should only need your smart phone and not have to download any specific app to make it work. Most smartphone browsers supports websocket, which is why I went with the nodejs websocket server. When the world is ready I'll look into doing this with webRTC

    http://caniuse.com/#search=webrtc

    http://caniuse.com/#search=websockets

  • Try Construct 3

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

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

    Thanks! I had my answer in preview while watching tv so I missed that you answered. More options are good

  • Hi! I'm also running this on a virtual windows machine on my mac. I'm using parallels, which is similar to VMware, if I remember correctly you can also use a bridged connection when setting up the network between your host machine and VM. This is the network setting that I'm using which allows me to connect to my VM from my Mac, and also connect to my VM with my smartphone/ipad etc.

    ---------------

    Other wise just do this.

    • Get the mac.s ip and add it to the prodUrl variable.
    • Add the server.js file as a file in the construct 2 project (so that it will be exported with the project).
    • Export from Construct 2 to some folder that you can access from your mac (so that don't have to copy paste anything).
    • Switch over to your mac, and open the terminal, cd into the directory where you exported the game to
    • type: npm install nodejs-websocket
    • type: node server.js
    • type: python -m SimpleHTTPServer 8080

    now you can browse: http://<ipOfYourMac>:8080 and everything should work fine. It will most likely run much better on the mac with the python Simple http server than it does on the VM, at least it does for me

    (or maybe it's just my mac being jealous that I spend so much time in windows?)

    use: cmd + . to stop the node and python webserver (you probably already knew that but I tend to forget those key combos so I'd figure I'll throw it in here).

  • This is what's new in the next release:

    • Avatar (controlled character) is visible in controller
    • Score tracking, in main game highest score = first place
    • Added animations, and changed sprites (in the example game collectItems).

    Server

    • Cleaned up the code, removing quite a bit of unused code.
    • Some optimizations to let the most common actions execute quicker

    ----------------------------------------

    Also since the first "Setup" video, I've changed so that you no longer need to separate construct 2 instances. The controller and the game are both in the same capx-file. In short the setup should be:

    • Install Construct 2
    • Install Nodejs
    • restart computer (if needed)
    • open a command prompt (winkey+r and type cmd)
    • type: cd "C:\Games\CrowdGaming Beta-v3" <----------- path to the directory where you have the CrowdGaming beta pack.
    • type: npm install nodejs-websocket
    • type: node server.js

    the server is now started, to stop it, click on the command prompt window and hit ctrl+c

    • Start Construct 2 (Run as administrator) set up so that you can preview over lan
    • Open the event sheet called Start and change the variable called "prodUrl" to match your ip (do not remove the port number, :8002)
    • You may need to restart Construct 2 once if you changed the preview on LAN address, setting
    • Run Construct 2 as Administrator
    • Make sure you are in the "Start" layout when you hit "Play"
    • The first browser-tab will be the MainGame, the following will be controllers, if you access the same address with a smart phone that too will be a controller.

    The test/development-cycle is very quick once you have done this initial setup, because you can code you changes and hit play and instantly play the game.

  • Amadeus

    I'm really glad to hear, I agree with you that this kind of concept opens a lot of possibilities, and turn based games are definitely one of them! I'm in the middle of some modification of the CrowdGaming server and also some tweaks and updates to the capx-file. It should be finished on pretty soon (some time between today and friday). I could give you access to the 2.1 beta pack, but I think it's better if you wait for the next release. I'll send you the link when it's ready.

    Can you PM me your email address I don't think I got it in the last PM?

  • rocky53204 thank you testing and for your feedback, and please keep the feedback coming

    Yes there was a big change, based on the feedback from rocky, I've switched it to a single capx-file. The first client that connects becomes the main game and the following clients to connect are all controllers. I will make a new video and replace the old one.

  • Version 2 of the CrowdGaming beta was just released! There is still open slots in the beta program, leave a response here if you want to join and I'll contact you and send you a link to the files.

  • rho KFC stefanos

    I've created a forum home for the CrowdGaming concept. I have a package ready and a video on how to get started, if you have time please have a look and comment:

  • Hi,

    I've completed the first beta release of a CrowdGaming concept! So what is crowd gaming?! Simply put it's people playing together using their smart phone as the controller, over a local wireless network! The cool thing is that you build the controller in construct 2 and you build the game in construct 2 as well!

    But there must surely be some complex woodo stuff connecting the two?

    Well... there is a nodejs game server that let's the controller talk to the game. The nice thing is that you only have to start it and stop it, the coding has already been taken care of.

    Controller:

    You can change the look and feel of the controller and even extend it to send different actions.

    Game:

    There is an event sheet called engine that does all the heavy lifting with interpreting the actions sent by the controller. To build your own game simply create a new layout and add an event sheet that includes the engine event sheet. An example game is included that shows how to do this.

    Inspiration:

    What could this be used for? Connect the computer running the MainGame to a big screen or projector, build a game where people get a random instrument when they connect with their smart phone, now loads of people could make awful music together, and have loads of fun! Build a dynamic backdrop for a concert where people can influence the graphics shown or vote for the encore. Office events, to promote products in public, let your imagination run wild

    A beta release will be out on the Scirra store when we have finished the test period, but we would love to hear some feedback about the project: is this a good idea? Is it the best idea ever? Which features would you like to see?

    Note:

    This can be setup to work on Linux, Mac or windows. But it's easiest on windows because you don't have to export to html5 to test the game.

    https://youtu.be/vONL80sKAyc

  • stefanos I'm back on this project again, I'm currently working on optimizing the controller and main game templates so less data is sent. I'll most likely upload this to the scirra store, first it will be offered as beta for a a buck or two and later when stable it will be at a slightly higher price.

    If made properly I think this has great potential within the scirra community, with loads of cool games waiting to be made for public places.

  • Glad you like it and good luck with your project!

  • I do not understand what you are trying to achieve, could you give more details?

PantsSleeve's avatar

PantsSleeve

Early Adopter

Member since 2 Oct, 2012

None one is following PantsSleeve yet!

Connect with PantsSleeve

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies