lundi 18 avril 2016

C++ Images moving at a random trajectory SDL

I am creating a game in which a character moves around the screen and will dodge objects flying at him from initially off and then going across the screen for as long as possible.

I currently have the image of the character loaded to the screen and can be moved by keypresses but I have been struggling to work out how to load in images for the objects (will be the same image but multiple times) but also have them fly off in a random direction.

I don't want an exact answer and i am not allowed post my code, i just want some direction in which features to use to make this possible and some idea on the structure i would set it out in as i am very new to C++, thanks.




Aucun commentaire:

Enregistrer un commentaire