Tank You - Dech Demo (Java)

Tank You is supposed to be a round-based 2D vehicular combat game. The main libraries we use are Slick and JBox2D. For UI we use a slightly patched Thingle.

Image

This is not an actual game yet. It is intended to be shown here to find the worst bugs and to get a general impression of what the game could become when it's ready.

Webstart (Requires Java 6)

Please tell us what you think. We will read on here but you can also discuss on our page, it's up to you.

Some questions:
  • Does handling and control of a tank feel right?
  • What shall we do when a tank lands on its "back"?
  • What would you recommend for animated turning of turrets? At the moment, we just turn them immediately, and thanks to the symmetric shape no body changes, but eventually we want that to be animated (and ideally represented in the logic).
  • It is not visible in this demo, but a tank can push another one as far as it wants. Is there a way to avoid that?

Oh, to avoid confusion, we are two, 115volt and me (he should be registered here).
Quote:
(he should be registered here)


Yes i am 😉
Hi dudes,

nice screenshot, but in win7 it doesnt start, after setting the resolution.

Code:
java.lang.RuntimeException: org.newdawn.slick.SlickException: Failed to initialise the LWJGL display
   at org.hackaddict.tankyou.techdemo.TechDemo.main(TechDemo.java:116)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.newdawn.slick.SlickException: Failed to initialise the LWJGL display
   at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:375)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
   at org.hackaddict.tankyou.techdemo.TechDemo.main(TechDemo.java:110)
   ... 9 more
Hi,

this looks like an odd error of slick 2d (the graphic engine we use)
have you tried starting fullscreen or windowed?

The game works with 32bits per pixel,
is your desktop configured to the same color deepth?

Sometimes this error occurs when it's not and the game is started in window-mode.

If this is not the reason it could be win7
i don't have a win7 system here to check.

Would be nice if someone else with win7 could check.
Good start!

What do you use to make the levels?

I don't really like turning the turret with the arrow keys, couldn't you intergrate it with the mouse controls?

I would also like to see how it looked in a more realistic setting, i.e. desert or urban setting.
Michiel wrote:
What do you use to make the levels?
We wrote a small editor, but using it is not fun yet. Sometimes we had to change the source (when we wanted to place mines) and then change it back to create land mass again. Of course it will be integrated once we release a more advanced version.

Michiel wrote:
I don't really like turning the turret with the arrow keys, couldn't you intergrate it with the mouse controls?
I proposed making the tank always target at the direction of the mouse cursor, but then it would be too easy to aim, at least we think so. An option would be only targeting to the mouse cursor when it's in a certain range of the tank.

Michiel wrote:
I would also like to see how it looked in a more realistic setting, i.e. desert or urban setting.
We plan to make different land types like wood, ice, and so on. We used the skulls now just for fun 🙂

Thank you both for the feedback! I hope when Windows 7 will be released that bug will be fixed.
You stated in your starting post that it should become a round based game; does that mean it should be multiplayer over a network? If so I am very curious how you fare because my perception was (from posts I read about JBox2D) that this was very difficult if not impossible.

MentalFS wrote:
We wrote a small editor, but using it is not fun yet. Sometimes we had to change the source (when we wanted to place mines) and then change it back to create land mass again. Of course it will be integrated once we release a more advanced version.


Reason I asked was because I am using Inkscape to draw levels and I highly recommend doing so. If you want I could give you example code on how to do this.

MentalFS wrote:
I proposed making the tank always target at the direction of the mouse cursor, but then it would be too easy to aim, at least we think so. An option would be only targeting to the mouse cursor when it's in a certain range of the tank.


I get the notion of it being to easy. However, you could also make the turret move more sluggish to simulate a real tank. Maybe also have a little gravity working on the bullet, so long range shots require some adjusting. Lastly, the firing speed is really high at the moment.

But I think the tanks driver very good and realisticly and it has a heavy feel to it. Only time when things go weird is when the tank is spawned into geometry (i.e. blocks that fell onto other blocks, blocking the spawn point).

MentalFS wrote:
We plan to make different land types like wood, ice, and so on. We used the skulls now just for fun 🙂


Placeholder stuff rules!
Michiel wrote:
You stated in your starting post that it should become a round based game; does that mean it should be multiplayer over a network? If so I am very curious how you fare because my perception was (from posts I read about JBox2D) that this was very difficult if not impossible.

Turn-based networking is very easy, assuming you know how to do networking in Java; it's real-time networking that is difficult.
ewjordan wrote:
Turn-based networking is very easy, assuming you know how to do networking in Java; it's real-time networking that is difficult.


Lets assume I don't 😉 I know how to do http in Java and port communication with other programs but it kind of stops there. I know turn based games and real time games, has it got anything to do with that? I think you could serialize a World object and pass it to the other player after taking a shot. Is that it?
In first instance we wanted to provide roundbased as well as realtime gamemodes,
but as ewjordan mentioned realtime physics over network is very difficult (if not impossible) to achieve.
So in the moment we focus on the roundbased modes.
In this modes only one peer has (and is allowed) to manipulate the logic/physic-world and the remote peers 'only' playback,
wich makes it a lot easier (i won't say very easy though (at least not for us 😉 )).

Quote:
Reason I asked was because I am using Inkscape to draw levels and I highly recommend doing so.

Sounds interesting, but i don't really understand your suggestion 😳

At the moment our editor produces a xml-file among other things it contains vertices which form polygons.
This polygons are triangulate and the triangles are merged till a certain (configurable) max-size is reached,
what comes out are the landpieces you see in the demo.

Original thread: https://box2d.org/forum/viewtopic.php?t=3448