World Painter 2D: Difference between revisions

m
Wording
No edit summary
m (Wording)
 
(5 intermediate revisions by the same user not shown)
Line 1:
{{ParadiseResourceTypeInfobox
[[File:Districts colored.png|thumb|right|The Districts World Painter 2D resource interpreted as an image.]]
| name = WorldPainter2D
| othernames = World Painter 2D
| example = [[File:Districts colored.png|thumb|right|Theframeless]]<br />Districts Worldfrom Painterv1.9 2D resource interpretedrepresented as an image.]]
| resourcenames = Districts<br />Ambiences
| id = 0x30
| category = Generic
| memdist = Main Memory only
}}
 
World painter 2D resources are large arrays of district indices representing certain aspects of the game. ThisThese includesaspects include districts themselves and ambiences.
 
= Structures =
Line 10 ⟶ 18:
=== Header ===
{| class="wikitable"
|-
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x2 || uint16_t || muWidth || Width of the image in pixelsmap ||
|-
| 0x2 || 0x2 || uint16_t || muHeight || Height of the image in pixelsmap ||
|}
 
These valuesfields are used in combination with the realhardcoded world origin and size values for scaling. The world origin and size is stored in the game's executablepurposes.
 
=== Data ===
The header is immediately followed by data in the form of a grid of single-byte district indices. The width and height of this grid is determined by the header. AllIn knownversion resources1.0 of [[Burnout Paradise]], the grid is 256x256, while all subsequent versions are 384x256.
 
These values correspond to [[Paradise City/Districts|BrnWorld::EDistrict]], except the invalid district is denoted as 0xFF (255) instead.