diff --git a/src/constants.lua b/src/constants.lua index d5100f1..a5ecd5f 100644 --- a/src/constants.lua +++ b/src/constants.lua @@ -91,8 +91,6 @@ C.SmallestBallRadius = 6 C.BatLength = 35 --- TODO: enums implemented this way are probably going to be difficult to serialize! - ---@alias OffenseState "batting" | "running" | "walking" --- An enum for what state the offense is in ---@type table diff --git a/src/draw/transitions.lua b/src/draw/transitions.lua index 35d700c..a7ca79e 100644 --- a/src/draw/transitions.lua +++ b/src/draw/transitions.lua @@ -7,27 +7,13 @@ Transitions = { local gfx = playdate.graphics --- local function animateOut() end --- local function animateIn() end - local previousSceneImage local previousSceneMask - local nextSceneImage --- local nextSceneOffScreen = false --- local stillAnimating = false - --- TODO: Okay but like imagine. --- Push a blank image context, --- draw the previous scene on one side, --- draw the next scene on the other, --- SWING a bat to cover the seam. - local batImageTable = {} local batOffset = 80 - local degStep = 3 function loadBatImageTable() diff --git a/src/fielding.lua b/src/fielding.lua index 6587e10..4b0a9c8 100644 --- a/src/fielding.lua +++ b/src/fielding.lua @@ -5,8 +5,6 @@ --- @field target XyPair | nil --- @field speed number --- TODO: Run down baserunners in a pickle. - ---@class Fielding ---@field fielders table ---@field fielderHoldingBall Fielder | nil diff --git a/src/main.lua b/src/main.lua index 64c37eb..d10ae19 100644 --- a/src/main.lua +++ b/src/main.lua @@ -499,7 +499,6 @@ function Game:updateGameState() self:updateBatting(self.state.batAngleDeg, batSpeed) -- Walk batter to the plate - -- TODO: Ensure batter can't be nil, here self.baserunning:updateRunner(self.baserunning.batter, nil, crankLimited, self.state.deltaSeconds) if self.state.secondsSincePitchAllowed > C.PitchAfterSeconds then @@ -559,8 +558,6 @@ function Game:updateGameState() actionQueue:runWaiting(self.state.deltaSeconds) end --- TODO: Swappable update() for main menu, etc. - function Game:update() playdate.timer.updateTimers() gfx.animation.blinker.updateAll()