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

Report as inappropriate. presents ...


Benny's Tower Defense

PROJECT TITLE: Benny's Tower Defence

PURPOSE OF PROJECT: Grade 11 Computer Science Course Final Project

VERSION or DATE: Wednesday, January 20, 2021


Click the "start button" to start the game. There are three levels in total, players have to place down different towers (Inferno, Lightning, Bomb) to stop the enemies from reaching to the end of the path. Players can upgrade their towers to improve damage and efficiency, and upgrade the gold mine to collect coins in a higher pace. Players can also use an awesome ability called "Mr. Chan's power" that can instantly wipe out half of the enemies on the map. It is considered as a win after players reach the end of the 3rd level, otherwise it is a loss.

123 views / 4 in the last 7 days

1 vote | 0 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-21 23:22:39 UTC
A new version of this scenario was uploaded on 2021-01-21 23:27:29 UTC
Welp, I don't think the Greenfoot website is reading some of my code properly and it caused many errors somehow. Nor sure how to fix it, so here's the link to my github if you would like to download it from there instead :D


Try assigning the music in the constructor of the world instead of on the field declaration line of the GreenfootSound object.


Field declaration: GreenfootSound background_music; In constructor: if (background_music == null) { background_music = new GreenfootSound("Background_music.mp3"); }



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

Who likes this?