Module edit

Module edit 

Source
Expand description

Complex methods for map structs

Structs§

DDNetFixPhysicsRotation
Fixes incorrect orientation of directional physics tiles.
DDNetMigrateSpeedup
Migrates tile id’s to a newer replacement. Only updates tiles that have a drop-in replacement.
DDNetNormalizePhysicsRotation
DDNet specific! Resets the rotation of physics tile that are not effected by rotations.
ZeroAir
To zero out tiles with id 0 completely
ZeroUnusedParts

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§

EditTile
TileFlips
Generic tile flips and rotates for every tile type.

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