summaryrefslogtreecommitdiff
path: root/application/main.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 14:19:21 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-14 14:19:21 +0000
commitc08e33649931b679b17488ba6f7dab1d628213fd (patch)
tree76382c1740e4605667dce2fc74f03034f0b34960 /application/main.cpp
parentApply pitch to vehicles on a link (diff)
downloadilt-c08e33649931b679b17488ba6f7dab1d628213fd.tar.bz2
ilt-c08e33649931b679b17488ba6f7dab1d628213fd.tar.xz
ilt-c08e33649931b679b17488ba6f7dab1d628213fd.zip
Add our first vehicle
Diffstat (limited to 'application/main.cpp')
-rw-r--r--application/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp
index 30b4a44..8b2488f 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -3,6 +3,7 @@
#include <collection.hpp>
#include <game/network/rail.h>
#include <game/terrain.h>
+#include <game/vehicles/railloco.h>
#include <game/world.h>
#include <game/worldobject.h>
#include <gfx/camera_controller.h>
@@ -70,8 +71,9 @@ public:
const glm::vec3 j {-1100, 5, -1100}, k {-1100, 15, -1000}, l {-1150, 30, -1050}, m {-1050, 10, -1050};
rl->addLink<RailLinkStraight>(j, k);
rl->addLink<RailLinkCurve>(l, k, glm::vec2 {l.x, k.z});
- rl->addLink<RailLinkStraight>(l, m);
+ auto l3 = rl->addLink<RailLinkStraight>(l, m);
rl->addLink<RailLinkCurve>(m, j, glm::vec2 {m.x, j.z});
+ world.create<Brush47>(l3);
}
Shader shader;