ggdt/examples/balls_v2
Gered 07f2b13f68 large amount of bitmap graphics rework
this is an unfortunately large commit. probably should've been broken
up into multiple smaller ones.

i decided to revert some earlier preparatory work i had done to organize
graphics functionality into two main streams: "indexed" and "rgb". this
was going to result in two completely different Bitmap structs which
were going to be largely similar and as i thought about it more, i
realized my earlier thinking that i wouldn't be able to generify the
Bitmap struct based on pixel-depth was actually not correct.

so, this commit re-works things significantly in a way which i think
is better but probably still not perfect. basically, we have one
Bitmap struct which provides a lot of generic functionality, but also
specialized implementations based on pixel-depth and this is now what is
separated out into graphics::bitmap::indexed and graphics::bitmap::rgb.

but the rest of the graphics functionality is not separated out by
module like this any longer.

note that i've still kept the GeneralBitmap trait and implementations.
i was originally thinking i could get rid of this since i'd now made
Bitmap generic over pixel-depth, but doing so would require me to
rename the common/general blit methods to avoid a name collision with
the specialized implementations (since they would both exist on the
same types now). and i did not like that. i dunno, maybe i will change
my mind later.
2023-03-11 16:58:13 -05:00
..
assets add balls_v2 example 2022-05-15 16:34:25 -04:00
src large amount of bitmap graphics rework 2023-03-11 16:58:13 -05:00
Cargo.toml rename from libretrogd to ggdt 2023-03-02 16:11:59 -05:00
README.md rename from libretrogd to ggdt 2023-03-02 16:11:59 -05:00
screenshot.png add READMEs and screenshots for examples 2022-05-23 17:45:22 -04:00

ggdt - 'Flying Balls' Demo v2

Extension of the original 'Flying Balls' demo found in this repository under /examples/balls. This one is re-done with some more effects, but with the major difference being utilization of the entity, events, and states support from ggdt.

Simply do cargo run from this directory to try it out.