This week our group start dividing up roles and ideas to research.
I focussed on:
1) a scrolling full screen background.
So far I have been able to get 2 or more images to loop in continuous motion , scrolling from right to left.
the image below is an example of what I have which loops. I have not concerned myself with the quality of the graphics yet , more so on the code concerning them.
2)a randomly generated foreground.
from the image above , we can see at the bottom there is a darker foreground terrain , this has been randomly generated. When the helicopter passes the right x barrier , he will emerge at the same height but back on the left side , and a new foreground terrain will have been generated.
3) scrolling/regenerating foreground for different/progressive stages of the game
4) a drawtext() function for displaying the text
I have so far included text (spriteFont files) to my project to show a dashboard including player lives remaining , the helicopters altitude and distance. As well as text that will only appear once the helicopter has lost all it's lives.
5) controlling movement of playable sprite
I have the helicopter moving with direction , speed using gameTime.ElapsedGameTime.TotalSeconds.
I have not yet introduced rotation .
6) restraints for helicopter sprite on screen
restraints have been put into action keeping the helicopter on screen, or allow the helicopter progression on to new terrains generated by passes through the x>screenwidth barrier.
7) collision detection of sprite on foreground
I have been able to get a rough detection for when the sprite(helicopter) collides with the foreground... but its is still not 100% accurate.
8) displaying text and alternative sprite when helicopter crashes.
No comments:
Post a Comment