summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Stan_Lewry [Sat, 24 Jul 2021 10:45:31 +0000 (11:45 +0100)]
Create simple rectangle widget
Stan_Lewry [Fri, 23 Jul 2021 16:10:42 +0000 (17:10 +0100)]
button widget missed propety names
Stan_Lewry [Fri, 23 Jul 2021 13:54:01 +0000 (14:54 +0100)]
Implemented new basic button widget with simple sprite. A button can be hovered over and clicked and an event string can be specified to be emitted when it is clicked. Handled simple quit event in main to demonstrate.
Events are queued by the button and popped in main where they are handled. Eventually this can be moved to the Game class or whatever. Could create something where other classes can subscribe to certain events or something.
Can specify position, font, text, colour, and the event to emit on click in the JSON.
Re worked fonts in Texture.py to support multiple fonts at multiple sizes.
Changes to InputHandler to support mouse events.
screenshots for writeup.
Stan_Lewry [Wed, 21 Jul 2021 23:48:12 +0000 (00:48 +0100)]
Initial implementation of GUI framework. Created GuiManager and to manage gui widgets and gui events. Created Widget base class and ImageWidget to demonstrate. Added ability to generate gui widgets from a json file.
Stan_Lewry [Tue, 20 Jul 2021 17:24:56 +0000 (18:24 +0100)]
Render tiles that have been seen previously but are not currently visible with a darkened effect.
Stan_Lewry [Tue, 20 Jul 2021 17:01:39 +0000 (18:01 +0100)]
World gen doors and walls
Stan_Lewry [Tue, 20 Jul 2021 12:28:22 +0000 (13:28 +0100)]
Continuted world gen work. Can now correctly fill the map with rooms that don't overlap.
Stan_Lewry [Sun, 18 Jul 2021 09:46:21 +0000 (10:46 +0100)]
Change font and debug text + screenshots for world gen writeup.
Stan_Lewry [Sat, 17 Jul 2021 16:00:14 +0000 (17:00 +0100)]
world gen first implementation
Stan_Lewry [Sat, 17 Jul 2021 12:28:11 +0000 (13:28 +0100)]
restructure
Stan_Lewry [Sat, 10 Jul 2021 19:07:34 +0000 (20:07 +0100)]
Initial commit