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.

11 lines
203 B

  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