darienyoder / software-engineering-team-beta

http://darienyoder.com/software-engineering-team-beta/minigolf
2 stars 0 forks source link

Ball Trajectory #26

Closed Ozpyn closed 1 month ago

Ozpyn commented 1 month ago

It should draw a little arrow so you know where the ball is going to go, like in real mini golf. This has a great example: https://editor.p5js.org/mtrc/sketches/Zc9cjBS3R

Originally posted by @adietz12 in https://github.com/darienyoder/software-engineering-team-beta/issues/16#issuecomment-2350306414

maybe it could also be simplistic, as in just a fading line

Ozpyn commented 1 month ago

This enhancement would pair nicely with this pullBack commit 4f7ab42

Ozpyn commented 1 month ago

trajectory implemented as of b909b2a, does spawn a coloring issue

Ozpyn commented 1 month ago

verification required

adietz12 commented 1 month ago

Looks like the arrow is hidden when the ball is in sand + (any future object that's not the canvas). We can stop this bug now by setting the drawing order/layer of the arrow to be the highest, since it's UI anyway.