您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

stateMachine.lua 203 B

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