Mario: end of level logic
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user