Expand description
Complex methods for map structs
Structs§
- DDNet
FixPhysics Rotation - Fixes incorrect orientation of directional physics tiles.
- DDNet
Migrate Speedup - Migrates tile id’s to a newer replacement. Only updates tiles that have a drop-in replacement.
- DDNet
Normalize Physics Rotation - DDNet specific! Resets the rotation of physics tile that are not effected by rotations.
- ZeroAir
- To zero out tiles with id 0 completely
- Zero
Unused Parts
Constants§
- MAX_
CAMERA_ DIMENSIONS - The maximum amount of tiles horizontally and vertically that the camera can cover. Note that it can never be the maximum in both directions. Default zoom level is assumed.
Traits§
Functions§
- calc_
opaque_ table - Returns the table for the OPAQUE tile flag, derived from the image data
- camera_
dimensions - The aspect ratio is width / height. Returns the dimension in tiles that Teeworlds/DDNet would render in that aspect ratio. Default zoom level is assumed.
- dilate
- edge_
extend_ ndarray - Extend 2D ndarray in each direction by the specified amount. Copies the outer edges into the new region. This simulates the behavior of the end of tilemaps in gameplay, since the outer edges will continue to infinity.
- shrink_
ndarray - up - down - left - right