Commit Graph

20 Commits

Author SHA1 Message Date
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 982b8220a6 Some ECS cleanup with ews() rework. 2025-01-31 18:35:42 -05:00
Sage Vaillancourt ff2b1d0180 Some ECS cleanup with ews() rework. 2025-01-30 12:24:10 -05:00
Sage Vaillancourt 109d67bea9 Unrefined ECS feeling-it-out nonsense. 2025-01-30 11:00:31 -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
Sage Vaillancourt be3223b28d Init commit.
Very basic swing and hit physics.
Pitches every 5 seconds. Not much else!
2025-01-25 10:05:48 -05:00