This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Paul12345
wrote ...
2018/2/11
Static get world
Paul12345
2018/2/11
#
I can't seem to memorize the current world in a static variable. Could i please get an example?
danpost
2018/2/11
#
Paul12345 wrote...
I can't seem to memorize the current world in a static variable. Could i please get an example?
private static World world; public MyWorld() { super(600, 400, 1); world = this; }
You need to login to post a reply.
X