|
|
|||||
Topic, Game "Captain Dan v Zombie Plan" | ||||||
| ||||||
You must register or log in to post a message.is it a type of maze game ? This other one is similar but is clearer about how to test the that the interesection is really inside the line segments ((0<=Ua<=1) && (0<=Ub<=1)) segment segment intersection So you have a segment line from the zombie to the hero. For each block, you have to test the interesection of the zombie-hero line with its 4 sides. If one of these sides collides, the zombie can't see the hero. To improve the performances, instead of checking ALL the blocs, you can exclude a bunch of blocks that don't have a chance to collide. You compute the square bound of the zombie-hero line segment, and you exclude all blocs that don't touch this square. glitch list for my own sake: [FIXED, NEEDS TESTING] depth sorting [FIXED] line of sight math - better editor - improve graphics - better zombie physics (walk through walls glitch) I think once I get all this sorted out I'll start adding late testers. [edit] here it is : I understand now for the line of sight. You should use a real line and compute the intersection between this segment and the wall squares. This is should be quite easy to implement and will not slow down the game too much. @jp - I think you're right about touching zombies and dieing, or at least have them attack you. The zombies are a bit stupid right now though :P I have a lot of depth sorting issues right now, if you could screenshot exactly what you're talking about though it would be a big help. Also, I'm working on a demo to show you how my line of sight stuff works, I'll post it soon. EDIT: here you go, this might give you a better idea of why the diagonal stuff works like it does. http://ian.janasnyder.com/visionTest.swf Other than checking for 2x2 squares every time it jumps over one row or column, I'm not sure how I could make a solution for this that very elegant at all. If you want to test the game just so you can play it for fun, I suggest you wait for the final product. If you are truly interested in providing exceptional feedback for a broken product (so it can be fixed!), then feel free to apply. Late Testers: cooltomer doomlord pikachu67 allycat369 zakko600 locostro BenTen XD I don't have lag on the second level and I didn't noticed any zombie seeing through wall. Ninja, if you can reproduce it systematically, that would be very helpful to capture a video. I made a level ( [lvlid=2033 removed] ) to make my remarks. I find it strange that the zombie can pass through diagonal walls. And also they can see through those diagonals. Other remarks : Gameplay : When the hero hit the zombie, even if he is behind it, maybe he should be caught. Rendering : The head of the zombie seems to be always on a layer above the hero even when it should not be. -zombies seeing through walls -2nd level lag -easier to make zombies Also I want to bring the graphics closer to the final product in the next week. game: --zombies see through walls -*zombie's necks are flat sometimes **zombies can be shot even after death **winning when dieing after first level is completed --2nd level lag editor: **resizes when testing levels (includes turning upside down) -*deletion/creation tiles are messed up **zombies hard to make Did I miss anything? Two stars means I know what's causing it and it will be fixed soon, one star means I'm not completely sure what's causing it, but have some idea, no stars means I'm completely lost. The one that has me most concerned is the zombies seeing through walls. Did this happen in level 1/2/custom? Were you completely behind a wall or near a corner? How many zombies were there on screen? How thick was the wall? How bad was the lag, ninja? Did it clear up after a while or did it seem to get slower and slower at a constant rate? Did this happen every time you tried to play it, or only once? Would it help you test better if I added a framerate counter? I realize the editor is very hard to use right now, any suggestions you guys have for making it work more intuitively in the final version are more than welcome! And thanks for submitting yourselves to something so incomplete. Also, for the time being, when the editor resizes all crazy or turns upside down, press the "home" button. so good luck!:) late testers: cooltomer doomlord pikachu67 allycat369 zakko600 Seems like a great game. I love the graphics. [Edit] Sometimes when you have tested the level you are creating it turns upside down! And i dont think the deletion/creation tiles is working. Now you see why I have the early/late categories, eh? :P I've added you birjolaxew, I'll pm you an explanation of how everything is supposed to work in a bit. | Games forumPlay Game "Captain Dan v Zombie Plan"First post of the topic |
Anyway, I'll upload that soon I guess.
Thanks for the links jp, ultimately the methods you posted proved too slow, but they eventually led me to a better solution.