May-15-2023, 08:36 PM
(May-14-2023, 01:53 PM)Fabrizio_fg Wrote: but when i have to move the object we move only the rectangle, what it means?Rectangle is use to position the surface. It just uses the x and y.
We move only the rectangle, and the surface? Remain in the original position?
There is a way to combine thi two object and move them with a command?
But first of all why we create a surfaces for a rectangles? we cant' t create a big surface with the dimension of the window and on this big surface create rectangles?
Rectangle is also use for collisions.
Surface can be use over and over again. Just set a new position.
Why cant you have big surface ? You can a bigger surface than the screen.
Tip. Take it one step at a time. Add one line of code. Run it. To see how it effect program.
99 percent of computer problems exists between chair and keyboard.