I did not request the bubbles to float; just to be able to appear to rotate around each other. And, althought they do not really look like bubble, you did accomplish what I required. Job!
@PoleBro764, that is not a bug. There is no way to be consistent in that respect. Even if all four sides are oriented properly, you cannot expect the top or bottom image to line up with all the sides.
Looks great and uses some real mathematical functions to make things happen.
A suggestion. Now you would have to modify the Man class everytime you need to adjust one of possible pictures (texture, sand, board, etc.) If you could make them external to the Man class, e.g. create a Texture class (with the image and the key it should act upon) and have those make themselves known to the Man class - so he can keep 'em in a list. In Man's act() method you can ask for each Texture object if its key has been pressed and return its image.
This way you'll never have to add a new GreenfootImage as a private variabele, scale it to a new size in the constructor and also check it for a keypress in the act() method. Just a small change to prevent the Man's class for breaking accidentally whenever you need to add, change oe remove a new image to be displayed.
Keep up the good work!
Thanks for the suggestion, teddy. I may not create a new class, but I think it would be good if I changed how it does the textures and stuff. If you really like it, I would appreciate it if you pressed the like button.
Still a little long for me, are you sure you fixed it?
A new version of this scenario was uploaded on Sun Nov 18 16:07:54 UTC 2012
I put all the info about images in a new class to streamline the actual cube drawing code.
A new version of this scenario was uploaded on Sun Nov 18 16:13:15 UTC 2012
Yeah, I think building a small 3D Engine for Greenfoot would be a good contribution to the community and those who want to take a step forward and try make basic 3D games.
2012/10/12
2012/10/12
2012/10/20
2012/10/20
2012/10/23
2012/10/25
2012/10/25
2012/10/25
2012/11/16
2012/11/16
2012/11/16
2012/11/16
2012/11/16
2012/11/17
2012/11/18
2012/11/19
2012/11/20
2012/11/28
2012/11/29
2012/11/29
2012/11/29
2012/11/29
2013/1/9
2013/1/9
2013/4/18
2013/5/15
2013/9/6
2013/9/6
2013/9/6
2013/9/6
2013/9/6
2013/9/6
2013/9/6
2013/9/7
2013/9/7
2013/9/10
2013/9/10
2013/9/23
2016/11/29