Discuss Scratch

dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

3D Spaceflight Simulator 0.0.78



TurboWarp Link

Thought I might catch your attention with emojis.

I am posting this because I know there are a lot of people on this site that like space
and/or spaceflight simulators, so I figured a decent number of you would want to see this.


Here is one of the first working 3D spaceflight simulators made on scratch.
You pilot a small ship through a scaled down solar system and get to explore how orbital mechanics work.
Similar to Kerbal Space Program, however the physics is very basic and only one vehicle without parts is available.
This is about the closest you will get to kerbal on scratch.

Current features include:______
- Realistic orbital mechanics/Orbital line drawing
- Time Warp feature
- Astronaut
- Black Hole with accretion disk similar to interstellar movie
- Realistic Gravitational lensing (Calculated with general relativity)
- Scaled down solar system for ease of travel
- Realistic Rigid Body rotation (intermediate axis thm/tennis racket thm/Dzhanibekov effect)
- Reaction control thrusters showcase
- Atmospheres with unrealistic light scattering
- Solar glare
- Ships in planetary shadow appear darker
- Cannon from the ship: still in beta; use at your own risk

Things I am aware about but have yet to add:______
- Shadows on planets/terminator line (Hard to draw them as triangles without them interfering with my current engine)
- Part system for buildable craft (will add hopefully in v2)
- Astronaut cannot walk on planets and can only use “Jetpack” (unacceptable i know, but will be fixed in next update)
- Game mode with realistically scaled planets (technically exists, but is hidden in the code because it is not finished.
See questions sprite to change the current solar system from 1 to 4)
- Asteroids
- Planets are barren and empty (I plan on adding features for this currently the
only object is a lone tree next to spawn)

Things I am aware about but decided not to add:______
- Realistic Black hole orbit physics (will remain Newtonian,
general relativity is hard, though the visuals should be realistic)
- Textures on the astronaut and ship (My 3D engine does not support this)
- Realistic collision with craft and planet (Collision math is very hard, so I have done simple physics.
If I can figure out the math for realistic collisions, I will add them in a future update)


If you have any suggestions on what to add let me know, I have been working on
this for a while and things are slow going, but I do have plans for
it in the near future.

I have started working on a second version that will be more realistic and focused on the
activities of an actual real-life Astronaut abord the International Space Station.
Progress is slow going however, due to the things mentioned earlier.

Screen Shots of Gameplay:
View from orbit:

Orbit map view:

Landed on planet near black hole:

Last edited by dspace1015 (Jan. 3, 2026 04:05:37)

dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

Bringing Up My Post so more people can see it
dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

Bringing Up My Post Again so more people can see it
Currently working on adding the planetary shadow line called the Terminator.
dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

Bringing Up My Post another time so more people can see it
Finished working on the terminator. I'm now working on adding ground detail.
dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

Bringing up my post again so more people have a chance to see it if they would like to.
Still working on ground detail, currently trying to figure out atmospheric drag and re-entry. I plan on making this a spaceflight simulator with realistically scaled planets, decent physics and real life spacecraft/aircraft. If any of you that see this have suggestions or ideas let me know.
dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

Bringing up my post once again because I know more people might want to see this.

Working on adding save codes and a part system, which will allow for custom solar systems and vehicles.
Once I get this update working and more polished, I will publish it to the current project.
In the meantime, if you think of anything else that would be cool to include in the game let me know,
just be aware I will be slow to add things.
dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

At this point I'm using this post as a dev-log. Recently I added eclipses and I'm still working on the parts system, but so far its coming along nicely, just slowly.
Snapshots of progress but not currently published yet:
Space Station entering night time over Real scale earth:

Shadows on planets and eclipses:

Parts system test: (each astronaut is a part rigidly attached to main craft)

Last edited by dspace1015 (April 29, 2026 18:06:25)

Tsarjosh
Scratcher
88 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

dspace1015 wrote:

At this point I'm using this post as a dev-log. Recently I added eclipses and I'm still working on the parts system, but so far its coming along nicely, just slowly.
Snapshots of progress but not currently published yet:
Space Station entering night time over Real scale earth:

Shadows on planets and eclipses:

Parts system test: (each astronaut is a part rigidly attached to main craft)
Thats so cool!
dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

Tsarjosh wrote:

Thats so cool!
Thanks man. I'll do my best to keep working on it but things are still slow going at the moment. Ill try post any new updates here before I am able to release them back to the project.
OllyMonster
Scratcher
10 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

i am actually so excited to see the new update, you are PIONEERING the space flight part of scratch, i have genuinly dreamed of a 2d space flight simulator but had my expectation abolutly SURPASSED by this project. including those DANM ATMOSPHERES! how did you even optimize the SO WELL? but anyways keep up the good work!
OllyMonster
Scratcher
10 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

have you also thought about doing N-body physics rather than patched conics or whatever its called?
dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

OllyMonster wrote:

i am actually so excited to see the new update, you are PIONEERING the space flight part of scratch, i have genuinly dreamed of a 2d space flight simulator but had my expectation abolutly SURPASSED by this project. including those DANM ATMOSPHERES! how did you even optimize the SO WELL? but anyways keep up the good work!

OllyMonster wrote:

have you also thought about doing N-body physics rather than patched conics or whatever its called?
Glad you are as excited as I am. I have thought about doing N-body physics but there are too many issues with it that I don't know how to fix at the moment. Right now I will just stick with the patched conics because it is the easiest system to implement time-warp with.

For the atmospheres you can thank @Catzcute4 (Unfortunately he has been inactive for a while now) who pressured me to implement them in the first place. I made them work by using a modified method seen from this video: Coding Adventure: Atmosphere and the main reason they render so fast is that they have a lower pixel density. You can change the atmosphere resolution in settings but unfortunately really good looking atmospheres make the framerate drop. I will keep posting here as I make more progress but things are currently slow going still.
dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

Added RCS part and moved the attitude control code to deal directly with them. Same with rocket engines. RCS and Rocket Engines each remove fuel from their attached fuel tanks with the option for infinite fuel. Different fuel types like Monopropellant or Methalox and hopefully more are planned to be included.
Demo of current parts in previous solar system:

Graphics are subject to change, this is just a demo for functionality.
OllyMonster
Scratcher
10 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

dspace1015 wrote:

OllyMonster wrote:

i am actually so excited to see the new update, you are PIONEERING the space flight part of scratch, i have genuinly dreamed of a 2d space flight simulator but had my expectation abolutly SURPASSED by this project. including those DANM ATMOSPHERES! how did you even optimize the SO WELL? but anyways keep up the good work!

OllyMonster wrote:

have you also thought about doing N-body physics rather than patched conics or whatever its called?
Glad you are as excited as I am. I have thought about doing N-body physics but there are too many issues with it that I don't know how to fix at the moment. Right now I will just stick with the patched conics because it is the easiest system to implement time-warp with.

For the atmospheres you can thank @Catzcute4 (Unfortunately he has been inactive for a while now) who pressured me to implement them in the first place. I made them work by using a modified method seen from this video: Coding Adventure: Atmosphere and the main reason they render so fast is that they have a lower pixel density. You can change the atmosphere resolution in settings but unfortunately really good looking atmospheres make the framerate drop. I will keep posting here as I make more progress but things are currently slow going still.

you should also try to overlay the atmosphere renderer ontop of the planet rather than behind it if possible.
OllyMonster
Scratcher
10 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

dspace1015 wrote:

Added RCS part and moved the attitude control code to deal directly with them. Same with rocket engines. RCS and Rocket Engines each remove fuel from their attached fuel tanks with the option for infinite fuel. Different fuel types like Monopropellant or Methalox and hopefully more are planned to be included.
Demo of current parts in previous solar system:

Graphics are subject to change, this is just a demo for functionality.

also OH MY GOD THAT LOOKS AMAZING :sob: i have actualy never seen something so danm IMPRESSIVE.

im really hoping that your adding support for modding.
OllyMonster
Scratcher
10 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

altho one critizim that i have for this is mainly the UI, ESPECIALY the text which are very hard to read, like the letter “e, i, s, p, d, n, 1, n” are hard to read. if you look at the remixed project i made i slightly redesigned the UI in a way i think would be good.
OllyMonster
Scratcher
10 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

last comment ;-;

the RCS effects dont seem that good but a good addition would be the RCS plumes increasing in size


set pen size to ((Original pen size) * (1.5))
kinda like this.
dspace1015
Scratcher
96 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

OllyMonster wrote:

you should also try to overlay the atmosphere renderer ontop of the planet rather than behind it if possible.
Maybe in the future but it might be tricky with my current engine that sorts objects by distance, I would have to re define how they are rendered.

OllyMonster wrote:

im really hoping that your adding support for modding.
I plan on it to some degree yes, what I currently have is a save system where you can load a specific solar system so at the very least you can customize solar systems.

OllyMonster wrote:

altho one critizim that i have for this is mainly the UI, ESPECIALY the text which are very hard to read, like the letter “e, i, s, p, d, n, 1, n” are hard to read. if you look at the remixed project i made i slightly redesigned the UI in a way i think would be good.
The main reason text is so pixely is because my plans originally was for this to be playable in scratch, which with the pen tool would have a limited resolution. As I added more features I quickly realized that switching to TurboWarp would be necessary. So maybe I will switch them out to make the most of TurboWarp's high resolution pen feature.

OllyMonster wrote:

last comment ;-;
the RCS effects dont seem that good but a good addition would be the RCS plumes increasing in size
set pen size to ((Original pen size) * (1.5))
kinda like this.
We'll see, biggest complaint that I get from people that I show this too (Besides weird controls) is the mediocre graphics. For now this is just a place holder but I will take your suggestion into account as I continue development.
OllyMonster
Scratcher
10 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

dspace1015 wrote:

OllyMonster wrote:

you should also try to overlay the atmosphere renderer ontop of the planet rather than behind it if possible.
Maybe in the future but it might be tricky with my current engine that sorts objects by distance, I would have to re define how they are rendered.

OllyMonster wrote:

im really hoping that your adding support for modding.
I plan on it to some degree yes, what I currently have is a save system where you can load a specific solar system so at the very least you can customize solar systems.

OllyMonster wrote:

altho one critizim that i have for this is mainly the UI, ESPECIALY the text which are very hard to read, like the letter “e, i, s, p, d, n, 1, n” are hard to read. if you look at the remixed project i made i slightly redesigned the UI in a way i think would be good.
The main reason text is so pixely is because my plans originally was for this to be playable in scratch, which with the pen tool would have a limited resolution. As I added more features I quickly realized that switching to TurboWarp would be necessary. So maybe I will switch them out to make the most of TurboWarp's high resolution pen feature.

OllyMonster wrote:

last comment ;-;
the RCS effects dont seem that good but a good addition would be the RCS plumes increasing in size
set pen size to ((Original pen size) * (1.5))
kinda like this.
We'll see, biggest complaint that I get from people that I show this too (Besides weird controls) is the mediocre graphics. For now this is just a place holder but I will take your suggestion into account as I continue development.

i decided to look at the atmosphere renderer and saw the main issue mabey i can mess around untill something works…
OllyMonster
Scratcher
10 posts

⭐⭐ 3D Spaceflight Simulator‍️/Kerbal Space Program

I KIDNA GOT IT TO WORK!!!!!!!!!!

Powered by DjangoBB