pacman/lib/Pellets.cpp
Corentin Jabot bbf3731cf4 Change window geometry for scoring.
* Add margins all around the board for better aestetics.
* Add room for scoring
* Because the texture atlas is a 32x32 grid, we can manipulate
textures as positions on that grid and only create a rectangle
for that texture in the rendering code.
* Avoid hardcoded values in the rendering code.
2021-06-15 23:55:55 +02:00

4 lines
111 B
C++

#include "Pellets.hpp"
Pellets::Pellets(const Board & board)
: positions(board.initialPelletPositions()) {}