Minor fixes/tweaks
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 16s
This commit is contained in:
parent
7484e710e7
commit
3619d5863a
2 changed files with 1 additions and 8 deletions
|
@ -28,7 +28,6 @@ TRunnerScreen::TRunnerScreen(std::weak_ptr<ScreenStack> stack)
|
|||
camera_pos{0.0F, 4.0F, 4.0F},
|
||||
camera_target{0.0F, 0.0F, 0.0F},
|
||||
mouse_hit{0.0F, 0.0F, 0.0F},
|
||||
pos_value(0.0F),
|
||||
idx_hit(SURFACE_UNIT_WIDTH / 2 +
|
||||
(SURFACE_UNIT_HEIGHT / 2) * SURFACE_UNIT_WIDTH) {
|
||||
#ifndef NDEBUG
|
||||
|
@ -204,11 +203,6 @@ TRunnerScreen::~TRunnerScreen() {
|
|||
}
|
||||
|
||||
bool TRunnerScreen::update(float dt) {
|
||||
pos_value += dt * POS_VALUE_INC_RATE;
|
||||
if (pos_value > PI * 2.0F) {
|
||||
pos_value -= PI * 2.0F;
|
||||
}
|
||||
|
||||
if (IsMouseButtonPressed(0)) {
|
||||
float press_x = GetTouchX();
|
||||
float press_y = GetTouchY();
|
||||
|
|
|
@ -20,7 +20,7 @@ constexpr unsigned int SURFACE_UNIT_HEIGHT = 51;
|
|||
constexpr float SURFACE_X_OFFSET = (float)SURFACE_UNIT_WIDTH / 2.0F - 0.5F;
|
||||
constexpr float SURFACE_Y_OFFSET = (float)SURFACE_UNIT_HEIGHT / 2.0F - 0.5F;
|
||||
|
||||
constexpr float SURFACE_HEIGHT_INTERVAL = 0.5F;
|
||||
constexpr float SURFACE_HEIGHT_INTERVAL = 0.7F;
|
||||
|
||||
class TRunnerScreen : public Screen {
|
||||
public:
|
||||
|
@ -65,7 +65,6 @@ class TRunnerScreen : public Screen {
|
|||
Vector3 camera_pos;
|
||||
Vector3 camera_target;
|
||||
Vector3 mouse_hit;
|
||||
float pos_value;
|
||||
unsigned int idx_hit;
|
||||
|
||||
void camera_to_targets(float dt);
|
||||
|
|
Loading…
Reference in a new issue