-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
205 additions
and
88 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
map = { | ||
width = 11, | ||
height = 11, | ||
baseX = 3, | ||
baseY = 5, | ||
spawn = { | ||
{ | ||
enemyType = 1, | ||
towerType = 7, | ||
x = 10, | ||
y = 10, | ||
delay = 1, | ||
count = 10 | ||
}, | ||
}, | ||
tower = { | ||
{ | ||
towerType = 8, | ||
x = 1, | ||
y = 3, | ||
}, | ||
|
||
}, | ||
random = { | ||
}, | ||
mass = 10, | ||
energy = 999 | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,37 @@ | ||
missions = { | ||
{ | ||
map = "mission1", | ||
map = "tutorial1", | ||
x = 300, | ||
y = 130, | ||
title = "Tutorial 1", | ||
description = "Tutorial 1.\n\nMapsize: Small", | ||
briefingText = "These aliens seem to be carrying explosives that they want to carry into our main generator. Prevent them from doing so by building laser towers!", | ||
button = "T", | ||
}, | ||
{ | ||
map = "mission1", | ||
x = 370, | ||
y = 190, | ||
title = "Mission 1", | ||
description = "Defeat 3 Wave lines\nwith 2 different enemies.\n\nMapsize: Small", | ||
button = "1" | ||
}, | ||
{ | ||
map = "mission2", | ||
x = 370, | ||
y = 190, | ||
x = 410, | ||
y = 260, | ||
needMission = "mission1", | ||
title = "Mission 2", | ||
description = "Defeat 3 Wave lines\nwith 2 different enemies.\n\nMapsize: Medium", | ||
button = "2", | ||
}, | ||
{ | ||
map = "mission3", | ||
x = 420, | ||
y = 270, | ||
x = 410, | ||
y = 320, | ||
needMission = "mission2", | ||
title = "Mission 3", | ||
description = "Defeat 4 Wave lines\nwith 2 different enemies.\n\nMapsize: Small", | ||
button = "3", | ||
}, | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
local o = {} | ||
|
||
o.text = "" | ||
|
||
o.guiMenu = love.gui.newGui() | ||
o.init = function(mission) | ||
o.text = mission.briefingText or mission.description | ||
o.btnOkay = o.guiMenu.newButton(W.getWidth()/2, W.getHeight()*0.75, 66, 42, "OK") | ||
o.mission = mission | ||
end | ||
|
||
o.update = function(dt) | ||
o.guiMenu.update(dt) | ||
if o.btnOkay.isHit() then | ||
love.sounds.playSound("sounds/button_pressed.wav") | ||
love.setgamestate(14, o.mission) | ||
o.guiMenu.flushMouse() | ||
end | ||
end | ||
|
||
o.draw = function() | ||
G.setFont(FONT) | ||
G.setColor(255, 127, 0, 127) | ||
local scale = 1---(o.countdown-o.oldcountdown)/2 | ||
G.printf(o.text, 0, 240, W.getWidth(), "center",0,scale,scale) | ||
G.setColor(255, 255, 255, 127) | ||
o.guiMenu.draw() | ||
end | ||
|
||
return o |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Binary file not shown.
Oops, something went wrong.