mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-20 19:16:43 +00:00
Updated Hardware: LiDAR (markdown)
parent
5889ebf320
commit
4d60aafab5
@ -23,20 +23,20 @@ Hardware ID: `0x0003`
|
|||||||
|
|
||||||
`LIDAR_GET_MAP` generates a map of the current world as a tile sequence of 256 words starting at memory address `0x0100`, each word representing a tile. The LiDAR starts reading the tiles west to east, north to south: (0,0) (1,0) (2,0) ... (15,0) (0,1) (1,1) ...
|
`LIDAR_GET_MAP` generates a map of the current world as a tile sequence of 256 words starting at memory address `0x0100`, each word representing a tile. The LiDAR starts reading the tiles west to east, north to south: (0,0) (1,0) (2,0) ... (15,0) (0,1) (1,1) ...
|
||||||
|
|
||||||
Each tile is is encoded as a bit field:
|
Each tile is encoded as a bit field:
|
||||||
`1000 0000 0000 0000` (`0x8000`) : Blocked (wall) tile
|
`1000 0000 0000 0000` (`0x8000`) : Blocked (wall) tile
|
||||||
`0100 0000 0000 0000` (`0x4000`) : Biomass
|
`0100 0000 0000 0000` (`0x4000`) : Biomass
|
||||||
`0010 0000 0000 0000` (`0x2000`) : Factory
|
`0010 0000 0000 0000` (`0x2000`) : Factory
|
||||||
`0001 0000 0000 0000` (`0x1000`) : Radio Tower
|
`0001 0000 0000 0000` (`0x1000`) : Radio Tower
|
||||||
`0000 1000 0000 0000` (`0x0800`) :
|
`0000 1000 0000 0000` (`0x0800`) : Vault
|
||||||
`0000 0100 0000 0000` (`0x0400`) :
|
`0000 0100 0000 0000` (`0x0400`) : Electric Box
|
||||||
`0000 0010 0000 0000` (`0x0200`) : Iron tile
|
`0000 0010 0000 0000` (`0x0200`) : Iron tile
|
||||||
`0000 0001 0000 0000` (`0x0100`) : Copper tile
|
`0000 0001 0000 0000` (`0x0100`) : Copper tile
|
||||||
`0000 0000 1000 0000` (`0x0080`) : Cubot
|
`0000 0000 1000 0000` (`0x0080`) : Cubot
|
||||||
`0000 0000 0100 0000` (`0x0040`) : NPC
|
`0000 0000 0100 0000` (`0x0040`) : NPC
|
||||||
`0000 0000 0010 0000` (`0x0020`) :
|
`0000 0000 0010 0000` (`0x0020`) : Portal
|
||||||
`0000 0000 0001 0000` (`0x0010`) :
|
`0000 0000 0001 0000` (`0x0010`) :
|
||||||
`0000 0000 0000 1000` (`0x008`) :
|
`0000 0000 0000 1000` (`0x0008`) :
|
||||||
`0000 0000 0000 0100` (`0x004`) :
|
`0000 0000 0000 0100` (`0x0004`) :
|
||||||
`0000 0000 0000 0010` (`0x002`) :
|
`0000 0000 0000 0010` (`0x0002`) :
|
||||||
`0000 0000 0000 0001` (`0x001`) :
|
`0000 0000 0000 0001` (`0x0001`) :
|
Loading…
x
Reference in New Issue
Block a user