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

Report as inappropriate.

Testhintergrund6_thumb
TopInPut presents ...

2012/3/2

ICopter Greenfoot V0.5 Demo

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

619 views / 3 in the last 7 days

Tags: game simulation physics demo test

Your browser is ignoring the <APPLET> tag.
Testhintergrund6_thumbTopInPut

2012/3/6

But the speed is a bit to slow ;)
Testhintergrund6TopInPut

2012/3/6

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

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
402377_2911817076873_1304015802_3183781_998552265_n_thumbDuta

2012/3/6

Have you made any progress on this?
402377_2911817076873_1304015802_3183781_998552265_n_thumbDuta

2012/3/6

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

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.^^
402377_2911817076873_1304015802_3183781_998552265_nDuta

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
402377_2911817076873_1304015802_3183781_998552265_nDuta

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
402377_2911817076873_1304015802_3183781_998552265_nDuta

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
Testhintergrund6TopInPut

2012/3/9

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

See all comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.