Created
April 7, 2010 18:02
-
-
Save gamefreak/359213 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if menuNum == 0 then | |
graphics.draw_image("Scenario/Misc/Starmap", { x = 0, y = 4 }, { x = 533, y = 364 }) | |
-- add pointer to planet here when implemented | |
local top = 185 | |
local bottom = -179 | |
local left = -267 | |
local right = 267 | |
local loc = gameData.Scenarios[scenNum]["star-map-location"] | |
-- top line | |
graphics.draw_line( { x = left + loc.x, y = top }, { x = left + loc.x, y = top - loc.y + 15 }, 1, ClutColour(1, 1)) | |
graphics.draw_line( { x = left + loc.x - 15, y = top - loc.y + 15 }, { x = left + loc.x + 15, y = top - loc.y + 15 }, 1, ClutColour(1, 1)) | |
graphics.draw_line( { x = left + loc.x - 15, y = top - loc.y + 11 }, { x = left + loc.x - 15, y = top - loc.y + 15 }, 1, ClutColour(1, 1)) | |
graphics.draw_line( { x = left + loc.x + 15, y = top - loc.y + 11 }, { x = left + loc.x + 15, y = top - loc.y + 15 }, 1, ClutColour(1, 1)) | |
-- bottom line | |
graphics.draw_line( { x = left + loc.x, y = bottom }, { x = left + loc.x, y = top - loc.y - 15 }, 1, ClutColour(1, 1)) | |
graphics.draw_line( { x = left + loc.x - 15, y = top - loc.y - 15 }, { x = left + loc.x + 15, y = top - loc.y - 15 }, 1, ClutColour(1, 1)) | |
graphics.draw_line( { x = left + loc.x - 15, y = top - loc.y - 11 }, { x = left + loc.x - 15, y = top - loc.y - 15 }, 1, ClutColour(1, 1)) | |
graphics.draw_line( { x = left + loc.x + 15, y = top - loc.y - 11 }, { x = left + loc.x + 15, y = top - loc.y - 15 }, 1, ClutColour(1, 1)) | |
-- left line | |
graphics.draw_line( { x = left + loc.x - 16, y = top - loc.y }, { x = left, y = top - loc.y }, 1, ClutColour(1, 1)) | |
-- right line | |
graphics.draw_line( { x = left + loc.x + 15, y = top - loc.y }, { x = right, y = top - loc.y }, 1, ClutColour(1, 1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment