five-on-it / apps/level-editor/src/scripts/blocks/garage
apps/level-editor/src/scripts/blocks/garage
Marks a node of the editor scene as a garage: a bay standing on the node's origin (the middle of its floor), scaled to its width, height and depth, its door at the node's +z end, turned with yaw only. A car driven in and stopped is offered a respray (new paint, the car repaired, the Wanted level cleared unless the police see it) and storage (kept for its player, taken out again on foot in any garage that stores), each for its price in dollars, −1 offering none. The building around it is placed apart: the garage is a behaviour on a door. The library's block:garage carries it: place instances of that mesh for npm run level:export to read.