TankArena - First multiplayer Game

Try it here:
Webplayer
or download here:
Standalone (7,3mb, Windows only)

Current Todo:

  • Create/fix leaderboards
  • Make it possible to switch teams / switch out of and into spectator mode
  • Make tanks explode on death and leave a burnt smoking tank that will decay over time (properly just slowly sink into the ground and disappear).
  • Bugfixing

Future Todo:

  • Chat!
  • Redo the tank-model
  • Create multiple maps to choose from
  • Create 3 different tanks in total to choose from, with different attacks and speed ect.
  • Arrange the servers according to name/players on server/current map.
  • Make it possible for the host to switch map during a game.
  • GUI
  • More bugfixing!

Update:
Added secondary weapon- Missiles:

The Missile get’s semi-homing after a certain time, so they’re good at long-range, but not so much at close combat. They also cause a longer global cooldown.

  • Added missiles, can be fired on the right mouse-button.
  • Changed the map layout
  • Changed the in-game cursor
  • Changed the camera to move towards the aim, allowing you to see further in the direction you’re aiming.
  • Added a leaderboard, but it dosn’t show anything yet, because i have to redo the whole thing after i figured out why, i’ll get around doing that.

Original post:
So after playing around with unity for a while, i decided to learn how to make a multiplayer game, and i actually found it way easier than i thought it would be :slight_smile: Still it’s hard to figure out why the stuff won’t work at times.

But i managed to make a game. A simple arenagame with Tanks.

You can create and join a server at this point, it will register your game at the unity masterserver so after creation you can just find the game under “join game”.

Try it here:
Standalone (7,3mb, Windows only)
Webplayer

The game turned out great i think, the lag isn’t bad and it actually works the way i intended(still with a few bugs) :slight_smile:

Screenhots:

Menu:

In-game:

Controls:
Movement: W,A,S,D
Aim: Mouse
Fire: Left mousebutton.

At this point i still got a few things to do:

  • Add a chat
  • Cosmetic stuff (the menu’s and some propper in-game GUI)
  • Add a ingame leaderbord
  • Make it possible to switch team / select team after selecting spectator-mode
  • Make it possible to password-protect a game
  • Make it possible to scroll down through the serverlist when searching for a server in the “join game”
  • Make it possible to order the servers by name / players on server
  • Make it possible to search for a specific server by name.
  • Perhaps add a alternate fire
  • Perhaps add a few different tanks to choose from
  • Add powerups / healthglobes / healthregen at some point (center of current map?)
  • Multiple maps
  • Networking - if a player joins after a while, it will spawn all explosions and bullets fired earlier during the game.
  • Bugfixing!!

that’s all for now. Hope you will enjoy the game and perhaps post a bit feedback :slight_smile:

props on making a tank game! :smile:
But for this game size you should really make a webplayer.

@Cheburek - Tankgames never gets old eh? :smile:
I actually didn’t think the multiplayer-part would work in a webplayer, so here you go.
Webplayer

i do wonder if you can change the resolution when going to full screen in the webplayer? it’s like 1024 x 768 i think. Perhaps if there’s a way to make it fit the current system resolution on fullscreen or something?

Anyways a few updates as well.

Added secondary weapon- Missiles:


The Missile get’s semi-homing after a certain time, so they’re good at long-range, but not so much at close combat. They also cause a longer global cooldown.

  • Added missiles, can be fired on the right mouse-button.
  • Changed the map layout
  • Changed the in-game cursor
  • Changed the camera to move towards the aim, allowing you to see further in the direction you’re aiming.
  • Added a leaderboard, but it dosn’t show anything yet, because i have to redo the whole thing after i figured out why, i’ll get around doing that.

This is how I set fullscreen in the webplayer:

Also you can disable the right click popup: in the webplayer build settings select “no context”.

It is already quite cool and missile allows for interesting tactics. I wish I had something to shoot at :sunglasses:

@Snorkel - Thanks! I just disabled the context menu for now and uploaded the new html-file with the fix, so you’ll be able to use the missle without any problems in the webplayer :slight_smile:

And yeah, the game is designed to play against others, so it’s more fun to shoot at something :wink: I have tried it against a few of my friends, and it’s quite fun actually, but most stuff gets even more fun when it’s against your friends / other players :slight_smile:

Hey just played vs you :stuck_out_tongue:
Was fun but sometimes I aim at your tank and my bullet goes over it instead of hitting.
That is the only complaint so far.
Chat would be nice and maybe some kind of objective like capture the flag.

Yea i noticed you were online, was fun to test it a bit against you yes :slight_smile:
And i actually guess your right, most of the time when im testing stuff, it’s just vs myself, and it’s not hard to hit a stationary target.
And the Capture the flag idea is great… i actually think i will implement that at some point :slight_smile: