I am trying to create a simple classic Donkey Kong clone. I am trying to create the girders for it. Right now I created a simple GirderActor and I re-use it many times within the scenario - generic reusable. I set the size to 256 x 32 .. place it .. rotate it slightly .. and voila - works great and is quite efficient.
Where I'm running into difficulty is when I start putting the finishing touches on it - specifically the actor image. Because the girders need to be a single actor in order for me to rotate it - I am needing the ability to scale and tile an image. So my 8x8 pixel image will scale to the height of the actor (32 pixels) and then tile itself to fill the entire 256 pixel length.
When using the GreenfootImage class however, it seems to only scale the image to fill the entire actor - I don't see an option or way to use the image for an actor, with a tile behaviour.
There is a method of GreenfootImage to return the BufferedImage called getAwtImage(). If I check the docs for Java's BufferedImage class I see methods such as getNumXTiles(), getNumYTiles(). The more I read into the docs however the more it looks like this isn't what I'm after - wondering if its more of a memory tile functionality.
Can anyone point me in the right direction? If there is a simpler way to implement this then please enlighten me.
Thanks

