Add support for timing using delta clocks (#97)

* Small correction to getConstantName. I swear this didn't work before, but now it does.
* Support delta timing in mkxp-z
* refresh Graphics.delta time at the start of update
* Speed up load_data
* Replace Input.count calls with Input.time?
This commit is contained in:
Roza
2021-02-26 14:57:52 -05:00
committed by GitHub
parent dd0bbe5da4
commit c9903c59c8
6 changed files with 20 additions and 17 deletions

View File

@@ -112,7 +112,7 @@ end
def getConstantName(mod,value)
mod = Object.const_get(mod) if mod.is_a?(Symbol)
for c in mod.constants
return c if mod.const_get(c.to_sym).to_s==value
return c if mod.const_get(c.to_sym)==value
end
raise _INTL("Value {1} not defined by a constant in {2}",value,mod.name)
end
@@ -120,7 +120,7 @@ end
def getConstantNameOrValue(mod,value)
mod = Object.const_get(mod) if mod.is_a?(Symbol)
for c in mod.constants
return c if mod.const_get(c.to_sym).to_s==value
return c if mod.const_get(c.to_sym)==value
end
return value.inspect
end