diff options
-rw-r--r-- | Scripts/init.lua | 10 | ||||
-rw-r--r-- | src/render.cpp | 1 | ||||
-rw-r--r-- | src/render.hpp | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/Scripts/init.lua b/Scripts/init.lua index 3e35da9..9983c98 100644 --- a/Scripts/init.lua +++ b/Scripts/init.lua @@ -18,11 +18,11 @@ bird = { visible = true }, Idle = function(self) - if (self.visibleTick >= 20) then - self.Render.visible = not self.Render.visible - self.visibleTick = 0 - end - self.visibleTick = self.visibleTick + 1 + --if (self.visibleTick >= 20) then + -- self.Render.visible = not self.Render.visible + -- self.visibleTick = 0 + --end + --self.visibleTick = self.visibleTick + 1 end, visibleTick = 0 } diff --git a/src/render.cpp b/src/render.cpp index 9355513..8e9cbdf 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -63,6 +63,7 @@ void RenderSystem::update([[maybe_unused]] entityx::EntityManager& entities, ); glm::mat4 model = glm::mat4(1.0f); + model = glm::scale(model, glm::vec3(2.0f)); glUseProgram(s); diff --git a/src/render.hpp b/src/render.hpp index 6362d63..5d3025c 100644 --- a/src/render.hpp +++ b/src/render.hpp @@ -38,8 +38,8 @@ class RenderSystem : public entityx::System<RenderSystem> { private: constexpr static const char *title = "gamedev2"; - constexpr static int width = 640; - constexpr static int height = 480; + constexpr static int width = 1280; + constexpr static int height = 720; std::unique_ptr<SDL_Window, void (*)(SDL_Window *)> window; SDL_GLContext context; |