Commit Graph

109 Commits (2ed2afe4cc90892300054a001c7d23cfebf5c602)

Author SHA1 Message Date
Elijah C. Voigt 82b817a614 State management refactor
Have not run this, almost certain things are broken.

The general idea is we mark entities with components and have a general
purpose "OnStateChange" trigger that marks all "active state" entities
as visible and all "inactive state" entities as invisible.

This should simplify state management -- unless of course there are
exceptions which there will be and will require having some sort of
"Sticky<T>" component that says "When this state transition occurs,
don't touch this one entity"
2 years ago
Elijah C. Voigt 80ee571cb1 it is ugly, but it works. Intro is idempotent 2 years ago
Elijah C. Voigt 59755d2bdd cargo fmt 2 years ago
Elijah C. Voigt 666609e419 Not sure why, but resetting is not as elegant as I had hoped
This is definitely the right approach, but why is everything becoming
red??
2 years ago
Elijah C. Voigt dc981aafea cargo fmt 2 years ago
Elijah C. Voigt e6be125c7d Fixed placing captured pieces on the side of the board 2 years ago
Elijah C. Voigt 54167d1f5f factor in piece when scoring 2 years ago
Elijah C. Voigt f9197ab157 Merge PlayState with Side 2 years ago
Elijah C. Voigt 983314faac Fixed "reject move" logic.
Added a system for tracking a pieces last move, which is not
necessary...
2 years ago
Elijah C. Voigt 438358aab2 Endgame kinda sorta implemented... 2 years ago
Elijah C. Voigt 0e2308929c cargo fmt 2 years ago
Elijah C. Voigt 18f3797340 Adding endgame tracking 2 years ago
Elijah C. Voigt fe2e023036 cargo fmt 2 years ago
Elijah C. Voigt 609ae8ebb9 In a good-ish spot, going to save 2 years ago
Elijah C. Voigt f0a64541e1 Rip out 2d, merge editor and debug mode 2 years ago
Elijah C. Voigt 050dd1d3d1 Added scoring, but having trouble placing defunct pieces 2 years ago
Elijah C. Voigt 63dac42250 Refactor: valid move indicators no longer despawn 2 years ago
Elijah C. Voigt 52efde3756 Progress toward the dissolve animation
Not sure why the base coat is gray instead of transparent...
2 years ago
Elijah C. Voigt eea2f879d0 skeleton for capture animation flow 2 years ago
Elijah Voigt 0a79c8a53a This *should* be all I need for the 0.12 upgrade... 2 years ago
Elijah Voigt d7d89d71da Side switching works! 2 years ago
Elijah Voigt 7a35c3e233 BROKEN: Change order of loading systems for tweakfile 2 years ago
Elijah C. Voigt 79f1e0813d Very roughly using the spotlight valid move indicators 2 years ago
Elijah Voigt cc0299a65a Rule: No move rejections (sideA->sideB->sideA) 2 years ago
Elijah Voigt d737e9c10d Restirct movement to non-self-capture tiles 2 years ago
Elijah Voigt 1fcd30b026 Restrict movement to valid moves
Now need to fix valid moves to be accurate
2 years ago
Elijah Voigt 087b427506 Possible solution to cancel hover and music audio 2 years ago
Elijah Voigt ed9a2d6581 Camera animations! And Turns! 2 years ago
Elijah C. Voigt 39d9b6a6c8 Update 3d model glb file in sync with google drive. 2 years ago
Elijah C. Voigt e8e53dcc86 Add asset for number of cameras (should be 1 per display state) 2 years ago
Elijah C. Voigt 5f2cd7bb4a Audio fixed! 2 years ago
Elijah Voigt 50d35533cc Hey it worksgit add .; git commit Selection handling refactor FTW 2 years ago
Elijah Voigt 12bf2ea96d About to make a big refactor to selection 2 years ago
Elijah Voigt 012593b891 Fixed bug with 3d not having textures on startup 2 years ago
Elijah Voigt e2e535137a Most of the way toward the final camera setup
Two cameras only, one for 2d one for 3d -- none of this camera-per-state bs.

Still have a bug with switching while in the menu, but otherwise things
are working well.
2 years ago
Elijah Voigt 15c7f5c0fc and the color inconsistency 2 years ago
Elijah Voigt 8cee0b6fb5 I think the jitter-selected issue is fixed 2 years ago
Elijah Voigt 983779c948 De-select does not work... 2 years ago
Elijah C. Voigt ea99af748c possible moves works as expectedgit add .; git commit (now to filter down to actually valid moves... 2 years ago
Elijah C. Voigt 1eba3d962e moves is making progress 2 years ago
Elijah C. Voigt cdf0b52ea6 no progress is made, but code has changed 2 years ago
Elijah C. Voigt 38b796ad31 bug infestation. selecting/capturing/etc in 2d works worse than in 3d 2 years ago
Elijah C. Voigt 8e0254c7e8 refactor states; separate display and play states 2 years ago
Elijah C. Voigt a5bb2aa385 exclusive selection 2 years ago
Elijah C. Voigt b4270899d2 Moving works in 2d!
Now just need to generalize 3d selection to select pieces + board tiles for movement to work there!

Exicted!
2 years ago
Elijah C. Voigt 729c74e932 Select refactors for 2d, sync select/deselects 2 years ago
Elijah Voigt f32d462df6 Added hitboxes 2 years ago
Elijah Voigt 9cb7043eed Some improvements... 2d breaks when you select in 3d though... 2 years ago
Elijah Voigt f87bfb5a6c Loading screen. Ironing out bugs with color change? 2 years ago
Elijah Voigt 6dac7f5e4d changing side colors, buggy but works 2 years ago
Elijah Voigt 8a9b47be6b Drastic rework of movement
* Added `moves` ledger to Board
  * This should help with future work like undo, automated tests,
    net-play.
* Refactored 2d and 3d displays to use BoardIndex -> Transform
  * This means we can have a generic system set the position of Entities
    based on moves on the Board.
* Refactored 2d view to have centered board
  * (instead of shifting root entity which had poor behavior
    characteristics)
2 years ago
Elijah Voigt 03fa207297 Generic update board system in progress 2 years ago
Elijah Voigt 4dbf524e3f load state actually blocks now 2 years ago
Elijah Voigt 4f54cece67 moving pieces, background image, pickup/putdown audio 2 years ago
Elijah Voigt 293f27aba9 menu! 2 years ago
Elijah Voigt a425a5756c Selecting + Calling the piece (board.at) 2 years ago
Elijah Voigt b73a2ac5bc 2D Selecting indexes works!
Also improved art a bit.
Still programmer art, but it's at least on theme.
Inspired by the colors of Mars.
2 years ago
Elijah Voigt 5f255275e0 Drawing pieces on the board!
Also states: 2d state, skeleton 3d state, menu state, loading state.

Really leaning into the bevy system scheduling.
2 years ago
Elijah Voigt 9cf884e54f Mostly 2d sprites and code organization 2 years ago