This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

MrCohen
MrCohen presents ...

2021/1/23

SpaceClasses

"W" - UP
"S" - DOWN
"Space" - SHOOT

If you run out of ammo, your game is over. If you run out of hit points, you will die.

This is an exemplar of an ICS3U (Grade 11, university stream) computer science project. It features use of Greenfoot's UserInfo class for worldwide high sores as well as saved user preferences for background image and music. It also includes an example of how I manage sound effects to ensure they play simultaneously (for example, a 1-second explosion sound triggered 10x within 1 second will start 10 explosion sounds). Lots of good code bits in here!

Enjoy! And let's see who can get the highest score :)

480 views / 19 in the last 7 days

3 votes | 1 in the last 7 days

Tags: game with-source

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2021-01-23 12:49:35 UTC
A new version of this scenario was uploaded on 2021-01-24 13:58:38 UTC Audio and visual improvements
NoobopandaNoobopanda

2021/1/24

cool!
A new version of this scenario was uploaded on 2021-01-24 19:24:53 UTC Testing ability to choose (and save choice of) music track.
A new version of this scenario was uploaded on 2021-01-25 19:02:42 UTC ???
SwaggyXiaoSwaggyXiao

2021/1/25

cool!
SwaggyXiaoSwaggyXiao

2021/1/25

This program was created as a basic example for my teacher's Object Oriented Programming lesson in ICS3U
A new version of this scenario was uploaded on 2021-02-04 18:01:42 UTC
A new version of this scenario was uploaded on 2021-02-22 17:33:54 UTC
A new version of this scenario was uploaded on 2021-06-10 14:11:03 UTC Fixed some small issues with UserInfo. Also added more commenting and cleaned up some messes. Enjoy!

See all comments

Want to leave a comment? You must first log in.

Who likes this?

AndrewAndrew SwaggyXiao Noobopanda