aboutsummaryrefslogtreecommitdiffstats
path: root/src/script.cpp
diff options
context:
space:
mode:
authorAndy Belle-Isle <drumsetmonkey@gmail.com>2019-10-07 18:35:47 -0400
committerAndy Belle-Isle <drumsetmonkey@gmail.com>2019-10-07 18:35:47 -0400
commit5f53889d4357d8dba6e726ed38358eca96dbeb47 (patch)
tree8d82a65d007f7bf69dcd650c95bc3ee1463a3002 /src/script.cpp
parent1b63e00b6b08133f5ee37ed90043eee0f67942fd (diff)
Added ability to change rendering offsets and sizes
Diffstat (limited to 'src/script.cpp')
-rw-r--r--src/script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.cpp b/src/script.cpp
index 3c0d0b2..4cfcddd 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -94,7 +94,7 @@ void ScriptSystem::scriptExport(void)
[this](sol::object t){ return worldSystem.addWorld(t); };
lua.new_usertype<Position>("Position",
- sol::constructors<Position(double x, double y), Position()>(),
+ sol::constructors<Position(float x, float y), Position()>(),
"x", &Position::x,
"y", &Position::y);
@@ -109,7 +109,7 @@ void ScriptSystem::scriptExport(void)
"flipx", &Render::flipX);
lua.new_usertype<Velocity>("Velocity",
- sol::constructors<Velocity(double, double), Velocity()>(),
+ sol::constructors<Velocity(float, float), Velocity()>(),
"x", &Velocity::x,
"y", &Velocity::y);