davidyu / Sonar

Networked multiplayer SHMUP-lite
http://lewenyu.com/sonar
MIT License
0 stars 0 forks source link

Reflect culling in sonar circle #13

Closed davidyu closed 10 years ago

davidyu commented 10 years ago

Only draw parts of the circle (IE: arcs) that have not been culled.

Approach: sort the cull ranges by start. Iterate over all culled ranges. Draw arc from ranges[i].end to ranges[i+1].start | ranges[0].start

davidyu commented 10 years ago

Implemented in e3959786f1faa9afed901473725571aa5a357906