Sage Vaillancourt
aa571dab4e
Extract runner's onArrive to a dedicated function.
2025-02-02 18:30:35 -05:00
Sage Vaillancourt
5fca82bb3a
Queue up announcement messages.
...
Extract drawScoreboard() to new scoreboard.lua
Very, very rudimentary team-switching.
2025-02-02 17:36:25 -05:00
Sage Vaillancourt
073140f700
Add basic announcement messages.
...
Switch to checking based on __types.lua instead of __stub.lua
New font for announcement. Move Full Circle font out of subdirectory.
2025-02-02 16:15:29 -05:00
Sage Vaillancourt
66e3d2bb01
Fielders can run the ball towards a base themselves.
...
Ball can be heldBy a fielder.
Fix likely bug in buildCache() and document it (including contemplating future removal).
Add missing Full Circle font png.
2025-02-02 13:32:22 -05:00
Sage Vaillancourt
b9fc7ee09e
Tweak drift-toward-base behavior.
...
It's a little clunky for sure, but also more playable.
Added the Full Circle font for the scoreboard.
Do a *check-only* lint in 'make check'
2025-02-02 11:07:15 -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
Sage Vaillancourt
533c625d47
Add .luarc.json for library reading.
...
Move more stuff to utils.
More type hints.
*Some* fleshing-out of getNextThrowTarget() etc.
Closer to proper multi-baserunner support.
2025-01-30 00:18:02 -05:00
Sage Vaillancourt
4093f9705a
Refactoring, typehints, better baserunning
2025-01-29 00:36:55 -05:00
Sage Vaillancourt
db52923b32
Extend outfield wall - add outfielders
2025-01-27 00:41:16 -05:00
Sage Vaillancourt
2c179a5ba5
Refactoring.
...
Consolidate hitBall() and throwBall() into one function.
Pull playerImage into its own "blipper" in utils.lua. This is definitely overkill, but we're learning with Lua, and it's fine, and it's very fine.
2025-01-27 00:26:20 -05:00
Sage Vaillancourt
8bbc029c42
Bigger background for panning across.
...
Refactor out utils.lua
2025-01-26 23:24:41 -05:00
Sage Vaillancourt
5493f350df
Start up some simple baserunning.
2025-01-26 21:34:19 -05:00
Sage Vaillancourt
5fc72c46fe
Add simple player image
...
Start prepping for baserunning
2025-01-26 20:05:24 -05:00
Sage Vaillancourt
42a537dae0
Add simple fielder chasing and throwing mechanics.
2025-01-26 17:24:32 -05:00
Sage Vaillancourt
5df107f767
Remove testing-things-out cruft.
2025-01-26 16:14:55 -05:00
Sage Vaillancourt
e81c27f00e
Add some images!
...
Also, patch up hit-detection logic!
Switch from D-Pad controlling hitMult to controlling player position.
This commit keeps a bunch of cruft, in case I messed something up.
The next commit will remove it.
2025-01-26 16:14:27 -05:00
Sage Vaillancourt
af7f719a2c
Quick Makefile and restructuring
2025-01-25 10:12:28 -05:00