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

Report as inappropriate.

DonaldDuck
DonaldDuck presents ...

2010/12/20

Color Physics

In this epic new platforming game, you get to play God as you click and cause little shapes to go flying!

I'm not taking this scenario very far, but I'd be very pleased to see a nice game come out of this.

If you look at the source code, you'll see I was trying to allow users to add new items into the world via JButtons and JOptionPanes. I have all the required information, but I'm unable to add a Greenfoot Actor to the world from an 'Other Class' extending JFrame.

Any tips on that matter would be appreciated.

3255 views / 11 in the last 7 days

1 vote | 0 in the last 7 days

Tags: game physics demo with-source gravity red blue

open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

mjrb4mjrb4

2010/12/20

I can't seem to get a positive score on this - just the negative number of clicks that I made? In terms of the swing components, they're far better not used on Greenfoot scenarios - it's much nicer to have everything you need in the actual scenario rather than have dialogs pop up all over the screen (on my setup for instance it appears at the top left of my left monitor, which is some way away from the scenraio which is on the right hand monitor!)

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

Who likes this?

Almog