Skip to content

N43: Geng #1307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions content/news/043/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,33 @@ _Discussion: [/r/rust][ambient-reddit], [Hacker News][ambient-hn]_
[ambient-hn]: https://news.ycombinator.com/item?id=34906166
[ambient-discord]: https://discord.gg/eQEwPCWSy8

### [Geng][geng]

[Geng][geng] by [@kuviman] is a game engine that is used by him & friends
for mostly making small games for game jams.

The focus is to work on the web first (using WebGL1),
but can also work easily on native platforms.

Font rendering is done using sdf textures,
which are being created on GPU based on [this article][sdf-on-gpu].
Some font improvements from February:

- better curve approximation (still can be done better like in the article)
- use euclidean distance instead of manhattan
- added a method to create sdf texture for text
(previously font only had sdf texture atlas with every glyph)

Support was added for OpenGL blend equations - e.g. minmax blending,
which is now used instead of depth buffer for sdf textures

Also, some improvements related to sound:
API to query `Sound` duration,
starting sound playback from specific position,
and changing the speed of `SoundEffect`.

[sdf-on-gpu]: https://astiopin.github.io/2019/01/06/sdf-on-gpu.html

## Learning Material Updates

### [Write a First Person Game in 2KB with Rust][firstperson-wasm4]
Expand Down