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

Zerg's Comments

Back to Zerg's profile

Very nice with the wall textures! I wonder, though, if it isn't possible to perhaps draw the wall texture from an image. Maybe I'll poke around with the code for you on that one too. Your scenario has gotten me interested in making a similar one. I'll post it if I can make it do lighting.
Glad I could help!
I got an image working in your code by replacing this: im.setColor(new Color(50,50,50)); im.fillOval((int)(x1-l),(int)(150-l),(int)(2*l),(int)(2*l));//only draw if close enough and on screen im.setColor(Color.white); im.drawOval((int)(x1-l),(int)(150-l),(int)(2*l),(int)(2*l)); im.setColor(Color.black); im.fillOval((int)(x1-.5*l),(int)(150-.5*l),(int)l,(int)l);//draw sphere with this: GreenfootImage enemy_img_draw=new GreenfootImage("image_name.png"); enemy_img_draw.scale((int)(2*l),(int)(2*l)); im.drawImage(enemy_img_draw,(int)(x1-l),(int)(150-l)); The only problem seems to be that when you get close to it, it crawls, and then eventually errors out. It could be an artifact of the scale method, but I'm not sure. Interested to see how you can use this!
Whoops! Thought I caught that one. It'll be fixed in the next update. Right now I have another problem. When I enable the fog of war, it slows the game down immensely. What it is doing is creating about 3000 objects with no code. Is there any way to reduce the memory strain of these objects?
Very nice! The red sphere coed definitely means possibilities for enemies. A suggestion: if you want to expand this, move the drawing enemy code into a sub function. It would be helpful as well to give your variables meaningful names. I tried modifying the code to create a mouse-look script. It mostly works, but to perfect it I need to get the Greenfoot window position on the whole screen. Just let me know if you want the code for it.
After reviewing the code, I must say: Well done! Unfortunately, the way you draw 3d means: -probably no textures -no looking up -probably no enemies In other words: no first person shooters. Still great as a maze game though If you want, I could give you code to have a mouse-look for left and right looking.
ZergZerg

2008/11/10

Very interesting! The game runs a bit fast--about 4-5 months per second. Not sure if that's what you wanted or not. The movement of the people is a bit erratic. Not sure exactly how you could fix that though...
The fog of war can be activated by pressing "f"
ZergZerg

2008/11/4

Great idea for a game. The graphics are very nice now. I especially like the bubbles. Seems a bit hard to navigate from side to side. Maybe you could gradually slow the ship down when no key is pressed?