Changes done during tetris development
This commit is contained in:
@@ -72,8 +72,8 @@ public:
|
||||
}
|
||||
if(jump_ < 0 || jump_ > jump_speed)
|
||||
jump_ = 0;
|
||||
y_ += grav * time_portion;
|
||||
y_ -= jump_ * time_portion;
|
||||
og_y += grav * time_portion;
|
||||
og_y -= jump_ * time_portion;
|
||||
}
|
||||
private:
|
||||
double max_gravity = 1.0;
|
||||
@@ -147,7 +147,8 @@ void addStuff(SDLPP::Scene &scene, std::shared_ptr<SDLPP::Renderer> &r) {
|
||||
scene.addObject(z);
|
||||
auto y = std::make_shared<SDLPP::RectangleRender>(0, 0, 0.2, 0.1, r);
|
||||
y->setTexture(*font, "DEMO", "#FFFFFF", "#000000", 5);
|
||||
y->setId(0);
|
||||
y->setPermanent(true);
|
||||
y->setId(123);
|
||||
scene.addObject(y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user