Commit Graph

12 Commits (2c22da022f1eaf420af050b7ce6ca33e7d6021e6)

Author SHA1 Message Date
Zed A. Shaw 2c22da022f Text can be centered wither with the centered attribute on a class or with = in the spec. 2 months ago
Zed A. Shaw 3752522597 Fixed Icon vs. Sprite and now Icon is just a subclass of Sprite. Closes #12. 2 months ago
Zed A. Shaw a22342cd7e Now Sprite can do either aspect_ratio scaling or stretching and Icon is just a subclass. 2 months ago
Zed A. Shaw b7cfa4db2d Icons now scale via aspect ratio, but it's still not as robust as it should be. I also think that Sprite should just work this way or stretch if an option is given, which would make Icon kind of pointless. 2 months ago
Zed A. Shaw 5a7c096b52 Fix up the backend so it has sane names like get_sprite and get_icon, then implemented a guecs::Icon for icons. Those don't scale and typically have other properties different from a Sprite. 2 months ago
Zed A. Shaw e1d61dc2c1 You can now set a sprite as a background in Background which will simplify a lot of games that just place sprites over a single image. 3 months ago
Zed A. Shaw de0d957c66 Updated the SFML support stuff to use the Config that can be oriented at a BASE_DIR to find stuff relative to the config file. 4 months ago
Zed A. Shaw 4d71f552aa Refactoring the GUECS UI::render and the components so that it's just calling a .render on each one. This will then let me allow registering any components people want. 4 months ago
Zed A. Shaw a9e219ea96 Clicker now moves when you click him. 4 months ago
Zed A. Shaw adc192c6dc Removed dbc and replaced with plain asserts everywhere. 4 months ago
Zed A. Shaw a18d60dcb0 Added direct theme support and will slowly move more things into this struct for configuring the look. 4 months ago
Zed A. Shaw 3bc05ad164 Move everything under the guecs/ directory in src/ so that it meshes better with other projects. 4 months ago