Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 35bb829

Browse filesBrowse files
authored
N23: 2D Line of Sight Algorithm (rust-gamedev#687)
1 parent 7fdbad1 commit 35bb829
Copy full SHA for 35bb829

File tree

2 files changed

+19
-0
lines changed
Filter options

2 files changed

+19
-0
lines changed

‎content/news/023/index.md

Copy file name to clipboardExpand all lines: content/news/023/index.md
+19Lines 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

Copy file name to clipboard
87.6 KB
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.