#ddnet #teeworlds #graphics

bin+lib twgpu

Render Teeworlds and DDNet maps

3 releases (breaking)

0.3.0 Jun 5, 2024
0.2.0 Aug 2, 2022
0.1.0 May 22, 2022

#96 in Rendering

Download history 7/week @ 2024-09-23 6/week @ 2024-09-30

154 downloads per month
Used in twgpu-tools

AGPL-3.0-only

200KB
5K SLoC

TwMap

Render Teeworlds and DDNet maps anywhere!

This library is written with wgpu, which runs natively on its backends Vulkan, DirectX, Metal, OpenGL and WebGL.

Usage

  • Add twgpu = 0.3.0 in your Cargo.toml
  • Check out the docs

Features

  • Gameplay rendering with twsnap is work-in-progress, but quite far
  • Map rendering is fully implemented
  • Tilemap rendering is done with a different method that allows rendering them with the same speed on every zoom level. The render speed depends on the amount of pixels, however tilemaps that don't cover the whole map are optimized

Limitations

  • Tilemaps are uploaded to the gpu as textures, they can't be bigger than the maximum texture size in that context

lib.rs:

This crate provides a middleware library for Teeworlds and DDNet rendering.

Dependencies

~23–64MB
~1M SLoC