summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-02 22:43:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-02 22:43:49 +0200
commita16deb8ee39dd56f4b68a2808e4f619fd8d58ce7 (patch)
treeaef94a006bf34cb3696435c2284baf6efe8547c2 /main.cpp
parentc8aa44e6b9543f5d90a02bc878d88ea07a747d78 (diff)
a
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 237a85c5..df1f71fd 100644
--- a/main.cpp
+++ b/main.cpp
@@ -85,7 +85,6 @@ chunk app::make_test_chunk()
void app::draw_chunk(chunk& c)
{
- constexpr auto N = TILE_MAX_DIM;
_floor_mesh.draw(_shader, c);
}
@@ -99,6 +98,7 @@ app::app(const Arguments& arguments):
//.setSampleCount(4)
}
{
+ reset_camera_offset();
#if 0
std::vector<QuadVertex> vertices; vertices.reserve(1024);
std::vector<UnsignedShort> indices; indices.reserve(1024);
@@ -180,7 +180,7 @@ void app::drawEvent() {
void app::do_camera(float dt)
{
- constexpr float pixels_per_second = 100;
+ constexpr float pixels_per_second = 512;
if (keys[key::camera_up])
camera_offset += Vector2(0, 1) * dt * pixels_per_second;
else if (keys[key::camera_down])