Report as inappropriate.
This demo shows a Full Screen Mode for greenfoot projects.
Using this demo every greenfoot project can very easily be turned into a fullscreen project.
To create an own full screen greenfoot project just download this scenario, copy the neccessary classes and start programming.
The classes that are needed for a fullscreen scenario are: FullScreenWorld, FullScreenWindow, FullScreenBufferPanel, FullScreenMouseInfo, FullScreenKeyInfo, GreenfootMouseListener and GreenfootKeyListener.
The only changes you have to make in your scenario are that you can't use some greenfoot methods like Greenfoot.isKeyDown, Greenfoot.mouseClicked...
Instead of them you'll have to use FullScreenWindow.isKeyDown, FullScreenWindow.mouseClicked...
A full list of the changed methods is to be found in the discription of the class FullScreenWindow.
If you already have a greenfoot project you want to change into a full screen greenfoot project you don't need to change everything on your own but you can use my "Greenfoot FullScreen Rewriter" scenario which turns your existing greenfoot project into a full screen greenfoot project within a view mouseclicks.
To start a simple fullscreen game just click on the screen in the scenario window.
A fullscreenwindow will come up with a wombat you controll with the arrow keys to demonstrate the key support and a house to demonstrate the mouse support.
To switch back from the fullscreenwindow you can use the keyboard shortcut Alt + Tab.
I hope this demo can help you. If you got questions or suggestions for improvements please tell me.
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.
Want to leave a comment? You must first log in.