Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (582)
games submitted by our members
Games in WIP (503)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Multiplayer Tank Game - 32 vs. 32 Players (WebGL/WebSockets/LibGDX)  (Read 1793 times)
0 Members and 1 Guest are viewing this topic.
Offline noblemaster

JGO Ninja


Medals: 20
Projects: 9


Age of Conquest makes your day!


« Posted 2013-12-24 08:11:31 »

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!!!

Offline Dxu1994
« Reply #1 - Posted 2013-12-24 11:51:04 »

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

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 Smiley

Offline noblemaster

JGO Ninja


Medals: 20
Projects: 9


Age of Conquest makes your day!


« Reply #2 - Posted 2013-12-24 12:08:17 »

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  Grin

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Isvan
« Reply #3 - Posted 2013-12-24 20:19:42 »

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
Offline noblemaster

JGO Ninja


Medals: 20
Projects: 9


Age of Conquest makes your day!


« Reply #4 - Posted 2013-12-25 03:45:25 »

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.

Pages: [1]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (72 views)
2014-04-15 18:08:23

BurntPizza (68 views)
2014-04-15 03:46:01

UprightPath (79 views)
2014-04-14 17:39:50

UprightPath (65 views)
2014-04-14 17:35:47

Porlus (80 views)
2014-04-14 15:48:38

tom_mai78101 (104 views)
2014-04-10 04:04:31

BurntPizza (164 views)
2014-04-08 23:06:04

tom_mai78101 (260 views)
2014-04-05 13:34:39

trollwarrior1 (210 views)
2014-04-04 12:06:45

CJLetsGame (220 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!