1 decade ago by Melimelo
Hello,
I'm new to Impact and I just read the book from jesse freeman and watched some tutorial and I had some questions.
My first questions is about background :
How would you do a background scrolling slowly over time and repeating itself infinitly. Let me show you some example to make it clear.
http://f.cl.ly/items/1p3H3T3f0T1M1Y2y1G2y/background_001.png
The background would scroll to the left and after sometime it would look like that :
http://f.cl.ly/items/1p3z0h122h3T153z2e1H/background_002.png
The red line is just to show the real limit of the pictures that is just looping there ...
My second questions is about drop :
I understand how the map is randomly generated but I was wondering if I have precalculated some map chunk and want them to follow each after an other in a random order wouldn't there be a way to optimize the number of draw calls or something ?
Thanks in advance.
Regards,
I'm new to Impact and I just read the book from jesse freeman and watched some tutorial and I had some questions.
My first questions is about background :
How would you do a background scrolling slowly over time and repeating itself infinitly. Let me show you some example to make it clear.
http://f.cl.ly/items/1p3H3T3f0T1M1Y2y1G2y/background_001.png
The background would scroll to the left and after sometime it would look like that :
http://f.cl.ly/items/1p3z0h122h3T153z2e1H/background_002.png
The red line is just to show the real limit of the pictures that is just looping there ...
My second questions is about drop :
I understand how the map is randomly generated but I was wondering if I have precalculated some map chunk and want them to follow each after an other in a random order wouldn't there be a way to optimize the number of draw calls or something ?
Thanks in advance.
Regards,