diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-17 11:57:13 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-17 11:57:13 +0100 |
commit | ed7e68e58ffdc369dbd6f7ac3fbebe19afeb56a2 (patch) | |
tree | 677e3d916757c46f1f5180176d919a6eaf0d4bb7 /application | |
parent | First cut of instance vertices and proxy (diff) | |
download | ilt-ed7e68e58ffdc369dbd6f7ac3fbebe19afeb56a2.tar.bz2 ilt-ed7e68e58ffdc369dbd6f7ac3fbebe19afeb56a2.tar.xz ilt-ed7e68e58ffdc369dbd6f7ac3fbebe19afeb56a2.zip |
Create a large test forest
Diffstat (limited to 'application')
-rw-r--r-- | application/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp index aea3d2e..a0b2dfd 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -79,7 +79,11 @@ public: train->currentActivity = train->orders.current()->createActivity(); auto foliage = std::dynamic_pointer_cast<Foliage>(assets.at("Tree-01-1")); - world.create<Plant>(foliage, Location {{-1100, -1100, 0}}); + for (float x = 900; x < 1100; x += 3) { + for (float y = 900; y < 1100; y += 3) { + world.create<Plant>(foliage, Location {geoData->positionAt({-x, -y})}); + } + } } auto t_start = std::chrono::high_resolution_clock::now(); |