Tag Info

New answers tagged

0

Lets say you have your rectangles at a certain coordinate to the right (x,y). Then, an easy way is that on each rendering call you reduce the x coordinate of the rectangles by some dx. #define dx 0.1 render(){ draw_rectangle(xrec, yrec, zrec); xrec -= dx; } If you have a logic loop separated from the rendering loop, then it is better to do the ...


1

You're right, it can be done in two ways: -Moving the player -Moving the world This seems like a 50-50 deal. It doesn't matter how you do it, right? I don't agree. I would ALWAYS suggest moving the player. Because if you choose to move the world now, and a few months further on in development, when you have enemies, npc's, and other entities on screen, ...



Top 50 recent answers are included