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 :)

2393 views / 19 in the last 7 days

4 votes | 0 in the last 7 days

Tags: game with-source

open in greenfoot
Your browser does not support the canvas tag.
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!
A new version of this scenario was uploaded on 2021-10-14 09:12:03 UTC code cleanup
A new version of this scenario was uploaded on 2021-10-14 09:15:04 UTC
A new version of this scenario was uploaded on 2021-10-14 09:17:50 UTC
A new version of this scenario was uploaded on 2021-10-14 09:19:31 UTC
A new version of this scenario was uploaded on 2021-10-14 09:23:04 UTC

See all comments

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

Who likes this?

AndrewAndrew SwaggyXiao Noobopanda