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

2012/4/27

Greenfoot 2.2.0 released

nccb nccb

2012/4/27

#
Greenfoot 2.2.0 is now officially released, and available for download (although the stand-alone USB-stick version will follow shortly). We recommend upgrading, especially for users who were on the 2.2.0 beta, as the beta version is not supported. If you were on the beta, there is a name change to the storage API (PlayerData became UserInfo) which you'll need to change in your code when you load up your beta scenarios. I think everything apart from that name change is the same, though. If you imported the ScoreBoard class and haven't altered it, you might find it easiest to remove it and re-import the class (which has now been adjusted). Additionally, the Counter class had some bugs in the beta which have now been fixed, so you may want to re-import that one, too. Such are the perils of beta versions!
sp33dy sp33dy

2012/4/27

#
Great stuff. Will have a play over the weekend! Thanks for all the hard work
SPower SPower

2012/4/27

#
Great! But I don't understand why you had to change the name PlayerData into UserInfo and change getMyData() into getMyInfo(). I didn't like the gray background of the scoreboard, so I removed it. For the rest, a great new release of greenfoot, and I like using it!
Duta Duta

2012/4/27

#
At last! Downloading it now - I'm mainly just glad I'll be able to export to .jar's again
trash1000 trash1000

2012/4/28

#
Well, I don't know why you changed PlayerData to UserInfo but whatever. There is a mistake in the ScoreBoard class in line 78. It says
UserInfo me = UserInfo.getMyData();
though it should be
UserInfo me = UserInfo.getMyInfo();
davmac davmac

2012/4/28

#
We changed it to be more consistent with other class naming (such as MouseInfo), and because a scenario doesn't necessarily need to be a game; so 'UserInfo' is better. Thanks for reporting the problem.
Gazzzah Gazzzah

2012/5/3

#
Where can I find guidelines for using the UserInfo?
Gazzzah Gazzzah

2012/5/3

#
Never mind, found it. Might take a while for me to figure it out though.
trash1000 trash1000

2012/5/4

#
Gazzzah wrote...
Never mind, found it. Might take a while for me to figure it out though.
Well, you could look at scenarios which already do use it. Some of SPower's scenario's use UserInfo or my Solitaire game does. Even though you do not really need it - the documentation is pretty well done.
You need to login to post a reply.