The way you programmed the 'wasd' keys, they are prioritized: up, down, left, then right. It would be nice if combinations (one of 'ws' with one of 'ad') would work on rotating the image at the same time. Also the 'f' key should act like a toggle, but it does not always change to mode (you should use 'Greenfoot.getKey' to catch the 'f' key instead of Greenfoot.isKeyDown).
A new version of this scenario was uploaded on Wed Oct 10 12:00:44 UTC 2012
Implemented the control suggestions by danpost and fixed the toggle.
A new version of this scenario was uploaded on Wed Oct 10 12:24:29 UTC 2012
Added my starfield as an image.
Can you make a translucent cube with bubbles set inside of it (that rotate with the cube). You accomplish that, I will 'like' it. You may have run out of number keys, but there are also plenty of letter keys!
Hey MatheMagician, I noticed the way you do drawing is to simply draw 100x100 polygons for each visible face. Being that there are about 3 faces visible at a time, that amounts to 30,000 polygons for a single view! Have you considered using a custom polygon routine that could use linear interpolation? That way you could be drawing pixels, not polygons, and might be a lot faster.
Usually, I am actually only drawing 100 pixels by 100 pixels for each face. However, this currently has the limitation of not being scalable. That's when I use the polygon's (in the slow mode), but as you know, this is very slow. I am currently working on what you just mentioned, essentially my own polygon drawing code..
A new version of this scenario was uploaded on Thu Oct 11 11:48:11 UTC 2012
Now scaleable on all levels and uses no fillPolygon.
A new version of this scenario was uploaded on Thu Oct 11 11:51:19 UTC 2012
Better screenshot.
A new version of this scenario was uploaded on Thu Oct 11 12:25:33 UTC 2012
Better screenshot.
A new version of this scenario was uploaded on Fri Oct 12 17:42:52 UTC 2012
Bubbles!! (for Danpost)
What you have created is images of bubbles on the flat surfaces of the cube.
(1) the cube is not semi-transparent.
(2) the bubble are not 'inside' the cube (rotating around each other)
This, therefore, does not satisfy my stated requirements.
The bubbles are in the cube, but it is hard to tell. It is kindof transparent, but I will work on that as well. I'll update it with those improvements.
A new version of this scenario was uploaded on Fri Oct 12 21:03:18 UTC 2012
This demonstrates how the bubbles are being drawn in the cube and it is very transparent now. But the bubbles still don't float.
2012/9/16
2012/9/16
2012/9/16
2012/10/10
2012/10/10
2012/10/10
2012/10/11
2012/10/11
2012/10/11
2012/10/12
2012/10/12