Report as inappropriate.

TopInPut presents ...

2012/3/2

# ICopter Greenfoot V0.5 Demo

Space to fly.
Stages comming soon.
(This is just a simulation. ;) )

1284 views / 5 in the last 7 days

Your browser does not support the canvas tag.
TopInPut

2012/3/6

But the speed is a bit to slow ;)
TopInPut

2012/3/6

int speed = 7; int vSpeed = 2; int gSpeed= 1; int jSpeed = -3;
TopInPut

2012/3/6

speed = Speed, vSpeed = vertical Speed gSpeed = acceleration of the Copter while flying up or falling down ^^ jSpeed = "Jump" Speed, its just like vSpeed, but it takes you up
Duta

2012/3/6

Have you made any progress on this?
Duta

2012/3/6

I know about variable speed by the way :) I just hadn't decided whether I actually wanted it or not
TopInPut

2012/3/7

Take it. ;D Your one is better than mine. ;) Cause im a beginner with Greenfoot and I have to lern much. :D Thats my first try of a simulator.^^
Duta

2012/3/7

Keep going with it! :) I'm sure you'll make a good - even better - job of it, than I did with my hastily shoved together scenario. As I've just finished a big batch of homework I have a few minutes so I'll start coding the new speed system now
Duta

2012/3/7

so I made this code (yInc and boost are double's, and initialized to 0) yInc += 0.3; //Gravity if(Greenfoot.isKeyDown("space")) { yInc -= boost; boost *= 0.97; } else boost = 1.0; //Initial boost. setLocation(getX(), getY() + (int)Math.round(yInc)); Its playing a bit too sluggishly at the moment... I'll keep experimenting :P
Duta

2012/3/7

Ignore that comment, I decided that actually once I was used to it it wasn't too bad. I've updated the scenario and will see what people think
TopInPut

2012/3/9

Nice code.;D I made a game named "The NimGame". You know that? ^^ Thats really tactical. ;)