Look for "Gravity Arena" in a week or so. It will use the same spaceship physics (no drag) and an enemy (that shoots back) as the gravity "source". The enemy will get two weapon types and the ability to launch some ships of its own. I may include a "stone" or two as well. I'll make the new game a full-fledged video game, with levels that are increasingly difficult, scoring, etc. I've given up on my boycot of trig functions, since they make things a lot easier, so it won't really be a "remix".
Brill. Please put it on my gallery THE SCRATCH GALLERY. If you put your username in the tag zone and you can enter my compatishion. If you win you will have your work on my website! www.EGEmedia.co.uk
I may get around to a "remix" that adds some stuff, but this project will remain a simple demo. Anyone interested in remixing and adding to it as a new project, please feel free, I may even find time to assist. I may get around to it myself eventually.
Instead of your script that just says forever if: touching moon: think "blah blah blah", change it to "Forever If- Touching Moon AND vMagnitude < (pick a number depending on how hard you want it), think 'blah blah blah'" also add that same thing if the vMag. is > than the number. If this doesn't make sense then just tell me and I'll post it in the forum, but it will fix one of your problems, I tested it
This project just checks to see that you touched and stops, I put it together rather quickly to use as a demo, added lots of comments and submitted it for inclusion with the Scratch demos.
I did a lot more with "GravityTrap", "Binary" and "DeathStar", though I never managed to finish any those.
Maybe "Moonlander" needs a remix with a stronger gravity source that defends itself and a "Stone" or two to dodge. A less benign looking ship would be in order as well. If anyone is interested, we could add an element, repost, and pass it around some...
Hmmm. It's pretty forgiving. I came in nose first and it said I'd "landed" when what I thought I had done was "crashed"! It'd be nice to have a version that was a bit tougher...require that you land with your feet, not your head, and you have to be under a certain maximum velocity. Very nice simulation; worthy of more features.
Black Splotch: A "Transparent" spot left in the moon sprite, that allows you to see thru to the black background. The actual moon was not harmed in the making of this project...
Very smooth motion! Nice job. What's the black splotch on the bottom of the moon?
Download this project!
Download the 4 sprites and 7 scripts of "MoonLander" and open it in Scratch
Project Notes
Demo of a "Moon Lander", using two "helper" sprites to figure out where the ship is going to go during each "time step".
The relative location of the "Result" Sprite with respect to the Ship is used to represent the Ship's Velocity Vector. The "Pointer" Sprite is used to track the angle and velocity of the ship. (See comments in the scripts for a full explaination.)
In addition to "Thrust" (in the direction that the Ship is pointing) the Result sprite moves toward the Moon to represent the pull of the Moon's gravity. This pull is calculated as a constant divided by the square of the distance from the ship to the center of the moon.
Left/Right Arrows to Turn, Up Arrow for Thrust.
Comments
You need to be logged in to post comments
Add a Comment
to easy
Cool!
it is tricky!
Very good! 5star to be exact.
Look for "Gravity Arena" in a week or so. It will use the same spaceship physics (no drag) and an enemy (that shoots back) as the gravity "source". The enemy will get two weapon types and the ability to launch some ships of its own. I may include a "stone" or two as well. I'll make the new game a full-fledged video game, with levels that are increasingly difficult, scoring, etc. I've given up on my boycot of trig functions, since they make things a lot easier, so it won't really be a "remix".
are you going to make a remix of this project?
its cool
wats a remix?
this got featured!
Very good, If you do a remix, it would be nice to be able to crash, then it would be more of a challange. Maybe you could have to go through tunnels?
i won!! cool
Brill. Please put it on my gallery THE SCRATCH GALLERY. If you put your username in the tag zone and you can enter my compatishion. If you win you will have your work on my website! www.EGEmedia.co.uk
I may get around to a "remix" that adds some stuff, but this project will remain a simple demo. Anyone interested in remixing and adding to it as a new project, please feel free, I may even find time to assist. I may get around to it myself eventually.
Do what Paddle2See says! Please!
Instead of your script that just says forever if: touching moon: think "blah blah blah", change it to "Forever If- Touching Moon AND vMagnitude < (pick a number depending on how hard you want it), think 'blah blah blah'" also add that same thing if the vMag. is > than the number. If this doesn't make sense then just tell me and I'll post it in the forum, but it will fix one of your problems, I tested it
Please feel free to use. BTW: the moon does have gravity, it's just set very lite.
Is it ok if I down load this and use the space ship?
Cool. I love space. <3
i agree with paddle2see. Make asteroids and fix that problem and it'll be awesome.
it woud be cool if the moon had gravde to pull you in
Nice! Very good programming!
This project just checks to see that you touched and stops, I put it together rather quickly to use as a demo, added lots of comments and submitted it for inclusion with the Scratch demos. I did a lot more with "GravityTrap", "Binary" and "DeathStar", though I never managed to finish any those. Maybe "Moonlander" needs a remix with a stronger gravity source that defends itself and a "Stone" or two to dodge. A less benign looking ship would be in order as well. If anyone is interested, we could add an element, repost, and pass it around some...
Hmmm. It's pretty forgiving. I came in nose first and it said I'd "landed" when what I thought I had done was "crashed"! It'd be nice to have a version that was a bit tougher...require that you land with your feet, not your head, and you have to be under a certain maximum velocity. Very nice simulation; worthy of more features.
Really great! hm.. But maybe it could be harder.. Maybe with.. Stones.. Or... I dont know.. :o But i love you're project! ;)
You need to rotate to point the ship away from the moon (arrow keys), then apply thrust (up arrow). With no input, you'll "fall" to the surface...
I just ended up crashing into the moon
Very clever. I have a gallery open If you wish to put your work in it. www.EGEmedia.co.uk
addictingly fun:)
Black Splotch: A "Transparent" spot left in the moon sprite, that allows you to see thru to the black background. The actual moon was not harmed in the making of this project...
Very smooth motion! Nice job. What's the black splotch on the bottom of the moon?