diff options
author | cflip <cflip@cflip.net> | 2022-03-24 08:45:00 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2022-03-24 08:45:33 -0600 |
commit | 0d99c20d0fafcf2b86d9d33430659de76b030395 (patch) | |
tree | 9a84c26683dcc7ddb09433d4bac5a0ff872c9189 /src/main.cpp | |
parent | 31d273c11bfd83a490ca538ba67d0a75f1d22cd7 (diff) |
Add acceleration/deceleration to the train
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 436660c..28b2281 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,6 +54,7 @@ int main(int argc, char** argv) int my = y / Scale + yOffs; auto pos = ScreenToTile({ mx, my }); engine.setPosition(pos.x, pos.y); + engine.setSpeed(0.2f); } }); |