summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-03-06 23:41:40 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-03-06 23:41:40 -0500
commit6dab458c5fcd97aca871b46a43a2b46c80d1ed3c (patch)
tree84513a99b974000e0845ebf0ff43fa5ab6380c89 /src
parent16a515766862eb69dab70e081170da7ce39602a8 (diff)
downloadtanetane-6dab458c5fcd97aca871b46a43a2b46c80d1ed3c.tar.gz
tanetane-6dab458c5fcd97aca871b46a43a2b46c80d1ed3c.tar.bz2
tanetane-6dab458c5fcd97aca871b46a43a2b46c80d1ed3c.zip
Idling in front of the mirror faces you toward it
Diffstat (limited to 'src')
-rw-r--r--src/script_system.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/script_system.cpp b/src/script_system.cpp index 3325b79..50ea60a 100644 --- a/src/script_system.cpp +++ b/src/script_system.cpp
@@ -22,6 +22,11 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) {
22 "x", [] (const vec2i& v) { return v.x(); }, 22 "x", [] (const vec2i& v) { return v.x(); },
23 "y", [] (const vec2i& v) { return v.y(); }); 23 "y", [] (const vec2i& v) { return v.y(); });
24 24
25 engine_.new_usertype<Zone>(
26 "zone",
27 "ul", &Zone::ul,
28 "dr", &Zone::dr);
29
25 engine_.new_usertype<SpriteFrame>( 30 engine_.new_usertype<SpriteFrame>(
26 "spriteframe", 31 "spriteframe",
27 "center", &SpriteFrame::center, 32 "center", &SpriteFrame::center,
@@ -117,9 +122,11 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) {
117 122
118 engine_.new_usertype<Map>( 123 engine_.new_usertype<Map>(
119 "map", 124 "map",
125 "getName", &Map::getName,
120 "getWarpPoint", &Map::getWarpPoint, 126 "getWarpPoint", &Map::getWarpPoint,
121 "hasMusic", &Map::hasMusic, 127 "hasMusic", &Map::hasMusic,
122 "getMusic", &Map::getMusic); 128 "getMusic", &Map::getMusic,
129 "getZone", &Map::getZone);
123 130
124 engine_.set_function( 131 engine_.set_function(
125 "message", 132 "message",