1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 18:07:41 +00:00

ru:: pendulum platforms

This commit is contained in:
Zeno Rogue
2025-05-03 22:09:30 +02:00
parent 828160f548
commit b9230bd662
4 changed files with 98 additions and 20 deletions

View File

@@ -145,6 +145,11 @@ void load_room(fhstream& f, cell *c) {
r.entities.emplace_back(std::move(b));
}
}
else if(cap == "PENDULUM") {
auto b = std::make_unique<pendulum_platform>();
sscanf(param.c_str(), "%lf%lf%lf%lf%lf%lf", &b->a.x, &b->a.y, &b->b.x, &b->b.y, &b->period, &b->shift);
r.entities.emplace_back(std::move(b));
}
else if(cap == "HINT") {
auto b = std::make_unique<hint>();
sscanf(param.c_str(), "%lf%lf%lf%lf", &b->where.x, &b->where.y, &b->size.x, &b->size.y);