| Commit message (Collapse) | Author | Age | Lines |
| | |
|
| |\ |
|
| | |\
| | |
| | | |
Make walls join nicer in corners
|
| |\ \ \
| |/ /
|/| /
| |/ |
Make walls join nicer in corners
|
| | |\
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Before, the grid was calculated accumutatively, which was pretty
alright. However, with some zoom levels towards the bottom of the
screen there was a discrepancy between the grid and something drawn.
This should be fixed now, since this update makes the grid use the same
method of calculation for every grid cell that everything else uses to
calculate points. Also, sub-pixel positions are rounded for the grid,
while they were floored before, which should improve accuracy.
|
| | | |
|
| |/ |
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
Before, the deletion tool was not targeting polygons. I also took the
liberty to broaden the functionality of the surface trait, which now can
check if a rectangle or polygon is contained.
|
| |/ |
|
| |
|
|
|
| |
There were quite a few places, where I hardcoded a print in. Most of
these should use the logger instead, so I fixed it.
|
| | |
|
| |
|
|
|
|
| |
It's still kind of strange to use the polygon tool, but at least it
seems stable enough so I'm confident enough (and sick enough of it) to
release it into the wild.
|
| | |
|
| | |
|
| |\ |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Previously, the algorithm to check, if a line-segment is inside a
polygon did not have a special case for when the start or end of the
segment is on a polygon corner. In case this corner is reflexive,
checking against one line between this corner and an adjacent one may
not be enough.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
The math module was starting to be mostly polygon files and functions,
so those got their own subfolder to make the math module less of a mess.
|
| | | |
|
| | | |
|
| | | |
|
| |/
|
|
|
|
|
| |
When adding the polygon room tool, a problem with drawing polygons
arised. Drawing a simple, but nonregular polygon is not something that
is supported by raylib, so further additions to the math library are
needed.
|
| | |
|
| |
|
|
|
|
|
| |
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 algorithm before was really not working for a lot of edge cases and
very difficult to adapt. This version is definitely not the be-all and
end-all, but it should work for most (well, hopefully all) cases. After
refactoring and hopefully simplifying and straightening out the logic a
little more, it should be verifiable.
|
| | |
| |
| |
| |
| | |
..except for one super super edgy edge case, but I wanted to get this
algorithm out into a commit before I ruin it completely (probably)
|
| |\ \
| | |
| | | |
Fix ghost tools
|
| | |\ \ |
|
| | | |/
| |/| |
|
| |\ \ \
| |/ /
|/| /
| |/ |
Fix the dimension indicators persisting after add
|
| |/
|
|
|
| |
The dimension indicators were drawn very for the blink of an eye when
starting a rect that comes after the first. This commit should fix that.
|
| |
|
|
|
| |
0.5 was used as a magical number throughout the code for that until now,
which I now changed.
|
| |
|
|
|
| |
Fixed the last warnings and ran clippy on the project. Fixed where
appropriate and taught clippy otherwise. Now runs through clean.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|