Skip to content

Commit

Permalink
Tiny pedo shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
nonk123 committed May 28, 2024
1 parent 98f7203 commit 2a75e83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/entities/pedo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "entities/pedo.hpp"

const constexpr float WIDTH = 3.0f, HEIGHT = 1.5f, VISUAL_HEIGHT = 10.0f;
const constexpr float WIDTH = 3.2f, HEIGHT = 2.2f, VISUAL_HEIGHT = 10.0f;

const constexpr float FOOTSTEP_DELAY = 0.2f, PAIN_DELAY = 1.4f;

Expand Down Expand Up @@ -141,6 +141,10 @@ void Pedo::draw() {
}

void Pedo::draw_impl(Color tint) {
DrawRectangle(
std::floor(pos.x), std::floor(pos.y), std::floor(width), std::floor(height), {0, 0, 0, 127}
);

Texture2D sprite;

switch (footstep_sprite) {
Expand Down

0 comments on commit 2a75e83

Please sign in to comment.