Page 1 of 1

Asteroid Blaster transcoded from Scratch

Posted: Aug 26th, '17, 23:08
by SimpleSi
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 431 times
he project :)

Re: Asteroid Blaster transcoded from Scratch

Posted: Aug 27th, '17, 06:30
by SimpleSi
Decided to bother manually doing explosion for the ship :)
Asteroid Blaster.gpp
(17.68 KiB) Downloaded 387 times

Re: Asteroid Blaster transcoded from Scratch

Posted: Aug 27th, '17, 17:50
by SimpleSi
And finally did the asteroid explosions
Asteroid Blaster.gpp
(18.76 KiB) Downloaded 403 times

Re: Asteroid Blaster transcoded from Scratch

Posted: Nov 20th, '17, 17:58
by SimpleSi
Updated to use new Touching edge feature introduced in version 077
Asteroid Blaster02.gpp
(15.78 KiB) Downloaded 488 times