I have exactly this elephant in my game, but it looks bad when it is bigger.
Oh and by the way, looks like I did not make that clear, sorry!
"I can't solve my problem with the scaling" did not mean that I have a problem with the scaling. It actually meant that I have a problem and wanted to solve it with scaling the images of the actor to a square. But as I said, that did not look well.
Then I saw the method drawImage(), so the next idea was, I give the actors an empty image (a square) and draw the other image above that. But that just did not work...
Why do I want that square? With a square it would be easier to let the actor know if there is a wall or something right next to it.
I have moving AI too, but i decided that one cell has 51 * 51 pixels and not just one. And it looks like that the method getOneObjectAtOffset(dx,dy,class) does not try to find the class from the middle of the picture + dx/dy, because if it would, every class should work with the same values, but they do not.
But I think I am fine, I always have some problems that I can not solve. Then I try to find another way to do exactly the same with often 20 times as much source code. As long as it works then, it is good.
Thank you but I can't solve my problem with the scaling because the actor's look bad when they are scaled different. I did not notice it here because they are small enough :)
Need to find another way and I will probably, like always, pick the most time consuming one.
CONTROLS:
Release Ball: Space
Move Left: Left Arrow Key or A
Move Right Left Arrow Key or A
^^
The ball shouldn't be faster when it moves to the sides. You could import the class Animal. There are the methods move() ands turn(), which let the balls travel the same distance in a given time.
Want to look how you scaled your images, because I saw it last time and it does not work for me, but the source code is missing now while it still has the tag "with-source". Did you just forget it?
Funny idea :)
Things you could improve if you like.
- You keep your score when you click the reset button.
- Sheeps sometimes spawn at the edge of the screen or over the tent.
- The counter is a green foot at the beginning.
2013/2/8
Bomberman
2013/2/7
Bomberman
2013/2/6
Bomberman
2013/1/30
MapWorld SuperClass
2013/1/30
MapWorld SuperClass
2013/1/30
Block Breaker
2013/1/30
MapWorld SuperClass
2013/1/26
MapWorld SuperClass
2013/1/26
Sheep Herder