(link to project) a similar project (dunno if it has anything you'd like to reference or not in the gameplay, but the opening animation at least is WAY cool).
Yeah, I thought about that, just haven't added it yet (spacebar ineffective if all bullets are still alive). I think sprites are still the best way to go because it's easier to see the bullet sprite and scripts as an entire object. I believe the original asteroids had a limitation to the number of bullets allowed. I just have to play it and find out what it is.
Maybe if all the bullets are currently active the spacebar can do nothing so they finish their course?
I wonder if it would be inefficient to use the pen to draw/erase the bullets, which would just be tracked by global vars? I suppose you'd still have to limit the number of them (no arrays haha).
Yeah, I'm not sure about the bullets... your code had them dying if they hit the edge of the screen, but the arcade asteroids had the bullets wrap around I believe.
I won't be able to work on it this weekend as I won't be in town, but I'm going to at least play a few rounds of the actual arcade version so I'll be ready to go come Sunday.
Currently the bullets die after 40 iterations of movement. I'll probably end up lengthening it (and probably making them faster) based on what I find when I play.
And THANKS. :P That's the idea... not most original but closest to the arcade.
Awesome! Thanks for the credit. What's up with the bullets disappearing at at a fixed distance? Are the guns of limited range?
Can't wait for this game to be completed. I think it will be the best Asteroids game on Scratch yet.
Special thanks to dinther for helping me figure out how to do sin/cos in scratch. This is a newer version featuring more realistic flight model, lives in the upper corner with score, a basic random ai for UFO and you can die if you touch the asteroid. Still can't blow the asteroid up yet. :) I'm getting to that.
Download this project!
Download the 12 sprites and 25 scripts of "Asteroids v0.2" and open it in Scratch
Project Notes
Up Arrow - Thrust!
Left Arrow - Rotate counter clockwise
Right Arrow - Rotate clockwise
Down Arrow - Hyperspace! (Careful!)
Spacebar - Fire!
This is my first Scratch project. I'm trying to recreate Asteroids as closely to the arcade as possible. If you like what you see please comment! Feel free to use anything for your own projects but please let me know so I can see them!
Comments
You need to be logged in to post comments
Add a Comment
I've made a version too! Let's compare...
(link to project) a similar project (dunno if it has anything you'd like to reference or not in the gameplay, but the opening animation at least is WAY cool).
Yeah, I thought about that, just haven't added it yet (spacebar ineffective if all bullets are still alive). I think sprites are still the best way to go because it's easier to see the bullet sprite and scripts as an entire object. I believe the original asteroids had a limitation to the number of bullets allowed. I just have to play it and find out what it is.
Maybe if all the bullets are currently active the spacebar can do nothing so they finish their course? I wonder if it would be inefficient to use the pen to draw/erase the bullets, which would just be tracked by global vars? I suppose you'd still have to limit the number of them (no arrays haha).
Yeah, I'm not sure about the bullets... your code had them dying if they hit the edge of the screen, but the arcade asteroids had the bullets wrap around I believe. I won't be able to work on it this weekend as I won't be in town, but I'm going to at least play a few rounds of the actual arcade version so I'll be ready to go come Sunday. Currently the bullets die after 40 iterations of movement. I'll probably end up lengthening it (and probably making them faster) based on what I find when I play. And THANKS. :P That's the idea... not most original but closest to the arcade.
Awesome! Thanks for the credit. What's up with the bullets disappearing at at a fixed distance? Are the guns of limited range? Can't wait for this game to be completed. I think it will be the best Asteroids game on Scratch yet.
What did you do for sin/cos?
Nice start. Looking forward to the completed game.
Special thanks to dinther for helping me figure out how to do sin/cos in scratch. This is a newer version featuring more realistic flight model, lives in the upper corner with score, a basic random ai for UFO and you can die if you touch the asteroid. Still can't blow the asteroid up yet. :) I'm getting to that.