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

2013/4/27

What's new in the coming version of Greenfoot?

1
2
3
4
danpost danpost

2013/5/8

#
@bourne, after your last post, I decided to try a bunch myself (with no luck). $SYSTEMDATE, $SYSTEMDAY, $SYSTEMMONTH, $SYSTEMYEAR, $MMDDYYYY (which I did not think would work), $TIME, $SYSTEMTIME, $NOW, $CURRENTDATE, $CURRENTTIME, $CURRENTDAY, $CURRENTYEAR, $APPLICATIONDATE
bourne bourne

2013/5/8

#
Thanks for trying. Maybe someone from the Greenfoot team can shed some light on if any exist? And if none do, if they can implement them.
davmac davmac

2013/5/8

#
I think the only ones supported are CLASSNAME and EXTENDSANDSUPERCLASSNAME - the bare essentials. It's not really intended to be a general purpose mechanism; the main purpose for allowing the templates to be edited is for translation to other languages.
Upupzealot Upupzealot

2013/5/9

#
@danpost Just learned that how to create the default templates here, thx.
Upupzealot Upupzealot

2013/5/9

#
@davmac is there any way that I may write extentions for Greenfoot? Just notice that BlueJ has such a fuction.
Game/maniac Game/maniac

2013/5/26

#
Duta wrote...
Entity1037, if I have time (and, more importantly, I remember to get around to doing it) I'll make an image slicer library for use with GreenfootImage, which would mean sprite sheets can then be used easily.
Got bored of waiting and did it for you. Here's the link
I would like Greenfoot to allow setPaintOrder to accept interfaces. It would help a lot with my game by saving space, and adding simplicity.
Game/maniac Game/maniac

2013/5/28

#
What do you mean by interfaces
Duta Duta

2013/5/28

#
He means these. I don't think they could be added to setPaintOrder, purely because each class you pass to setPaintOrder must subclass Actor, and interfaces don't extend anything.
Oh, that makes sense. I would just like to make my game a lot simpler by having actors implement a HUD interface and than making HUD.class the first objects painted.
bourne bourne

2013/10/17

#
It would be nice to have some sort of Interface inheritance visually represented in the list of classes in the Greenfoot workspace. If anything - if a class implements another, it could display "implements.." italicized, grayed, and in smaller font within the class box, beneath the name. And when the class box is selected, boxes of the Interfaces it implements appears, say to the right with arrows pointing to them. And perhaps having Interface boxes distinguished like they are in BlueJ would be nice.
Good idea! I like how it's laid out in BlueJ, and it would be nice to see some connection/identification between other classes.
danpost danpost

2013/10/17

#
If you are working with interfaces, then you are probably working beyond the intended scope of Greenfoot, which is to be an introduction to OOP and Java programming. In other words, the intent of Greenfoot is to get your feet wet and stay afloat (not to help you swim the channel).
bourne bourne

2013/10/17

#
I realize that stance to a degree, but would venture to say it falls close here. Interfaces are not all that complicated and are introduced in introductory Java courses. What can make them complicated for Greenfoot users would be how they are not distinguished or shown relationships with what implements them as they are in like BlueJ.
Upupzealot Upupzealot

2013/10/18

#
@danpost I thick interfaces were very important parts of OOP. They described how things(Objects) going(no matter what ther are), it's also very useful in game develop~
There are more replies on the next page.
1
2
3
4