Browse Source

Delete ;

master
churchianity 6 years ago
committed by GitHub
parent
commit
731745583a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 67
      ;

67
;

@ -1,67 +0,0 @@
----- [[ WARZONE 2 - HEXAGONAL GRID RESOURCE BASED TOWER DEFENSE GAME]] --------
--[[ author@churchianity.ca
]]
require "hex"
require "util"
local win = am.window{
-- BASE RESOLUTION = 3/4 * WXGA Standard 16:10
width = 1280 * 3 / 4, -- 960px
height = 800 * 3 / 4, -- 600px
title = "Warzone 2: Electric Boogaloo"}
local title = am.group()
local world = am.group()
local layout = hex_layout(vec2(-368, win.bottom))
local map = hex_rectangular_map(45, 31)
function show_axes()
xaxis = am.line(vec2(win.left, 0), vec2(win.right, 0))
yaxis = am.line(vec2(0, win.top), vec2(0, win.bottom))
world:append(am.group{xaxis, yaxis}:tag("axes"))
end
function world_init()
world:action(coroutine.create(function()
for hex,_ in pairs(map) do
world:append(am.circle(hex_to_pixel(hex, layout), 11, rrgb(1), 6))
am.wait(am.delay(0.01))
end
end))
end
function init()
titlemap = am.group()
for hex,_ in pairs(map) do
titlemap:append(am.rotate(45):tag("titlemap")
^ am.scale(3, 2)
^ am.circle(hex_to_pixel(hex, layout), 11, rrgb(1), 6))
end
local line1 = am.text("WARZONE 2")
local line2 = am.text("Electric Boogaloo")
local line3 = am.text("by Nick Hayashi")
local title = am.group{titlemap,
am.translate(0, 150) ^ am.scale(4) ^ line1,
am.translate(0, 100) ^ am.scale(3) ^ line2,
am.translate(0, 60) ^ am.scale(1) ^ line3
}:action(function()
while true do
titlemap"titlemap".angle = am.frame_time * 4
end
end)
win.scene = title
end
----- [[ MAIN ]] ---------------------------------------------------------------
init()
Loading…
Cancel
Save