Skip to content

Rectangle swap function requires concise documentation #90

Description

@renm10

This code snippet is from one of my projects using C++ and SFML. Given two Rectangle objects, the function swaps the height of the two objects, adjust the y-coordinates according to the ground value, changes the color of the rectangles to white, and has a delay at then end to make the animation smooth. However as I only have one comment above the function I thought the function requires better documentation of what the function does.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions