commits
will fix later but want the concept done first
Removed residue colors in colors.json and readjusted colors in engine to complementing blacks with a little blue in them which makes the engine look alot better
Now that i feel like the gui is in a relatively complete in terms off the functions ive started work on the ui. Ofcourse things happen to the ui but i fell like that wont change the main way to use it.
Also change the ui to use tween as the main constraint setter and because of that renamed the functions like tween_to and tween_size to a more overarching set_pos and set_size respectively.
i made it pixel perfect for some reason and it made it look really dumb on low resolutions
Fixed fallback screen to be dynamic with screen size and fixed misstype in gui_text in gui.py that made the percentage_constraint for the y position adjust according to the width instead of the height as its supposed to do.
gui_rect now has 3 new properties named show_rect, show_image and image. Pretty self explanitory. The image follows the rect constraints. Currently working on a way to preserve the image aspect ratio in the rect. I just couldn't be bothered copy pasting code into gui_image cus it was boring so here is the merge.
Updated GUI to feature a gui_image class for images not fully featured also planning on merging this with the gui_rectangle class
Added a fallback screen to the renderer as before the game crashed when a uninitialized screen was referenced but now it defaults there.
Also removed a bunch of bloat images i left from a earlier project that were just laying around.
Added Camera_Relative_Component to entity to have a easier way of making panning games. Also removed the residue from the 4k mania style game.
Added a simple project to the base engine to have a base and show off some of the basic functionality
Forgot to change is_just_pressed method in new input thingy
Now that i feel like the gui is in a relatively complete in terms off the functions ive started work on the ui. Ofcourse things happen to the ui but i fell like that wont change the main way to use it.
Also change the ui to use tween as the main constraint setter and because of that renamed the functions like tween_to and tween_size to a more overarching set_pos and set_size respectively.
gui_rect now has 3 new properties named show_rect, show_image and image. Pretty self explanitory. The image follows the rect constraints. Currently working on a way to preserve the image aspect ratio in the rect. I just couldn't be bothered copy pasting code into gui_image cus it was boring so here is the merge.
Updated GUI to feature a gui_image class for images not fully featured also planning on merging this with the gui_rectangle class
Added a fallback screen to the renderer as before the game crashed when a uninitialized screen was referenced but now it defaults there.
Also removed a bunch of bloat images i left from a earlier project that were just laying around.