Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 7234 times)
0 Members and 1 Guest are viewing this topic.
Offline noblemaster

« JGO Spiffy Duke »

Medals: 35
Projects: 11

Age of Conquest makes your day!

« Posted 2013-12-24 07: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


Ohh, and yes LibGDX rules!!!

Offline Dxu1994
« Reply #1 - Posted 2013-12-24 10: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 Spiffy Duke »

Medals: 35
Projects: 11

Age of Conquest makes your day!

« Reply #2 - Posted 2013-12-24 11: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 19: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 :
  • 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 Spiffy Duke »

Medals: 35
Projects: 11

Age of Conquest makes your day!

« Reply #4 - Posted 2013-12-25 02: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  

EgonOlsen (58 views)
2018-06-10 19:43:48

EgonOlsen (40 views)
2018-06-10 19:43:44

EgonOlsen (60 views)
2018-06-10 19:43:20

DesertCoockie (239 views)
2018-05-13 18:23:11

nelsongames (141 views)
2018-04-24 18:15:36

nelsongames (140 views)
2018-04-24 18:14:32

ivj94 (882 views)
2018-03-24 14:47:39

ivj94 (143 views)
2018-03-24 14:46:31

ivj94 (794 views)
2018-03-24 14:43:53

Solater (158 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!