Commit Graph

254 Commits (687fe39b6805e287676276e22c6af228c66374a6)

Author SHA1 Message Date
Elijah C. Voigt 2295de0043 Loading is borked, but tutorial worked... 2 years ago
Elijah C. Voigt 2a33dd7464 Revert to old game board 2 years ago
Elijah C. Voigt 0c56bd18a1 Wait I think merging works?! fuck yeah. 2 years ago
Elijah C. Voigt 098df2998b Fixed moves correctness!
Sans merging which we still haven't wired into the real game...
2 years ago
Elijah C. Voigt 80738dd217 Merging moves implemented ish
At least on the backend. Not sure they're rendered.

God bless test driven development, amirite?
2 years ago
Elijah C. Voigt 40b40ae887 Tests pass
Feels good man
2 years ago
Elijah C. Voigt 33f37d57c4 I think it's working again
*wipes brow* thank god.
2 years ago
Elijah C. Voigt 2fb524643d Saving place. Broken but don't want to go further... 2 years ago
Elijah C. Voigt b86aea043e Parsing board from ascii
Mostly useful for testing!
2 years ago
Elijah C. Voigt df1a2a3bf7 put-down animation works!
Thank christ
2 years ago
Elijah C. Voigt 4cebce8bf2 break down select and pointer hover
This allows us to hook into the hovered piece for debugging
2 years ago
Elijah C. Voigt 63ca981aa4 somewhat fix shadows with system ordering 2 years ago
Elijah C. Voigt 0cf4fe4fb6 handle skip to end of animation 2 years ago
Elijah C. Voigt 52f978e70a Basically the intro works...
There's def some bugs with clicking through the intro title...
2 years ago
Elijah C. Voigt 95559d8887 Very small quality of life stuff, broke shadows
Click to move through into + title
Speed up animations by pressing down instead of jumping to end.
    (tweakable)
2 years ago
Elijah C. Voigt 9f5856f86f Add shadows, fix some animation jank, iterate on valid move indicator 2 years ago
Elijah C. Voigt 5bf70e5980 Updated skybox, title, buttons 2 years ago
Elijah C. Voigt 6e2d96a17b audio intensity 2 years ago
Elijah C. Voigt 1a056277c9 Fixed a small amount of jank with the alpha on the title
Still a small amount of alpha jank on buttons sadly...
2 years ago
Elijah C. Voigt a0c50a88c6 Slightly improved valid move indicator, title rendered text 2 years ago
Elijah C. Voigt 3d6ca40e67 There are some bugs in the rewrite, need some elbow-grease to iron them out 2 years ago
Elijah C. Voigt 3157666d84 Re-architecture for moves
Now that moves are a bit more complicated I did a pass at calculating
which moves are valid for a given piece.

The speed/memory usage on this version is likely higher, but we're
dealing with really small numbers of moves so I'm not worried about
it. Optimizations should be simple if I look for them.

As for the re-architect, we generate a list of possible moves for a
piece, check that against some candidates spot, and if it _could_ be a
valid move, we do additional checks like if this is a capture, if this
is an invalidating move, or if this would "Jump" (which was my main goal
with this refactor).
2 years ago
Elijah C. Voigt f0befe0928 Queen "no jumping" is _mostly_ implemented.
You can still jump over enemies which is BS.
That is going to require some... magic... to fix.
2 years ago
Elijah C. Voigt 0edfcfec5b Drone has "no jumping" implemented 2 years ago
Elijah C. Voigt 7e69ae134a Lol fixed it 2 years ago
Elijah C. Voigt ec09fe4d28 So we un-fixed the issue with the dissolve
The base color seems really important... unfortunately...
2 years ago
Elijah C. Voigt 12feaca205 OK intro animation looks good enough... for now. 2 years ago
Elijah C. Voigt 783eb95fe4 cargo fmt 2 years ago
Elijah C. Voigt 595076607e I mean the intro part works...
Outro does not...
2 years ago
Elijah C. Voigt eb698b0316 First stab at dissolving title
I wrote this literally without running it.
Let's see if I nailed it :fingerscrossed:
2 years ago
Elijah C. Voigt 7fd38dab26 yay the shared material problem is fixed
Now on to getting that intro dissolving!
2 years ago
Elijah C. Voigt 3275582176 cargo fmt... also maybe fix that shared materials thing 2 years ago
Elijah C. Voigt 2d476b89da Oh good, the piece was moving, it was just invisible! 2 years ago
Elijah C. Voigt 37a7488852 Dissolve refactor: It ain't perfect, it ain't done, but it's progress!
Yay incremental progress toward the old effect!

The function that plays the animation for dissolving when pieces are
tagged is roughly working.

The only downsides now are that multiple pieces are sharing the same
material, and more importantly the piece should be moving to the side of
the board but it is not!
2 years ago
Elijah C. Voigt 7b4682bc21 mid refactor: dissolve::{in,out} tagging for animation
So far things are borked, but it _feels_ like we're going in the right
direction
2 years ago
Elijah C. Voigt 72811d6d04 The dissolve texture is fixed!
Somehow there are _more_ bugs now, but a big one is fixed!
2 years ago
Elijah C. Voigt e4e993ed64 Dissovle not fixed, but at least it doesn't crash! 2 years ago
Elijah C. Voigt 1b70e0707e Fixing selecting multiple pieces woot woot! 2 years ago
Elijah C. Voigt 06fa416447 Model replacement kinda sorta works -- ship it! 2 years ago
Elijah C. Voigt 6ce3fffa87 Still borked, saving my place
rolling back in hopes that it fixes things...
2 years ago
Elijah C. Voigt 0972d2ef91 Welp I broke something... 2 years ago
Elijah C. Voigt c9cf364c13 Saving my place before making a big change
Going to try simplifying the piece updating logic into one method
2 years ago
Elijah C. Voigt 3d613864bd Upgrade successful, the game runs! 2 years ago
Elijah C. Voigt ac7458a0f9 Clippy is happy 2 years ago
Elijah C. Voigt 618d0c87b4 Remove examples
Too much work to maintain wrt upgrades
2 years ago
Elijah C. Voigt 023dd9dc00 Clippy fixes 2 years ago
Elijah C. Voigt e031ebd22a Fixing some bevy 0.13 errors 2 years ago
Elijah C. Voigt 877f7001b1 Mostly updated to bevy 0.13 2 years ago
Elijah C. Voigt d3c2289d41 why you no iter_many_mut().for_each()??? 2 years ago
Elijah C. Voigt c04f72dccd 🤷
The tutorial fails to init sometimes for some weird reason...
2 years ago
Elijah C. Voigt a7ffd6e0f9 Button images rough implementation
Tuning font sizing and need to add font changes upon interaction
2 years ago
Elijah C. Voigt 8e2d4ab7af Still not sure how to get rid of fog at startup... 2 years ago
Elijah C. Voigt bd303af745 clicking through animations/intro scroll 2 years ago
Elijah C. Voigt ca95bf46ec escape is handled gracefully in most situations 2 years ago
Elijah C. Voigt 1ffb34b93b Well I got endgame working, then I kept going
Probably broke something, but I'm working on escape handling in
different contexts. Mostly going to the "expected" menu.
2 years ago
Elijah C. Voigt aef8c719f2 tutorial menu works 2 years ago
Elijah C. Voigt 3091a15dea main menu works! 2 years ago
Elijah C. Voigt 4b5c90f1ba saving my place working on menus
Also refactored my custom any_component_X methods to act more like other
conditionals
2 years ago
Elijah C. Voigt 5fc0706c10 Saving my place
Adding a little 'just_pressed' helper for system conditionals
Replaces that lambda I kept using all over the place
2 years ago
Elijah C. Voigt ca092ddbc0 Saving my place, reworking menus 2 years ago
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 b6cb7bcf13 Add Tutorial button to toggle it on/off 2 years ago
Elijah C. Voigt 30d755e8de We have a favicon! 2 years ago
Elijah C. Voigt 0a37814aeb Hacking in tutorial button.
Need to toggle it on/off, but this is a good step.
2 years ago
Elijah C. Voigt ad7090aa47 Changed formatting of tutorial text to be the side of the screen
Still got some formatting issues, mostly the font size on smaller
windows, but that can be addressed later...
2 years ago
Elijah C. Voigt 80ee571cb1 it is ugly, but it works. Intro is idempotent 2 years ago
Elijah C. Voigt 6e68b2fc2a Only show piece tutorials once 2 years ago
Elijah C. Voigt 6e31ce5304 Now it's slightly better, but why is there fog?? 2 years ago
Elijah C. Voigt ae19a96844 Working better, but not intro -> game animation is missing
the game just pops into existance, no bueno.
2 years ago
Elijah C. Voigt d5f44b9639 Technically works, but want to tweak showing/hiding text boxes 2 years ago
Elijah C. Voigt 2bcc240cc3 Doesn't work, but saving my place 2 years ago
Elijah C. Voigt 974e878763 Fix bug with minimizing crashing the game 2 years ago
Elijah C. Voigt 2946c89f36 tutorial logic mostly works 2 years ago
Elijah C. Voigt 0f9d9b27ea cargo fmt 2 years ago
Elijah C. Voigt 3acb1ad949 cargo fmt 2 years ago
Elijah C. Voigt 8825736373 tutorial main chunk, definitely buggy... for tomorrow 2 years ago
Elijah C. Voigt 7a72257633 Plan out tutorial 2 years ago
Elijah C. Voigt 7566ca1ca2 cargo fmt 2 years ago
Elijah C. Voigt 207d691b2e intro with basic animation 2 years ago
Elijah C. Voigt b983dc8e23 Stub out intro animation 2 years ago
Elijah C. Voigt 59755d2bdd cargo fmt 2 years ago
Elijah C. Voigt 716c94a5f3 Dynamic UI resolution 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 2d60508471 Skip animation 2 years ago
Elijah C. Voigt 1d8a505d23 Example is close, but still no repro on the rendering bug... 2 years ago
Elijah C. Voigt d75658939d made example closer to real game, but still no repro... 2 years ago
Elijah C. Voigt 399c1c6208 Saving my place
This was too much work to accidentally fuck it up with my "fixes"
2 years ago
Elijah C. Voigt 8d88a54675 make the shader example closer to reality...
With Backup<T> and all that jazz...

I wonder if it will work in the real game!
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 219621c1cc Use tweak for credits 2 years ago
Elijah C. Voigt f9197ab157 Merge PlayState with Side 2 years ago
Elijah C. Voigt 962bc335c2 cargo fmt 2 years ago
Elijah C. Voigt 1c206e3079 mute audio with `m` 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