This is NOT a complete game. It is a code snippet, internally documented, to teach my students a very basic game function that the can apply to their own creations or assigned coding challenges.
see aselley.com (though this site is always under construction and the constraints of trying to have interests away from the computer means it is always in a state of editing) This is an extension of Simple Spaceship Velocity to include a Black Hole that draws the player towards it. (https://scratch.mit.edu/projects/97915914/) The code is deliberately simple and uses multiple objects (sprites) rather than more complex trigonometry, since that is more age appropriate for my students.