Multiplayer Tank Game - 32 vs. 32 Players (WebGL/WebSockets/LibGDX)

I tried to create a multiplayer tank battle game. It’s based on LibGDX using the HTML5-backend to compile to JavaScript. I am aware the showcase says ‘no javascipt’ but this is Java-related. I can provide an executable JAR or so as well if it is really needed (proof)? The server is implemented in Java using Jetty.

In any case, I should warn you that this is more of a prototype/alpha. To try it out just point your browser to the web page below. It takes about 1-2 minutes to load (it looks like it’s not doing anything at the beginning; just wait). You will be connected to the server automatically, there is no login or anything. Make sure your browser supports WebGL (Chrome, Firefox, Safari with WebGL enabled, most likely Opera and possibly IE 11+).

What the game concerns; you currently can move your tank around and shoot other players. Right now, there is only 1 room setup allowing for a 32 vs. 32. Not sure if 64 players per room is feasible networking-wise but we’ll see. There is chat too.

Request for Feedback
With this post I am actually hoping to get some feedback. Not sure how much interest there is in such a game?

  • Would you be interested in the continued development of the game assuming all the quirks/problems will be fixed?
  • What type of game play would you prefer (e.g. Capture the Flag, etc.)?
  • It’s a tank game but it could as well have foot soldiers, zoombies etc. Preferences?
  • What ping do you get (how many players were in the room at that time)? What FPS?
  • Assuming the game has loaded and you are playing for 1+ minute, does everything appear smooth?
  • Would you play it again? Why would you play it again?
  • Other comments?

Current Shortcomings
This is a prototype so the following things aren’t quite up-to-par (I can probably fix most but it’s going to take time).

  • The tank only has 8 directions: I wanted more but unfortunately that was the only suitable graphic I had. Also, the turret for the tank doesn’t rotate separately what I think would be cool to have. If there is enough interest, I’ll get an artist to help.
  • There is only 1 “boring” map to play on. Also, there is no real goal besides shooting all other players (better if they are not in your team :-).
  • The game tends to “hang” for the first 20-30 seconds when you play. It especially hangs when it tries to load the sound effects. Also, the sound effects don’t play as nicely in the browser compared to when I run the game as a standalone app on my computer. In any case, after everything is loaded it seems to run smooth (at least for me).
  • The game works best in Chrome/Firefox. I haven’t tested in Opera. It doesn’t work on IE 10 but it might work in IE 11. It works on Safari (Mac) if you enable WebGL but it hangs a couple times at the beginning until all the sounds are loaded (after is fine). Might work in other browsers with WebGL/WebSocket support.
  • Firefox tends to hang when the game is loading. Just tell it to wait. JavaScript is single threaded so some stuff block not only JavaScript but appearantly the whole browser.
  • Fullscreen tends to work fine on Chrome/Firefox but doesn’t quite work as expected in other browsers.
  • Game credits are missing.
  • Let’s hope the server doesn’t die due to bugs. I have tested it but… (I’ll monitor it)

Game: Play in Browser

Screen:

Ohh, and yes LibGDX rules!!!

Interesting game, had a few bugs but I expected that as it was Alpha :slight_smile:

Running on 62-65 FPS constant, my specs are i7 4770K processor, Nvidia GTX 780 w/ SLI, ASUS Sabertooth Z87 MB, 16GB RAM and I have a SSD (not sure if that matters)

Firefox 6, Java 7 (although I think its WebGL not Java)

Also you need to fix the chat, but I think this game has potential :slight_smile:

Yeah, the chat definitely needs fixing. Need to increase message length and make it more readable.

Pretty nice specs you got there for your machine ;D

I was the one that you played with last day.

Game ran at a smooth 63 FPS , and I had about 83ms of ping.

Things I found :

  • Tapping A/D really quickly to turn doesnt work, you need to hold them down for a full quarter of a second be the tank turns

  • The : and ; keys and numpad did not seem to work for some reason. I have this keyboard if it helps : http://steelseries.com/us/products/keyboards/steelseries-6gv2#specifications

  • I was able to open up the search bar while typing, then because of this I could not leave fullscreen mode(Everytime I pressed “F” it would just type it in the search bar). The shortcut was ’ I think. I had to kill it with taskmanager

  • If the webscreen is has a scroll bar, pressing space will scrollit down every time. This is more of the brower thought

Yeah, I need more images for the rotation also. I currently only have 8 which is far too little. I wonder if 32 or 64 is better? Which one?

Keys: that’s odd that the : and ; wouldn’t work? I am simply using the key chars that are returned via LibGDX (which uses GWT). I think your keyboard should be fine! You can also enable fullscreen via the settings button. Nevertheless I’ll remap ‘F’ to something else. Ditto space bar. Also, in the long run it probably makes sense to let people choose key mappings.