Skip to content

Commit

Permalink
Render ghosts as purple
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielv123 committed Apr 13, 2024
1 parent 38b9468 commit da11ae9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions module/map/dump_entities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ local function dump_entities(entities)
-- Format as hexadecimal
table.insert(map_data, position.x + x - (size_x-1)/2)
table.insert(map_data, position.y + y - (size_y-1)/2)
if entity.type == "entity-ghost" then
-- Render as purple
table.insert(map_data, "A800A8")
else
table.insert(map_data, string.format("%02x%02x%02x", map_color.r, map_color.g, map_color.b))
end
end
end
end
Expand Down

0 comments on commit da11ae9

Please sign in to comment.