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

Comments for Castle Storm 3D

Return to Castle Storm 3D

ZergZerg

2008/11/13

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!
Builderboy2005Builderboy2005

2008/11/13

Oooooh, this might be good! Many thanks will be in order at the conclusion of this game. I haven't had a chance to try it yet, cause i need to be somewhere else right now, but this opens up a whole new idea sequence for this game... ...i might need to include a credits sequence ;)
ZergZerg

2008/11/13

Glad I could help!
A new version of this scenario was uploaded on Fri Nov 14 01:37:06 UTC 2008
A new version of this scenario was uploaded on Fri Nov 14 01:38:11 UTC 2008
Builderboy2005Builderboy2005

2008/11/14

Ahh! It won't work! Even though it works in greenfoot! Ahhh!
mutantlegmutantleg

2008/11/14

Relax, its just the infamous filename bug, just rename "Sun.png" to "sun.png" (awesome stuff btw :O
A new version of this scenario was uploaded on Fri Nov 14 05:22:04 UTC 2008
A new version of this scenario was uploaded on Fri Nov 14 06:13:25 UTC 2008
qnanqingqnanqing

2008/11/14

the brick texture is good ! now i not getting headache again because of that ! :) slow rotating speed make me headache, now its faster, the speed to, it was great !
kenshinakhkenshinakh

2008/11/14

This is very cool. I can see a possibility for you to implement a FPS now ;)
ZergZerg

2008/11/14

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.
t3hwookie90t3hwookie90

2008/11/14

This looks really intresting. I really like the textures! This kinda reminds me of that old windows 98 maze screensaver! lol. I look forward to see how you could make this into a game (i.e. mazecraze, fps etc.)
Builderboy2005Builderboy2005

2008/11/14

I know there is a way to get textures mapped onto the walls, i just didn't do it because its kind of difficult, and its not high on my priority list.
Builderboy2005Builderboy2005

2008/11/14

Zerg, where did you get the scale function, cause i thought it was from java.awt.Graphics2D, but i believe i was mistaken, because it won't let me use anything else from that.
Builderboy2005Builderboy2005

2008/11/14

wait, never mind i am an idiot :)
A new version of this scenario was uploaded on Fri Nov 14 21:09:20 UTC 2008
A new version of this scenario was uploaded on Fri Nov 14 21:09:54 UTC 2008
A new version of this scenario was uploaded on Fri Nov 14 23:31:22 UTC 2008
A new version of this scenario was uploaded on Fri Nov 14 23:32:24 UTC 2008
A new version of this scenario was uploaded on Sat Nov 15 15:54:40 UTC 2008
A new version of this scenario was uploaded on Sat Nov 15 15:54:51 UTC 2008
qnanqingqnanqing

2008/11/15

because of dark background (or something) why dont you change the soldier image, with ghosts image :D
Builderboy2005Builderboy2005

2008/11/15

Because ghosts can't fire weapons at you. (Not that these guys do anyway)
qnanqingqnanqing

2008/11/15

fire weapon ? i think that's soldier was friend (following not firing :D)
Builderboy2005Builderboy2005

2008/11/16

I've been noticing these little horizontal lines appearing on the screen sometimes during operation. And when i act through it, they show up for a split second but are gone by the end of the act. The reason i ask is because this sometimes does not happen and i am wondering if this is some kind of glitch or problem with my code or something.
qnanqingqnanqing

2008/11/17

believe me, if you change the soldier image with ghosts image, it will make you jump off your seat !! :D many ghost image i found in Google and i copy it to the soldier image and that, was, scary ! ^^
A new version of this scenario was uploaded on Tue Nov 18 15:27:41 UTC 2008
A new version of this scenario was uploaded on Tue Nov 18 15:29:30 UTC 2008
RHINO_Mk.IIRHINO_Mk.II

2008/11/18

Not bad... just a couple things: I want to strafe, and I want to see bullets whizzing past if they miss you!
qnanqingqnanqing

2008/11/19

i bet this this will be the weekly winner, haha
SDNSDN

2008/11/19

Good! very fast and smooth. I created simple (2D) labyrinth for my friends (mobile J2ME), but it's tiled - by step (see my site http://sdn.crimea.ua/index.en.html)
MicahMicah

2008/11/20

Wow, this is really good. I would like to be able to strafe though.
Builderboy2005Builderboy2005

2008/11/20

So, many people want to see strafing, and i have the technology, but being a gamer myself, i don't know what keys to assign it to and such. I was thinking of switching to WASD, but would that be a good idea? What keys would i use for strafing then? Its is, after all, the user's opinion that matters ;)
OpalelementOpalelement

2008/11/21

i would do the following: up - forward down - back left - strafe left right - strafe right a - turn left d - turn right i just think strafe works better with the forward/back part cuz strafe is a side action as is forward/back, not a turning and then a/d because i prefer to use ring finger and pointer finger for direction instead of my middle finger this way i can make a quick strafe/right turn without two keys on the same hand... kinda lol thats my opinion:)
Builderboy2005Builderboy2005

2008/11/21

that would work I did a bit more research and it seems WASD is only used for Mouse/keyboard games, since my game is keyboard only (Mayby with some mouse gui) i can get away with arrow keys :D
A new version of this scenario was uploaded on Fri Nov 21 05:30:41 UTC 2008
RHINO_Mk.IIRHINO_Mk.II

2008/11/21

Nice updates, but the scenario pauses when I'm standing somewhere right between two enemies and I fire.
A new version of this scenario was uploaded on Fri Nov 21 15:28:10 UTC 2008
Builderboy2005Builderboy2005

2008/11/21

Ah! that was a mildly obscure glitch. I'm suprised you came by it, i had bug tested this for a while. Thank you!
A new version of this scenario was uploaded on Sun Nov 23 04:58:47 UTC 2008
A new version of this scenario was uploaded on Sun Nov 23 05:29:21 UTC 2008
mutantlegmutantleg

2008/11/23

hey, i discovered this neat trick, java has a way of drawing a scaled image onto another one, so you can actually replace your enemy drawing code with this single line: im.getAwtImage().getGraphics().drawImage(en.getAwtImage(), (int)(x1-l), (int)(150-l*0.9), (int)(2*l), (int)(2*l),null); (dont know if its any faster, but at least you won't have to use that extra buff image)
Builderboy2005Builderboy2005

2008/11/23

well in the near future i will add multiple enemies, and all it will do is copy the correct image to the buffer, then scale it. This new way would take up a lot more memory because you would have 1 of those lines for every object. But i will have to run some tests.
A new version of this scenario was uploaded on Sun Nov 23 20:49:07 UTC 2008
ZergZerg

2008/11/24

I finally have time, so I am writing you a mouse-look bit of code :) What would be cool is some kind of radar that shows where the enemies are.
Builderboy2005Builderboy2005

2008/11/24

but that would ruin all the fun! The best part is that you don't know where they are. And what do you mean by mouse look? I guess i will have to see...
A new version of this scenario was uploaded on Mon Nov 24 15:53:48 UTC 2008
ZergZerg

2008/11/25

Seems broken... by mouse-look, I mean that moving the mouse to the left of right would turn the character. I have it working somewhat in a window, but not on a webpage yet
A new version of this scenario was uploaded on Tue Nov 25 16:06:45 UTC 2008