BryceMehring / Hexel

Retro Tower Defense Game
https://brycemehring.github.io/projects/hexel/
MIT License
5 stars 2 forks source link

Scaling enemy difficulty #47

Closed BryceMehring closed 9 years ago

BryceMehring commented 9 years ago

This could be used for dynamic enemy generation and what goes in each wave so that we don't have to hard code what goes in each wave.

prs9tb commented 9 years ago

Just committed rough draft of functionality. Causes some rare, strange bugs in game.lua. (not crashing though)

BryceMehring commented 9 years ago

This was added via 0680eaf86f1ff90d99d45f49dcfebd5bfc34eea4.

BryceMehring commented 9 years ago

While it does not crash, it does generate the following error:

Param type mismatch at position 2: expected a 'number' but got a 'nil'
stack traceback:
    [C] in function 'setSpan'
    ./source/libraries/flower.lua:534 in function 'callLoopTime'
    ./source/game/game.lua:211 in function 'startSpawnLoop'
    ./source/game/game.lua:188 in function 'func'
    ./source/libraries/flower.lua:519 in function <./source/libraries/flower.lua:519>
BryceMehring commented 9 years ago

I moved 0680eaf to the waves branch until it is stable enough to merge into master.