Implementing starfall version of engine

This commit is contained in:
Ivan Grachyov
2021-11-09 21:09:03 +05:00
parent a5f7bedf8d
commit e2c1c4bc88
12 changed files with 200 additions and 4 deletions

View File

@@ -30,9 +30,6 @@ function Input:getAxleValue(axle)
local positiveValue = axle.Positive ~= nil and input.isKeyDown(axle.Positive)
local negativeValue = axle.Negative ~= nil and input.isKeyDown(axle.Negative)
print(positiveValue)
print(negativeValue)
return (positiveValue and 1 or 0) - (negativeValue and 1 or 0) -- (input.isKeyDown(axle.Positive) and 1 or 0) - (input.isKeyDown(axle.Negative) and 1 or 0)
end