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

Report as inappropriate.

danpost
danpost presents ...

2012/10/24

Space Flight Demo

The ship, which stays centered in the window, appears to speed up and slow down, while the stars move past, giving the appearance of being three dimensional. The ship can turn in any direction.

Use'up' and 'down' to speed up and slow down.
Use 'right' and 'left' to turn the ship clockwise and counter-clockwise.

4983 views / 7 in the last 7 days

4 votes | 0 in the last 7 days

Tags: space simulation demo with-source 3d danpost flight

This scenario is a member of: Demos by danpost


open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Wed Oct 24 20:10:16 UTC 2012 Changed star proximity variable to 'double' from 'int', giving a better '3D' appearance.
A new version of this scenario was uploaded on Wed Oct 24 21:09:59 UTC 2012 Decided the speed should be sent with the direction to the star's 'move' method (instead of calling the 'move' method multiple times each act cycle.
A new version of this scenario was uploaded on Wed Oct 24 21:22:05 UTC 2012 Decided the speed should be sent with the direction to the star's 'move' method (instead of calling the 'move' method multiple times each act cycle.
A new version of this scenario was uploaded on Wed Oct 24 21:54:20 UTC 2012 Broke down the star's movement code into less complicated steps so I could document it better and make it easier to comprehend how I made it work.
A new version of this scenario was uploaded on Thu Oct 25 14:56:36 UTC 2012 Finalized basic documentation.
Dragonslayer114Dragonslayer114

2012/10/25

you can't do anything at all. isnt very helpful except for a few moving specks... not this kid again... ^
A new version of this scenario was uploaded on 2020-10-31 11:05:20 UTC

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

Who likes this?

Hawx_ abdullah.haris91100 dragon_06 solokeh