Extend outfield wall - add outfielders

This commit is contained in:
Sage Vaillancourt 2025-01-27 00:41:16 -05:00
parent 2c179a5ba5
commit db52923b32
2 changed files with 14 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -76,7 +76,10 @@ local fielders = {
second = {}, second = {},
shortstop = {}, shortstop = {},
third = {}, third = {},
pitcher = {} pitcher = {},
left = {},
center = {},
right = {}
} }
function resetFielderPositions() function resetFielderPositions()
fielders.first.x = screenW - 65 fielders.first.x = screenW - 65
@ -93,6 +96,15 @@ function resetFielderPositions()
fielders.pitcher.x = screenW * 0.48 fielders.pitcher.x = screenW * 0.48
fielders.pitcher.y = screenH * 0.40 fielders.pitcher.y = screenH * 0.40
fielders.left.x = screenW * -1
fielders.left.y = screenH * -0.2
fielders.center.x = fielders.second.x
fielders.center.y = screenH * -0.4
fielders.right.x = screenW * 2
fielders.right.y = screenH * fielders.left.y
end end
resetFielderPositions() resetFielderPositions()
@ -345,6 +357,7 @@ function playdate.update()
playdate.ui.crankIndicator:draw() playdate.ui.crankIndicator:draw()
end end
-- TODO? Change blip speed depending on runner speed?
playerImageBlipper:draw( playerImageBlipper:draw(
currentMode ~= MODES.running, currentMode ~= MODES.running,
player.x + backgroundPan.x, player.x + backgroundPan.x,