Re:P5.play
by dmarlow on Wednesday August 03, 2022 @04:48PM
(#32336492)
Great work. The examples are fantastic. Code looks really clean, but there's quite a bit of magic going on that's not immediately understandable. For example, in the flappy bird clone, how are the pipes' placement determined?
[ Parent
| on HN ]
Re:P5.play
by ticklemyelmo on Wednesday August 03, 2022 @05:28PM
(#32336839)
The playfield is a moving camera view on a static world.
The bird moves forward constantly, the camera follows the bird, and the pipes spawn at a fixed location one screen width ahead of the bird.