Skip to content

Commit 35bb829

Browse files
authored
N23: 2D Line of Sight Algorithm (#687)
1 parent 7fdbad1 commit 35bb829

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

content/news/023/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,25 @@ telnet protocols and TLS connections to name a few.
134134

135135
## Learning Material Updates
136136

137+
### [A Trig-less Line of Sight Algorithm for 2D Games][lineofsight]
138+
139+
![2D Sight Example](lineofsight.png)
140+
141+
[@basstabs] published a tutorial which explains how to write a
142+
line of sight algorithm for 2D games in Rust without using trigonometry or
143+
square roots. It includes vector diagrams and typeset math to explain the ideas
144+
behind each stage of the algorithm, source code for each step, tests to verify
145+
accuracy of the methods, and suggestions for further improvements.
146+
Additionally, the
147+
[repository](https://github.com/basstabs/2d-line-of-sight) contains benchmarks
148+
and a sample application written in [ggez](https://crates.io/crates/ggez).
149+
150+
_Discussions: [/r/rust_gamedev](
151+
https://www.reddit.com/r/rust\_gamedev/comments/nx79kq/)_
152+
153+
[lineofsight]: https://basstabs.github.io/2d-line-of-sight/
154+
[@basstabs]: https://github.com/basstabs
155+
137156
## Library & Tooling Updates
138157

139158
### [erupt]

content/news/023/lineofsight.png

87.6 KB
Loading

0 commit comments

Comments
 (0)