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

Report as inappropriate.

Kanonji presents ...



ATTENTION: this game will not run through most browsers due to the default heap size set by the JRE. For a means to get past this please read below. Sorry for the inconvenience. For the Jar file of this game:

Tobi was our senior project for NMSU. Unfortunatly the game is too large and has too much overhead for the standard settings on the Java Runtime Enviroment. If you are using Windows please read the how to on running Tobi in Windows.

Movement: a, d
Jump: spacebar (double tap and hold for double jump)
Aiming: done via the mouse
Fire: mouse left click (hold down to charge more powerful bullets)
GodMode: g (implemented for testing)

HOW TO RUN ON WINDOWS. Place the jar file in your jre6 bin folder.
for me this is located at c:\Program Files (x86)\Java\jre6\bin
Then open up the command prompt and change your directory to your bin folder
cd c:\Program Files (x86)\Java\jre6\bin\
Then open the jar file using this command
java -Xms32m -Xmx256m -jar Tobi_v8.jar
This will increase the heap size allocation of the program.

Having issues getting the code to run in the Greenfoot IDE?
We had to change the the Greenfoot.defs file located in greenfoot\lib in order to increase the heap size for our game. Simply add the following text at the end of the last line of the file...

11219 views / 1335 in the last 7 days

22 votes | 0 in the last 7 days

Tags: mouse game shooter with-source robot platform

This scenario is a member of: Scenario showcase, epics

open in greenfoot
Your browser does not support the canvas tag.


Yes, exactly. We set the size of the Background actor to the same size as the screen and used the drawImage() method to draw the farthest back image first, then the next farthest, and so on up to the front, all in the same Actor. Also, you can press '5' to enable "scope mode", which allows the mouse's location to influence the scrolling of the screen, letting you shoot farther. Be warned that it allows you to exploit certain enemies, since they won't shoot at you until you get close enough. *coughsnailscough* To switch back to regular mode, press '4'.
It's a little bit on the difficult side. I also noticed a lot of slow down at the boss when there are a lot of enemies on screen, which isn't helped by the fact that you kill the enemies very slowly without god mode turned on. You might want to change damage values to make it somewhere between normal and god mode settings (minus the infinite health) and remove some of the enemy instances on the final screen. Also, I found an interesting bug. If you beat the game, and then hit reset and start a new game, your character retains the black body from the credits screen, but the head and gun arm will be normal. Also, the head and body often face in opposite directions and are disjoint, so it looks like the body is moonwalking. On a related note, having an option to allow the character moonwalk through the game would be pretty cool. One final thing. It doesn't affect the game very much, but I noticed that when pressing "g" to turn on god mode, it is sampling too quickly for input. So when you press the button, it quickly turns on and off the mode faster than you can perceive, resulting in a 50% chance that you land on god mode when you release (try firing the gun while holding "g" to see what I mean). In the future, you might want to either give a timed delay for input (wait 1 sec before accepting any state changing input a game mode), or implement a "press and release" accepting method of input so that holding down the button doesn't change the mode more than one time. It doesn't matter much for this particular game, but it's a game mechanic that is common in many games and would be to your advantage to learn early. Other than that, good job. I hope I get to make something this cool when I do my senior project.
download GIMP. How to use GIMP to eliminate white backgrounds: Go to the Layer section in the top of the screen, then there should be a section called Transparency. Put the mouse over it and select the option Add Alpha Channel, then use the magic wand and press delete on white areas.
If you have the layer dock, then you use that: simply right click on the layer (if you are using MSPaint, there should be only one layer) then select Add Alpha channel, then use the magic wand as shown above.


Well done


Good Job!Like the graphics too


Gr8 game. I like it. Graphics are really cool.


Nothing is implemented to cause Tobi to die (or reset position) when he falls into a hole. You can go through the whole level underneath the ground...


The game runs perfectly fine on Firefox using Windows 7. (I'm checking out old Greenfoot scenarios just because).


Also needs a health bar, and enemies should be easier to kill. It feels like it takes forever.

See all comments

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

Who likes this?

Entity1037 nooby123 Antonio thegreencoolerman BIG-red-BUTTON drhorriblejr creator22 chanduu shilpa Dexor ramya limefortheworld PiRocks artee037 Mahitha mjrb4 Bretton tintaton Sharaleth Kirbot