# BattleTanks: 2.5D Multiplayer Game

**URL:** <https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449>\
**Category:** Showcase\
**Created:** [July 10, 2019, 12:35am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449 "2019-07-10T00:35:54Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kotamigo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kotamigo/32/6248_2.png) [@Kotamigo](https://discourse.threejs.org/u/Kotamigo)\
**Post date:** [July 10, 2019, 12:35am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/1 "2019-07-10T00:35:54Z")

</div>

Hi!

Over the last year, I have been creating BattleTanks: [https://battletanks.app](https://battletanks.app)

The game is open source:

> **[DakotaLarson/BattleTanks-Client](https://github.com/DakotaLarson/BattleTanks-Client)**
>
> BattleTanks Client. Contribute to DakotaLarson/BattleTanks-Client development by creating an account on GitHub.

  

> **[DakotaLarson/BattleTanks-Server](https://github.com/DakotaLarson/BattleTanks-Server)**
>
> BattleTanks Server. Contribute to DakotaLarson/BattleTanks-Server development by creating an account on GitHub.

The board is a mess, but it’s where I am tracking ideas and progress: [https://trello.com/b/XkG9gNRn/battletanks](https://trello.com/b/XkG9gNRn/battletanks)

I am looking for feedback! What is good, what needs improvement, and what additional features do I need to add?

How quickly do you get bored with the game?  
How intuitive is the UI?  
What questions do you not have answered after playing the game for a few minutes?  
Is the game fun?  
Could you see yourself returning to the game?  
What additional features would persuade you to return more?

Fair warning, if it’s just you playing the game, you will be playing against some pretty bad bots.

The server is located on the east coast, US, so the game might be latent for some of you. More servers will be added if the game gains any sort of traction.

Thank you for any feedback. I sincerely appreciate it!

Mods / Admins, Is it possible to get a link to the game on this page? [https://threejs.org/](https://threejs.org/)  
If it’s possible what do you need from me? If it’s just an image, what dimensions are best?  
Thanks!

---

<div class="post-metadata">

**Author:** ![marquizzo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/marquizzo/32/25192_2.png) [@marquizzo](https://discourse.threejs.org/u/marquizzo)\
**Post date:** [July 10, 2019, 12:41am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/2 "2019-07-10T00:41:08Z")

</div>

This is so great! The gameplay is super smooth, what hosting service are you using? How much are you paying for hosting?

---

<div class="post-metadata">

**Author:** ![gui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gui/32/27258_2.png) [@gui](https://discourse.threejs.org/u/gui)\
**Post date:** [July 10, 2019, 2:03am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/3 "2019-07-10T02:03:01Z")

</div>

Congrats on shipping!  
It’s indeed very fluid, even on firefox linux.

**How quickly do you get bored with the game?**  
well, I was about to call it a day, but it did keep me on my desk for 10 more minutes.

**How intuitive is the UI?**  
Fairly clear I think. I was just confused at the beginning when looking from top as to why WASD wasn’t working. I didn’t realise yet I was in the queue and the game would only start when in first person view.

**What questions do you not have answered after playing the game for a few minutes?**  
I don’t think I understood what the items are. Are they new weapons or life? I was too busy chasing other tanks or trying to run away.

**Is the game fun?**  
Absolutely.

**Could you see yourself returning to the game?**  
Possibly. Although it seems like it would be limited. The other thing I wasn’t sure about is the controls. While they are for tanks and meant to be rigid, I think it’s more fun with very fluid movements.

**What additional features would persuade you to return more?**  
Possibly a single player mode? But that’s a different beast I know.

---

<div class="post-metadata">

**Author:** ![Kotamigo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kotamigo/32/6248_2.png) [@Kotamigo](https://discourse.threejs.org/u/Kotamigo)\
**Post date:** [July 10, 2019, 9:42am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/4 "2019-07-10T09:42:37Z")

</div>

@marquizzo Thanks! The front end is hosted onHostGator. It’s been a frustrating experience, but I get a database for free with no size limits and no bandwidth limits either.

$9 / mo I believe. The $2.75 “offer” they list is bullsh\*t.

Back end is hosted on Heroku. I get a 512MB ram server for free. If the game gets traction, I will switch to a vps pretty quickly. I have been looking at AfterBurst because again, unlimited bandwidth. Biggest issue is worldwide presence there. When I switch to VPS, I will want a presence in the US, Europe and East Asia at a minimum. I don’t even know if the game is playable in AU or India due to latency.

@gui Thank you so much for your replies! I’ll take note of that ambiguity when spectating 🙂 Glad it worked well on FF. I’ve had my fair share of browser compatibility problems over the last year.

---

<div class="post-metadata">

**Author:** ![xiaomingTang](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/xiaomingtang/32/2200_2.png) [@xiaomingTang](https://discourse.threejs.org/u/xiaomingTang)\
**Post date:** [July 10, 2019, 10:10am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/5 "2019-07-10T10:10:30Z")

</div>

I am in china, it even can’t play due to network latency, 2s later after I click, it fire. The game is very smooth(if I don’t “fire the hole”…)

---

<div class="post-metadata">

**Author:** ![felixmariotto](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/felixmariotto/32/5928_2.png) [@felixmariotto](https://discourse.threejs.org/u/felixmariotto)\
**Post date:** [July 10, 2019, 10:31am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/6 "2019-07-10T10:31:49Z")

</div>

**How quickly do you get bored with the game?**  
I don’t really have time now so it does not count

**How intuitive is the UI?**  
Intuitive. Didn’t try on my french keyboard, but mind AZERTY touches

**What questions do you not have answered after playing the game for a few minutes?**  
None that I can think of

**Is the game fun?**  
Yes pretty fun ! I don’t like the fact that you cannot watch behind you though, it seems un-natural and it’s frustrating.

**Could you see yourself returning to the game?**  
Yep

**What additional features would persuade you to return more?**  
new maps

---

<div class="post-metadata">

**Author:** ![Kotamigo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kotamigo/32/6248_2.png) [@Kotamigo](https://discourse.threejs.org/u/Kotamigo)\
**Post date:** [July 10, 2019, 12:48pm UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/7 "2019-07-10T12:48:39Z")

</div>

@xiaomingTang Thanks for taking a look. You know, I just thought of something. It actually makes no sense for me to wait on using a VPS. The game cannot expand to East Asia, Australia, or even the EU realistically speaking without decreased latency. I’ll look into that and see how much work it’ll be. Stay tuned 🙂

@felixmariotto Thanks for your answers 😃 Did you know you can hold secondary mouse button and the camera flips to look behind you? Not a perfect solution, but it might get the job done. More arenas for sure! There is a button on the left to allow users to create them. Maybe a reward for arena creation would generate more interest?

---

<div class="post-metadata">

**Author:** ![felixmariotto](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/felixmariotto/32/5928_2.png) [@felixmariotto](https://discourse.threejs.org/u/felixmariotto)\
**Post date:** [July 10, 2019, 2:24pm UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/8 "2019-07-10T14:24:05Z")

</div>

Just had a try at the arena creator. I was frustrated not to be able to zoom and rotate camera, and also you should not ask the size before, it should be something you tune during the creation process. First coz when you click on create arena it’s frustrating to get this input box, and also during the creation you may want to change your mind about the size. Also I personally would prefer the maps with a little more decoration, first it’s more entertaining, and also it’s easier to find your way, remember where came from, etc… Also a bit more juiciness would not be bad. Some ideas : make the tanks shiver when they shoot and receive a shoot, screen-shake, basic animation sprite when rocket touch enemy tank, decals on the walls when you scratch them with your tank… more output from user input.  
Aside from that, I live in Hong Kong and I had no lag at all the two times I tried.  
edit: had a try also at right-click to flip the camera, it’s not convenient at all

---

<div class="post-metadata">

**Author:** ![Kotamigo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kotamigo/32/6248_2.png) [@Kotamigo](https://discourse.threejs.org/u/Kotamigo)\
**Post date:** [July 11, 2019, 1:26am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/9 "2019-07-11T01:26:06Z")

</div>

@felixmariotto You should be able to zoom/move the camera when you switch to camera mode (use C).  
I see what you mean regarding size. It’s not as easy as it sounds to increase size dynamically, but I could potentially create some workaround if there is enough demand. Glad you had low latency! And thank you for your suggestions! I will put em on the board.

---

<div class="post-metadata">

**Author:** ![felixmariotto](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/felixmariotto/32/5928_2.png) [@felixmariotto](https://discourse.threejs.org/u/felixmariotto)\
**Post date:** [July 11, 2019, 5:23am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/10 "2019-07-11T05:23:17Z")

</div>

> [@Kotamigo](#):
>
> I see what you mean regarding size. It’s not as easy as it sounds to increase size dynamically

It’s not such a big deal…  
I did it for you here : [https://felixmariotto.github.io/voxel\_painter](https://felixmariotto.github.io/voxel_painter)  
Try adding cubes on the grid, and then change the grid size with the slider.

Here is the code :

```
var params = {
	size: 1000
};

var gui = new dat.GUI();

var stock = new THREE.Group();
stock.visible = false ;

gui.add( params, 'size', 100, 2000, 100 ).onChange((v)=> {
	
	// Change arena size

	gridHelper.geometry.dispose();
	gridHelper.material.dispose();
	scene.remove( gridHelper );

	gridHelper = new THREE.GridHelper( v, (v / 50) );
	scene.add( gridHelper );

	plane.geometry.dispose();
	plane.geometry = new THREE.PlaneBufferGeometry( v, v );
	plane.geometry.rotateX( - Math.PI / 2 );

	// Remove unwanted cubes

	for (let i=0 ; i<objects.length ; i++) {
		if ( objects[i].name == 'voxel' ) {
			if ( Math.abs( objects[i].position.x ) > (v / 2) ||
				 Math.abs( objects[i].position.z ) > (v / 2) ) {
				stock.add( objects[i] );
			};
		};
	};

	// Replace previously removed cubes
	
	for (let i=0 ; i<stock.children.length ; i++) {
		let cube = stock.children[i];
		if ( Math.abs( cube.position.x ) < (v / 2) &&
			 Math.abs( cube.position.z ) < (v / 2) ) {
			scene.add( cube );
		};
	};

});

```

Add this in the voxel creation part :

```
voxel.name = 'voxel' ;

```

---

<div class="post-metadata">

**Author:** ![Kotamigo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kotamigo/32/6248_2.png) [@Kotamigo](https://discourse.threejs.org/u/Kotamigo)\
**Post date:** [July 11, 2019, 9:26am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/11 "2019-07-11T09:26:40Z")

</div>

Thanks @felixmariotto. I’ll jot this update down too.

@Mugen87 Do you know who I can talk to regarding getting the game listed on [threejs.org](http://threejs.org)?

---

<div class="post-metadata">

**Author:** ![marquizzo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/marquizzo/32/25192_2.png) [@marquizzo](https://discourse.threejs.org/u/marquizzo)\
**Post date:** [July 11, 2019, 6:03pm UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/12 "2019-07-11T18:03:06Z")

</div>

@Kotamigo When visiting [threejs.org](http://threejs.org), the (Submit Project) button on the bottom-right links you to this very forum’s showcase tag. I think that’s the best thing you can do for now.

Getting placed on the landing page depends on whether the contributors think it deserves to be up there or not. I don’t think there is a petition system.

---

<div class="post-metadata">

**Author:** ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Post date:** [July 11, 2019, 6:35pm UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/13 "2019-07-11T18:35:31Z")

</div>

> [@Where to post threejs examples that could go on the main site "featured projects"?](https://discourse.threejs.org/t/where-to-post-threejs-examples-that-could-go-on-the-main-site-featured-projects/246/3):
>
> I tend to post everything I find (or is sent to me) over at [https://plus.google.com/+ThreejsOrg](https://plus.google.com/+ThreejsOrg) Then, usually once a year, I select the best that was submitted and I update the featured projects list.

---

<div class="post-metadata">

**Author:** ![Kotamigo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kotamigo/32/6248_2.png) [@Kotamigo](https://discourse.threejs.org/u/Kotamigo)\
**Post date:** [July 12, 2019, 2:09am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/14 "2019-07-12T02:09:21Z")

</div>

@marquizzo @Fyrestar Thanks for the info! Just a note that google + link is broken. Let me know if there is anything else I can do.

---

<div class="post-metadata">

**Author:** ![marquizzo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/marquizzo/32/25192_2.png) [@marquizzo](https://discourse.threejs.org/u/marquizzo)\
**Post date:** [July 12, 2019, 3:07am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/15 "2019-07-12T03:07:49Z")

</div>

Yeah, that post was written over 2 years ago, back when Google+ was still alive.

---

<div class="post-metadata">

**Author:** ![Usnul](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/usnul/32/2355_2.png) [@Usnul](https://discourse.threejs.org/u/Usnul)\
**Post date:** [July 12, 2019, 3:27am UTC](https://discourse.threejs.org/t/battletanks-2-5d-multiplayer-game/8449/16 "2019-07-12T03:27:05Z")

</div>

Last I checked, I was told to post with #showcase and wait for @mrdoob to have a look. So just be patient 😉
