Jump to content

Search the Community

Showing results for tags 'iosocket'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. I dont know where to start trying to get this problem fixed. It only allows 2 people per game so I am assuming when a certain player sends there move. The other player is not receiving it. http://runechart.com:3000/newBlock.html On another note, different browsers are executing the code faster then others. IE will drop my blocks faster then Google Chrome. This is unrelated to the problem about synching the players moves, because I been doing the testing with the same browser. Of course when I use 2 different browsers, the boards get totally screwed up since the blocks are falling at different speeds on each browser. var the_date = new Date();var test1 = the_date.getTime();var stamp = the_date.getTime() + 200;function game_loop() { the_date = new Date(); test1 = the_date.getTime(); if(stamp <= test1) { if(player_move[0] != "") { Player1.checkMoveBlock(player_move[0]); player_move[0] = ""; } if(player_move[1] != "") { Player2.checkMoveBlock(player_move[1]); player_move[1] = ""; } the_date = new Date(); stamp = the_date.getTime() + 200; //move/drop/destroy blocks Player1.execu(); Player2.execu(); } Player1.render(); Player2.render(); // request new frame requestAnimFrame(function() { game_loop(); });}
×
×
  • Create New...