[Sample App] Space Shooter!

769 views
Skip to first unread message

Chris Hopkin

unread,
Oct 7, 2014, 4:34:07 AM10/7/14
to androi...@googlegroups.com
Hello

Now that AndroidScript v1.11 has been released, I wanted to share a sample game with you, imaginatively titled Space Shooter! It's a vertical scrolling, space invader style shoot 'em up type game, with music, sound effects, and most importantly, explosions!

The game graphics, sfx and music came from http://opengameart.org a really useful resource.

The SPK is attached, please ensure you have the latest version of AndroidScript installed, enjoy!

Thanks

Chris
Space Shooter.spk

Steve Garman

unread,
Oct 7, 2014, 5:48:28 AM10/7/14
to androi...@googlegroups.com
Thanks Chris.
Not just a great sample of what AndroidScript can do, it's also a really useful example of good coding.

I suspect some of my future stuff will revolve around amended copies of object.js

It also makes a nice apk.

sankarshan dudhate

unread,
Oct 8, 2014, 1:20:14 AM10/8/14
to androi...@googlegroups.com
Chris, that's a nice one. But can you fire missiles auautomatically for 2/ssecond ? It will be great. Thanks and please publish it in play store.

Regards,
Sankarshan.

Steve Garman

unread,
Oct 8, 2014, 6:34:47 AM10/8/14
to androi...@googlegroups.com
Sankarshan,
Have you tried holding you finger on the sprite for 2 seconds?

sankarshan dudhate

unread,
Oct 8, 2014, 11:13:15 AM10/8/14
to androi...@googlegroups.com
Yes. But it should fire missiles continuously even if we don't touch it. That was problem with Invaders sample. Same here. Please fix it Chris.

Steve Garman

unread,
Oct 8, 2014, 11:19:46 AM10/8/14
to androi...@googlegroups.com
It's a sample app, Sankarshan.

The beauty of having the code is that if you have specific requirements, you can fix your copy of it yourself.

Chris Hopkin

unread,
Oct 8, 2014, 11:37:24 AM10/8/14
to androi...@googlegroups.com
Hi Sankarshan

I decided to only have the bullets fire while you are touching, I just preferred it that way. 

I will be releasing Space Shooter to Google Play as an 'AndroidScript Demo' soon, I'm just adding a "Powered by AndroidScript" splash screen to it :)

Chris

sankarshan dudhate

unread,
Oct 9, 2014, 12:06:57 PM10/9/14
to androi...@googlegroups.com
It will make game a bit low rating. Users will give you this feedback. So please add it.

Chris Hopkin

unread,
Oct 15, 2014, 11:10:24 AM10/15/14
to androi...@googlegroups.com
I am releasing the Space Shooter Demo on Google Play. I've attached an updated SPK that now includes the "Powered by DroidScript" splash screen.


Sankarshan, thanks for the feedback, but I have left the game as it is - It's really a demonstration of DroidScript rather than a complete game, which will hopefully bring in some new users who have the opportunity to modify and extend the game to their own individual liking.

Thanks

Chris
Space Shooter.spk

Richard King

unread,
Nov 29, 2014, 4:46:26 AM11/29/14
to androi...@googlegroups.com
Hi. Anyone else having trouble with the spk?  If I download it ot click on it the DroidScript app opens but no folder gets added.  I have had mixed results with other spk's. Some open and create a new folder, others do nothing (like this one).  I can download and unzip with 7z on Windows so the file is not getting corrupted. Any ideas? TIA.

Dave Smart

unread,
Nov 29, 2014, 6:42:14 AM11/29/14
to androi...@googlegroups.com
Hi Richard, What device are you using and what version of Android?

sankarshan dudhate

unread,
Nov 29, 2014, 9:06:07 AM11/29/14
to androi...@googlegroups.com
Its not big problem. What you should do is share SPK to DroidScript instead of opening it with DroidScript.
Regards,
Sankarshan.
PS : I think Dave is working on this issue. It will soon be solved.

Richard King

unread,
Nov 29, 2014, 9:45:59 PM11/29/14
to androi...@googlegroups.com
Thanks for the tip, Sankarshan.  I'll try that with the next spk I encounter.  I manually pushed the unzipped files across to a new folder on the phone.  Runs fine.. (Samsung Note 2. Android 4.4.2 for the record)

Alan Joseph

unread,
Mar 26, 2020, 9:55:55 PM3/26/20
to DroidScript
Fantastic job!!!!!

I know you said you added a "splash screen", do you have the code for that? I can't figure out how to go about this :) a layout with a timer that expires after specified amount of time that auto loads into second layout. Thank you! And nice work!

Dave

unread,
Mar 26, 2020, 10:21:26 PM3/26/20
to DroidScript
You can use app.AddLayout( laySplash)  to add a full screen layout on top of all other layouts, then use app.RemoveLayout() to remove it after a certain time. (Or you could just hide it). 
Reply all
Reply to author
Forward
0 new messages