This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for tanks

Return to tanks

A new version of this scenario was uploaded on Mon Dec 08 17:41:24 UTC 2008
qnanqingqnanqing

2008/12/9

i like the balistic effect and the ground (if destroyed) hmm, there are game like this, in the BASIC version
delmardelmar

2008/12/9

Good work. Maybe you could cut a bit of the green off at the bottom so that it is less tall and fits on the screen better. And maybe you could allow 'space' for fire as well.
computers.funcomputers.fun

2008/12/20

this is a nice game. I like how it teaches about angles. Is there a way for both players to go at the same time, not take turns? I'm trying to find a simple example of a 2 player game.
A new version of this scenario was uploaded on Sat Dec 20 16:23:42 UTC 2008
mjrb4mjrb4

2008/12/21

There's always a way ;) I'm not sure it'd be best however - though I guess that's mainly down to personal preference. delmar's suggestions would be good - the green at the bottom seems a bit excess at the moment and (seemingly my most common gripe) because of that it doesn't fit on my laptop screen! Also, if I attempt to move whilst the bullet's moving an error arises - might be something you want to look at!
papasmirfpapasmirf

2008/12/22

As to computers.fun's question (not sure how to respond to him best) u can simply comment out the cose in the fire button about taking turns and u'll also have to remove the checks inside of Tank and OtherTank with the keypress checks (I call the methods relating to turns in both). For mjrb4: I tried what u said and i didn't get an error on my screen. Yes for the moment I realize there is a bit of excess green but that is a small change i can do if i ever have time to work on it more =/
mjrb4mjrb4

2008/12/22

That's odd, does anyone else get it? The error I get is: java.lang.IndexOutOfBoundsException: X is out of bounds. It was: 1000 and it should have been smaller than: 1000 at greenfoot.GreenfootImage.getRGBAt(GreenfootImage.java:393) at greenfoot.GreenfootImage.getColorAt(GreenfootImage.java:380) at OtherTank.onGround(OtherTank.java:98) at OtherTank.checkFall(OtherTank.java:43) at OtherTank.act(OtherTank.java:21) at greenfoot.core.Simulation.runOneLoop(Simulation.java:200) at greenfoot.core.Simulation.run(Simulation.java:129)
programmerprogrammer

2008/12/23

I don't get an error, but when I do that, the game freezes
A new version of this scenario was uploaded on Tue Dec 23 20:47:11 UTC 2008
mjrb4mjrb4

2008/12/24

Chances are you probably are getting that error then, but you haven't got the java terminal window enabled ;)