Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Images and Sprites [6/8]

The member .center from type sprite is of type point2D. It specifies the center of the sprite, which affects the rotation and the positioning of the sprite.

The member function .draw from type sprite always places the center point on the position given by the first argument.

The center points of the resulting images have been marked by red dots.

Loading...