Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement loading of level files #6

Open
Jigoku opened this issue Jun 20, 2016 · 0 comments
Open

Implement loading of level files #6

Jigoku opened this issue Jun 20, 2016 · 0 comments

Comments

@Jigoku
Copy link
Owner

Jigoku commented Jun 20, 2016

Currently, enemies spawn on a timer, choosing a random group.

In future, groups of enemies should be triggered by the percentage/progress (eg; 0.00%).
Find a way to make levels that can be loaded easily.

Psuedo code example that may work:

level1.lua

level = { 
[1] = { "1.50", "delta" } -- spawn delta group at 1.50%
[2] = { "2.00", "dart" } -- spawn dart group at 2.00%
[3] = { "5.20", "tri" } -- spawn tri group at 5.20%
["boss1"] = "abomination" -- trigger boss event at end of wave 1
["boss2"] = "large" -- trigger boss event at end of wave 1
["next"] = { level2.lua } -- load the next level file when 100% is reached
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant