summaryrefslogtreecommitdiffhomepage
path: root/editor/app.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-28 00:50:24 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-28 00:50:24 +0100
commita537f2c28acef8c43535f2326997499d29eb7e01 (patch)
tree323b897ca5de90f0f2ac561d4c7ab83c71a399a2 /editor/app.cpp
parent28da3cfd99370694806286df363aa5fa19c49de0 (diff)
enable move speed scaling with critter.speed
Diffstat (limited to 'editor/app.cpp')
-rw-r--r--editor/app.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/app.cpp b/editor/app.cpp
index 70766ccd..fe4f9b53 100644
--- a/editor/app.cpp
+++ b/editor/app.cpp
@@ -68,12 +68,13 @@ shared_ptr_wrapper<critter> app::ensure_player_character(world& w)
{
critter_proto cproto;
cproto.name = "Player"_s;
+ cproto.speed = 4;
cproto.playable = true;
ret.ptr = w.make_object<critter>(w.make_id(), global_coords{}, cproto);
_character_id = ret.ptr->id;
}
fm_debug_assert(ret.ptr);
- return shared_ptr_wrapper<critter>{ret};
+ return ret;
}
void app::reset_world(class world&& w_)