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

2012/8/15

fullscreen?

erdelf erdelf

2012/8/15

#
Is it possible to create a scenario with fullscreen?
SPower SPower

2012/8/16

#
1
2
3
4
5
6
7
8
9
import java.awt.Toolkit;
// some other stuff
private static int width = Toolkit.getDefaultToolkit().getScreenSize().width;
private static int height = Toolkit.getDefaultToolkit().getScreenSize().height;
 
public MyWorld()
{
    super(width, height, 1);
    // other stuff
this is kinda full screen, it has the size of the screen anyway
erdelf erdelf

2012/8/16

#
did you tried that? the panel with the buttons don't let me do this?
SPower SPower

2012/8/17

#
No, I didn't try, but you can just change this part:
1
super(width, height, 1);
to:
1
super(width, height -somenumber, 1);
Gevater_Tod4711 Gevater_Tod4711

2012/8/20

#
I dont think this will work like you want it to. Make your world to a full screen all other objects are still small. If you want to do this in Greenfoot it will not be full size anyway, only if you export it to a .jar file. But also if you change the images of your Actors it only runs on your computer (or on any other computer with the same screen like yours).
You need to login to post a reply.