Mario: end of level logic

This commit is contained in:
2022-09-23 16:46:50 +02:00
parent 6211e8c756
commit 3437aa6b47
8 changed files with 88 additions and 23 deletions
+9
View File
@@ -64,6 +64,14 @@ protected:
virtual void setWorldTypeSrc(LandType::Value world);
bool isBouncable() {
return _bouncable;
}
void setBouncable(bool bouncable = true) {
_bouncable = bouncable;
}
private:
bool _tool = false;
bool _terrain = true;
@@ -85,6 +93,7 @@ private:
int _ticks_till_gravity = 0;
double _gravity_acceleration = 1.0 / (64.0 / 7.0);
bool _was_visible = false;
bool _bouncable = true;
};
extern const std::vector<uint64_t> possibleBlocks;