Asteroid Blaster transcoded from Scratch

Post your nifty GP projects here!

Moderator: MSandro

Post Reply
SimpleSi
Posts: 327
Joined: Jul 2nd, '17, 13:47

Asteroid Blaster transcoded from Scratch

Post by SimpleSi » Aug 26th, '17, 23:08

As an exercise, I picked an Asteroid Blaster Scratch program (it has been used extensively as as a test program for Scratch implentations on the Raspberry Pi so I was quite familiar with it)
https://scratch.mit.edu/projects/2697920/

and transcoded it as litterally as possible into GP and got a working version of it
http://youtu.be/l3eNx5g0NXM?hd=1

The major issues encountered were
No "touching edge" block in GP (needed to halt laser bolts) so I've rasised that as a enhancement request (I worked around by creating a class called edge with line around outside and transparent in the middle and just detected laser bolt touching it)

Costumes
Couldn't see an easy way of allocating multiple costumes to an object so didn't bother - prob could have come up with a workaround but nothing simple came to mind

I sort of don't mind this as sprite costumes is a VERY Scratch idea - other languages would just have to use arrays of images to do things like explosions and if that is what needs to be done in GP -so be it
But maybe we could have some easy to use image array loading facilities? Like say create an image folder structure in load images and let GP easily load a folders worth of images (in alphabetical order) into an array of images and use that like costumes?

Anyway - here is t
Asteroid Blaster.gpp
(16.23 KiB) Downloaded 73 times
he project :)

SimpleSi
Posts: 327
Joined: Jul 2nd, '17, 13:47

Re: Asteroid Blaster transcoded from Scratch

Post by SimpleSi » Aug 27th, '17, 06:30

Decided to bother manually doing explosion for the ship :)
Asteroid Blaster.gpp
(17.68 KiB) Downloaded 68 times

SimpleSi
Posts: 327
Joined: Jul 2nd, '17, 13:47

Re: Asteroid Blaster transcoded from Scratch

Post by SimpleSi » Aug 27th, '17, 17:50

And finally did the asteroid explosions
Asteroid Blaster.gpp
(18.76 KiB) Downloaded 74 times

SimpleSi
Posts: 327
Joined: Jul 2nd, '17, 13:47

Re: Asteroid Blaster transcoded from Scratch

Post by SimpleSi » Nov 20th, '17, 17:58

Updated to use new Touching edge feature introduced in version 077
Asteroid Blaster02.gpp
(15.78 KiB) Downloaded 82 times

Post Reply