extract-input-controllers #4

Merged
sage merged 5 commits from extract-input-controllers into main 2025-02-24 19:50:23 -05:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit b928ee3658 - Show all commits

View File

@ -392,8 +392,8 @@ function Game:updateBatting(batDeg, batSpeed)
local batAngle = math.rad(batDeg)
-- TODO: animate bat-flip or something
local batter = self.baserunning.batter
self.state.batBase.x = batter and (batter.x + C.BatterHandPos.x) or 0
self.state.batBase.y = batter and (batter.y + C.BatterHandPos.y) or 0
self.state.batBase.x = batter and (batter.x + C.BatterHandPos.x) or -999
self.state.batBase.y = batter and (batter.y + C.BatterHandPos.y) or -999
self.state.batTip.x = self.state.batBase.x + (C.BatLength * math.sin(batAngle))
self.state.batTip.y = self.state.batBase.y + (C.BatLength * math.cos(batAngle))