5 #include <SFML/Graphics.hpp> 14 Transformation* Transformation::singleton =
nullptr;
16 Transformation::Transformation() {}
18 Transformation::Transformation(
double gridWidth,
double gridHeight,
double windowWidth,
double windowHeight)
19 : widthScale(windowWidth/gridWidth), heightScale(windowHeight/gridHeight) {}
32 singleton =
new Transformation(gridWidth, gridHeight, windowWidth, windowHeight);
42 return x / widthScale;
46 return y / heightScale;
All the game gui elements of the Arkanoid game.
Representation of a vector.