mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-01 06:23:00 +00:00
ru:: guinea pigs
This commit is contained in:
@@ -224,6 +224,13 @@ void load_room(fhstream& f, cell *c) {
|
||||
b->respawn = b->where; b->postfix();
|
||||
r.entities.emplace_back(std::move(b));
|
||||
}
|
||||
else if(cap == "GUINEAPIG") {
|
||||
auto b = std::make_unique<guineapig>();
|
||||
sscanf(param.c_str(), "%lf%lf%lf%d", &b->where.x, &b->where.y, &b->pigvel, &b->spindir);
|
||||
b->pigvel /= game_fps; b->falling = true; b->vel = xy{0,0};
|
||||
b->respawn = b->where; b->respawn_spindir = b->spindir; b->postfix();
|
||||
r.entities.emplace_back(std::move(b));
|
||||
}
|
||||
else if(cap == "VTRAP") {
|
||||
auto b = std::make_unique<vtrap>();
|
||||
sscanf(param.c_str(), "%lf%lf", &b->where.x, &b->where.y);
|
||||
|
||||
Reference in New Issue
Block a user