I need help with this code for the map
local mapPos = (example_scene).tilePos(mouse.x, mouse.y) local screenPos = (example_scene).screenPos(mapPos[0], mapPos[1]) local sprite = (maps.example_scene).get(mapPos[0], mapPos[1])
screen.clear("rgb(49,114,147)")
if sprite and not buyButton.hover then
local text = tileNameMap[sprite] or sprite
screen.drawText(text, -130, 80, 10, "rgb(255,255,255)")
end
example_scene.draw()
screen.setAlpha(0.3)
if not buyButton.hover then
screen.fillRect(screenPos[0], screenPos[1],
examplescene.tileWidth(), examplescene.tileHeight())
end
I don't know what it is but it keeps showing a blue screen and telling me that the map is not defined