minor cleanup

This commit is contained in:
Hartmut Seichter 2023-07-01 22:43:05 +02:00
parent e9d0de8cdd
commit c33211182a
2 changed files with 4 additions and 8 deletions

View file

@ -41,12 +41,6 @@ struct PongStage {
auto t = (min_el.second <= eps) ? min_el.first : TouchPoint::None;
if (t != TouchPoint::None) {
sprite.bitmap.pixel(0,0) = paradiso::RGBA::white();
} else {
sprite.bitmap.pixel(0,0) = paradiso::RGBA::black();
}
return t;
};
@ -116,6 +110,7 @@ struct PongBall {
.scale = paradiso::Vector2<float>::make(0.0125f, 0.0125f),
};
// interaction Stage - Ball
void interact(PongStage& stage) {
auto touch = stage.touch(sprite.pivot);