Sage Vaillancourt
668fa9ffd4
Add fonts to assets.lua2p
...
Include until-now missing Roobert 11 font
Rename font-full-circle to fix casing
2025-02-24 20:16:18 -05:00
Sage Vaillancourt
b4ac028cd9
Consolidate assets into src/assets/
2025-02-24 19:58:47 -05:00
Sage Vaillancourt
f42ef06ff6
Only one runner can be safe on one base at a time.
...
Test this new change.
Add custom printTable() for use in test code.
2025-02-23 18:10:56 -05:00
Sage Vaillancourt
aceefeb25c
Add a screen for showing the game's controls
...
Tweak MainMenu appearance to show this new option.
Simple new drawButton() graphics function.
Set a max value for transition delta, to keep from leaving gaps in the mask.
2025-02-23 13:10:09 -05:00
Sage Vaillancourt
7525daccb6
Add testGraphics.lua
...
Fix bug on exactly-zero/exactly-400 ballX
2025-02-23 11:03:10 -05:00
Sage Vaillancourt
7b49603760
Fix flickering on return-to-pitcher.
...
Some linting.
Prevent runners "sticking" to bases during walk/homeRun sequences.
Tweak logo to remove some trailing pixels.
2025-02-21 15:05:14 -05:00
Sage Vaillancourt
786f80b0df
Add dark-skin player sprites.
...
SpriteCollection -> PlayerImageBundle
SpriteCollection is now PlayerImageBundle[]
2025-02-20 20:33:46 -05:00
Sage Vaillancourt
ad82035ccc
Pan back from home runs
...
Move secondsSinceLastRunnerMove into Baserunning
Tweak draw offset logic - a little jumpy, but better at following the long ball
Taller GrassBackground
Move secondsSinceLastPitch into pitchTracker
Extract pitchTracker and throwMeter
Slightly more truthful utils.moveAtSpeed()
2025-02-19 17:13:06 -05:00
Sage Vaillancourt
db1409d94d
selene -> luacheck
...
Greatly simplifies the Makefile.
2025-02-16 15:14:59 -05:00
Sage Vaillancourt
51855e13cf
Convert main into a Game object.
...
Much BATTER encapsulation of its dependencies and mutable state. Only the team scores are still global and mutable, but that shouldn't be too hard to fix.
2025-02-15 17:38:56 -05:00
Sage Vaillancourt
b9d25e18d8
New black away uniforms!
...
Generate sprites from component images during load.
Should make it easy to swap out logos at runtime.
2025-02-11 08:32:51 -05:00
Sage Vaillancourt
0646663e5e
Faster fielders
...
Adjust left and right field positions.
Bouncy baserunners.
Patched npc nil index issue.
2025-02-11 00:01:36 -05:00
Sage Vaillancourt
fbbfc3c2e7
Move fielder-draw iteration and dance to fielding.lua
...
Move PlayerImageBlipper to graphics.lua
2025-02-10 22:36:17 -05:00
Sage Vaillancourt
66bd97499a
Try to cluster global state together.
...
Start peeling out fielder functions into a new file.
A bit more constant use.
In Makefile, parse main.lua imports for source files.
2025-02-08 11:52:39 -05:00
Sage Vaillancourt
8dc999fd72
Add LuaPreprocess for asset-processing.
...
Rename image assets to match var names.
2025-02-08 01:53:26 -05:00
Sage Vaillancourt
9df836e0bf
Switch to spaces.
2025-02-04 13:06:41 -05:00
Sage Vaillancourt
6308871692
Correct draw offset for hits to right field.
2025-02-03 20:45:18 -05:00
Sage Vaillancourt
4546902f2f
Backfill with <const>
...
Use PascalCase for all constants, explain in new README.
Split 'make check' into a separate command (less likely to shift your files out from under you than 'make lint')
Add __stub.ext.lua with quick explainer for why it's useful.
2025-02-01 17:45:10 -05:00
Sage Vaillancourt
32f9b24d1f
Add batter walk-up.
...
Attach bat to batter.
Prevent draw-offset changes when the ball is below the screen.
2025-02-01 16:26:44 -05:00
Sage Vaillancourt
f1d8c28370
Add selene to 'make lint'
...
Patch up its complaints.
Move blipper to graphics.lua
2025-02-01 11:04:27 -05:00
Sage Vaillancourt
4fc37b133e
StyLua pass
...
Add 'lint' recipe to Makefile
2025-02-01 07:39:09 -05:00
Sage Vaillancourt
0b126919ac
Better batter-outs, scoreboard, sounds and frowns.
...
A bunch more refactors, SCREAMING_SNAKE constants, graphics.lua, etc.
2025-01-31 23:34:35 -05:00