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

Report as inappropriate.

MrCohen
MrCohen presents ...

2012/6/1

Space Turret Example

This example includes a slightly modified turnTowards(int x, int y) method for use in Greenfoot 2.1. The code was borrowed from Greenfoot 2.2.0

Also demonstrates use of the Mouse for aiming, object self-removal and the general concept of "shooting."

5048 views / 10 in the last 7 days

1 vote | 0 in the last 7 days

Tags: mouse shooter with-source turret

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Fri Jun 01 12:19:07 UTC 2012
A new version of this scenario was uploaded on Fri Jun 01 12:26:02 UTC 2012 Added additional commenting
A new version of this scenario was uploaded on Fri Jan 11 17:03:15 UTC 2013
actiniumactinium

2013/1/11

Good work. Used an adaption of this in my shoot-em. Funny thing is i had made a cannon actor with no code. Came onto the greenfoot site and your turret had just been posted at the top of the scenario's !!.
A new version of this scenario was uploaded on Sun May 12 21:29:00 UTC 2013 Mouse use is improved. Now works properly with Greenfoot 2.2.0 and newer.

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

Who likes this?

actinium