I've tried having a seperate class for the character (stickguy at this time).
I'm going with arrow key controls for now, just till I get it running better.
Then I started trying to get the puddles to generate randomly when executed, but stay like that until the program ended. Had a bit of trouble, but nearly got there. Ran into the problem of trying to detect when my character's feet touched the puddles.
I experimented with a lot of the ideas I mentioned previously, but the easiest way I found was generating 10 circles close together, looking sort've like puddles. I ended up with a class for the parts within each puddle as well as a class for the puddle itself, on top of the stickGuy and the main class.
I got to this point (for some reason my guy stopped spawning in the centre of the screen), and then had the problem of nothing clearing the screen when my char moved (making the blur in the pic to the right).
Finally I tried restarting to try it a different way (using a square with a shadow as my char).
It felt like I was going backwards. I changed the movement to click where you wanted to go.
It was supposed to slowly 'walk' there, or if held and released, 'jump' (height based on click length) there instead. This got tricky and I ran out of time. It was supposed to make wading noises going through puddles or a splash based on the height of the jump upon impact.
No comments:
Post a Comment