| Commit message (Collapse) | Author | Age | Lines |
| | |
|
| |
|
|
|
|
| |
This is not a very nice solution and is due to limitations of raylib.
Since I want to change the way input is handled in the future this is an
okay solution, but when overhauling the input needs to be changed.
|
| |\ |
|
| | | |
|
| |/ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Since the tool sidebar was always setting the currently active tool and
that meant even when no change occured, the tool was being deactivated
and reactivated, nothing happened except for the icon tool. Now, it's
checked if any change is necessary in the editor
|
| | |
|
| |
|
|
|
|
|
| |
The icon that would be placed next, but is not on the map was always
drawn once the icon-tool was activated once. This is no longer the case.
Also, the tool now saves the last icon that was selected and keeps the
rotation of it between placements, which I deemed more intuitive.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|
|
In order to be able to save and load the map, a major rework of the code
seemed necessary, since Vector2 and Rectangle of raylib do not implement
serialize, and it seems cleanest to use the serialize/deserialize traits
of serde, to save for instance to RON. ToolShed was renamed to Editor,
since it should better show, that it does quite a bit more than harbour
tools. The map data is now centrally saved in the editor, instead of
decentralised in the tool structs.
|