tpalmerstudios / Jeli

A first-person game engine for the beginning developer
GNU General Public License v3.0
2 stars 0 forks source link

[REQUEST]Move player on mini to triangle or pie #15

Open tpalmerstudios opened 4 years ago

tpalmerstudios commented 4 years ago

Is your feature request related to a problem? Please describe. Currently it is a very inefficient algorithm, drawing a circle ray by ray (I made it from scratch so I'm proud of it)

Describe the solution you'd like Once there is a triangle algorithm, (we're looking at you) I'll rework the code in the draw player function to simply output 3 points for the triangle to take

Describe alternatives you've considered I could implement a pie algorithm based on the circle algorithm that we have. And not have to change it much

Additional context Currently this algorithm won't hold up if the screen size is increased. Simply because I am shooting rays. And the rays are currently packed so tight because of the small screen size. Once that increases, the rays will spread out (or I'll have to adjust and make the algorithm more inefficient)