You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stateMachine.lua 203 B

3 years ago
1234567891011
  1. state = require("levels/"..gameState)
  2. print("levels/"..gameState)
  3. function stateUpdate(dt)
  4. state = require("levels/"..gameState)
  5. state.update(dt)
  6. end
  7. function stateDraw()
  8. state.draw()
  9. end