MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
anonymous_namespace{point.cpp} Namespace Reference

Classes

struct  TuxSprite

Functions

float random_float (float min, float max)

Variables

constexpr int DEFAULT_TUXES = 8
constexpr int FRAME_COUNT = 16
constexpr int INITIAL_PLACEMENT_ATTEMPTS = 200
constexpr float MAX_SIZE = 450.0f
constexpr float MAX_SIZE_SCALE = 2.0f
constexpr int MAX_TUXES = 1000
constexpr float MIN_SIZE = 306.0f
constexpr float MIN_SIZE_SCALE = 0.6f
constexpr float POPULATION_GROWTH_INTERVAL = 0.18f
constexpr float SIZE_SCALE_STEP = 1.12f
constexpr float SPRITE_COLLISION_SCALE = 0.44f
constexpr int TUXES_PER_SPACE_PRESS = 25
constexpr float WORLD_HALF_HEIGHT = 4.5f

Function Documentation

◆ random_float()

float anonymous_namespace{point.cpp}::random_float ( float min,
float max )
nodiscard

Definition at line 49 of file point.cpp.

49 {
50 static std::random_device rd;
51 static std::default_random_engine engine(rd());
52 std::uniform_real_distribution<float> dist(min, max);
53 return dist(engine);
54 }

Variable Documentation

◆ DEFAULT_TUXES

int anonymous_namespace{point.cpp}::DEFAULT_TUXES = 8
constexpr

Definition at line 22 of file point.cpp.

◆ FRAME_COUNT

int anonymous_namespace{point.cpp}::FRAME_COUNT = 16
constexpr

Definition at line 25 of file point.cpp.

◆ INITIAL_PLACEMENT_ATTEMPTS

int anonymous_namespace{point.cpp}::INITIAL_PLACEMENT_ATTEMPTS = 200
constexpr

Definition at line 34 of file point.cpp.

◆ MAX_SIZE

float anonymous_namespace{point.cpp}::MAX_SIZE = 450.0f
constexpr

Definition at line 28 of file point.cpp.

◆ MAX_SIZE_SCALE

float anonymous_namespace{point.cpp}::MAX_SIZE_SCALE = 2.0f
constexpr

Definition at line 32 of file point.cpp.

◆ MAX_TUXES

int anonymous_namespace{point.cpp}::MAX_TUXES = 1000
constexpr

Definition at line 23 of file point.cpp.

◆ MIN_SIZE

float anonymous_namespace{point.cpp}::MIN_SIZE = 306.0f
constexpr

Definition at line 27 of file point.cpp.

◆ MIN_SIZE_SCALE

float anonymous_namespace{point.cpp}::MIN_SIZE_SCALE = 0.6f
constexpr

Definition at line 31 of file point.cpp.

◆ POPULATION_GROWTH_INTERVAL

float anonymous_namespace{point.cpp}::POPULATION_GROWTH_INTERVAL = 0.18f
constexpr

Definition at line 33 of file point.cpp.

◆ SIZE_SCALE_STEP

float anonymous_namespace{point.cpp}::SIZE_SCALE_STEP = 1.12f
constexpr

Definition at line 30 of file point.cpp.

◆ SPRITE_COLLISION_SCALE

float anonymous_namespace{point.cpp}::SPRITE_COLLISION_SCALE = 0.44f
constexpr

Definition at line 29 of file point.cpp.

◆ TUXES_PER_SPACE_PRESS

int anonymous_namespace{point.cpp}::TUXES_PER_SPACE_PRESS = 25
constexpr

Definition at line 24 of file point.cpp.

◆ WORLD_HALF_HEIGHT

float anonymous_namespace{point.cpp}::WORLD_HALF_HEIGHT = 4.5f
constexpr

Definition at line 26 of file point.cpp.