Professional Documents
Culture Documents
2022
Computer Programming 3
Laboratory
Arkanoid
2. Project analysis
For the project I’ve used the SFML library. It handles f.e. the rendering of textures, reading
input from the mouse etc.
The following types of power ups/downs occasionally drop from the blocks and fall towards
the paddle. They’re activated by touching them with the paddle
4. Internal specification
Classes:
- Entity - Base class for all entities in the game
Methods:
- void Entity::setPosition - function responsible for setting the position of
sprites, also takes into the account the offset of the sprite’s coordinates
- void Entity::createSprite - creates the entities sprite
5. Source code
https://github.com/polsl-aei-cp3-makro/76ee6fd2-gr14-repo
6. Testing
The project was tested for memory leaks using Valgrind integrated in the CLion IDE. After
excluding leaks reported to be originating from external libraries (e.g., X11, the windowing
system on Linux) Valgrind hasn’t detected any memory leaks. The program uses only smart
pointers, like unique_ptr and all objects are correctly deleted.