bi4o4ek Posted June 4, 2016 Share Posted June 4, 2016 I made a simple multiplayer top-down shooter. Please try to play and give me a feedback. https://bykanov.ru/multiwar Description. Play against other players. Shoot and kill. Let blown body of your enemies sprinkle this battlefield. Control. Use the arrows on your keyboard to move and the mouse for aiming. Click or hold left mouse button to shoot. How it works. There is phaser.js on the client side. Nodejs, nginx - on the server side. I picked socket.io as a connection mechanism. Quote Link to comment Share on other sites More sharing options...
Umz Posted June 5, 2016 Share Posted June 5, 2016 Honestly, with a bullet that only goes this far the game would be far more thrilling if I had a knife instead so that's maybe an idea? Otherwise, please extend the bullet to travel a real distance and the camera should have the player more towards the centre so that you're not caught off guard when they appear so close to you. Quote Link to comment Share on other sites More sharing options...
bi4o4ek Posted June 5, 2016 Author Share Posted June 5, 2016 Thank you for feedback. I just has increased the bullet range by 40% and moved the camera further to the center. Quote Link to comment Share on other sites More sharing options...
tips4design Posted June 5, 2016 Share Posted June 5, 2016 I was alone on the server so I couldn't really test. I tried opening an incognito window but it kept disconnecting me from the other window. The game feels a bit laggy, do you do any interpolation/extrapolation? Quote Link to comment Share on other sites More sharing options...
bi4o4ek Posted June 6, 2016 Author Share Posted June 6, 2016 On 05.06.2016 at 11:23 PM, tips4design said: I was alone on the server so I couldn't really test. I tried opening an incognito window but it kept disconnecting me from the other window. The game feels a bit laggy, do you do any interpolation/extrapolation? You can open another browser. I made "User agent + ip" stupid check) It is laggy on full screen window. I don`t known how to fix it. The research is needed. I made a lot of interpolation for other players and async move for localPlayer with big cache of moves. Quote Link to comment Share on other sites More sharing options...
bi4o4ek Posted June 10, 2016 Author Share Posted June 10, 2016 I found the reason of movement lags. Phaser tweens are very laggy if we start them every update frame. I changed it to moveToXY function from arcade physics. And lags gone away. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.