forked from Hartmut/paradiso
minor cleanup
This commit is contained in:
parent
e9d0de8cdd
commit
c33211182a
2 changed files with 4 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue