Commit graph

25 commits

Author SHA1 Message Date
Zed A. Shaw
a22342cd7e Now Sprite can do either aspect_ratio scaling or stretching and Icon is just a subclass. 2025-07-22 16:22:05 -04:00
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. 2025-07-22 12:59:10 -04:00
Zed A. Shaw
ad78c186c6 Implement a way to map entities to their names, which comes up often enough. 2025-07-07 10:54:23 -04:00
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. 2025-06-01 22:52:54 -04:00
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. 2025-05-12 00:09:21 -04:00
Zed A. Shaw
a9e219ea96 Clicker now moves when you click him. 2025-05-11 16:08:55 -04:00
Zed A. Shaw
9a4b0adc1f Clicker has a bark now. 2025-05-11 00:44:35 -04:00
Zed A. Shaw
04f6fef921 Started a tiny idle clicker demo called 'Clicker the Dog'. No idea what that means. 2025-05-11 00:15:09 -04:00
Zed A. Shaw
cf3da32681 Fixed two bugs in Effect. 1. The shaders weren't being applied to everything, only shapes. 2. The Textual components were getting a not-shape shader but should be shapes. 2025-05-10 12:54:11 -04:00
Zed A. Shaw
adc192c6dc Removed dbc and replaced with plain asserts everywhere. 2025-05-10 10:53:53 -04:00
Zed A. Shaw
3bc05ad164 Move everything under the guecs/ directory in src/ so that it meshes better with other projects. 2025-05-08 11:20:00 -04:00
Zed A. Shaw
06ca57e5da Had to rename sfml to sfmlbackend because on Windows the filesystem is case insensitive so include <SFML/*> was accidentally including _my_ <sfml/config.hpp> file. 2025-05-08 02:27:02 -04:00
Zed A. Shaw
f3f2e90cd2 [BROKEN] This build is totally broken. DONOT USE. 2025-05-08 01:12:12 -04:00
Zed A. Shaw
560f506733 Added a delete function that lets you delete numbers entered. 2025-05-07 00:55:16 -04:00
Zed A. Shaw
589373bf22 FSM is no longer needed but it may be back. 2025-05-06 23:35:54 -04:00
Zed A. Shaw
87149af4c7 Make the LEL layout look perty. 2025-05-06 23:10:52 -04:00
Zed A. Shaw
4d456139a5 Simple RPN calculator is working as a first demo. 2025-05-06 15:14:24 -04:00
Zed A. Shaw
7847ffdcbd Switched to an RPN calculator since they're simpler to implement. 2025-05-06 13:47:41 -04:00
Zed A. Shaw
bd0ec9e095 Making an FSM work better for the calulator. 2025-05-06 10:43:11 -04:00
Zed A. Shaw
c0c63e5b2c Bring over the FSM and then use it to make the calculator demo better. 2025-05-06 01:05:28 -04:00
Zed A. Shaw
4b07ecac45 Bring in the components into separate files so I can start to see how to make them generic. Then make the calculator kind of work but not yet. 2025-05-06 00:22:03 -04:00
Zed A. Shaw
313a9aec83 Demonstrate adding shader effects easily. 2025-05-05 15:00:57 -04:00
Zed A. Shaw
f8b9c88e2c First cut of a basic calculator UI example. 2025-05-05 14:26:47 -04:00
Zed A. Shaw
74f5652842 Calculator started and the SFML components are off in their own thing. 2025-05-05 13:50:57 -04:00
Zed A. Shaw
942300f0bb Started a few demos. Calculator first. 2025-05-05 12:42:51 -04:00