1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 03:33:48 +00:00
Commit graph

1271 commits

Author SHA1 Message Date
fgenesis
b59fb507ca Reduce Game::fillGrid() complexity from O(n^2) to O(n) when trimming
Eliminates stutter on slow machines or in debug mode when operating doors.
Also the game shouldn't freeze anymore when marking very large tiles
as obstructing.
2024-11-04 04:47:34 +01:00
fgenesis
4702cd238c fix grid of type OT_BLACKINVIS being drawn like OT_BLACK after map load
reconstructGrid() or editor use fixed this, but that usually didn't happen
when playing vanilla maps normally

Again, the dreaded black edges, should now be fixed for good...
2024-11-04 04:42:42 +01:00
fgenesis
441fe9f332 Disable WaterSurfaceRender glCopyImageSubDataEXT code path
Fixes graphics problems as soon as the water surface was on screen
2024-11-01 22:31:22 +01:00
fgenesis
c598fde5e8 Change entity_setFillGrid() to allow skeleton grid filling, and whether to trim
entity_isFillGrid() returns two bools now
2024-10-17 06:00:51 +02:00
fgenesis
2149fcd01e fix typo that broke predefined text input 2024-10-16 06:10:10 +02:00
fgenesis
55a37e7728 fix missed break in prev^2 commit 2024-10-15 04:11:30 +02:00
fgenesis
5f2a0119be Add Lua functions:
+ quad_borderColor()
+ quad_getBorderColor()
2024-10-15 04:08:12 +02:00
fgenesis
b8a9815de7 Change the text input box to use SDL textinput events
Add a cheap replacement for SDL1 that doesn't have textinput events.
2024-10-15 04:07:22 +02:00
fgenesis
22e682cebc don't lose tile flags when changing solidness; update grid when flipping solid tile 2024-09-23 23:29:10 +02:00
fgenesis
fef32b042c keep texture data in host RAM when pixel data are needed, eg. for collision calculations
This avoids downloading from the GPU *every single time*
the pixel data are needed
2024-09-23 03:28:03 +02:00
fgenesis
c7aa3e2ec3 typo; fix tile wavy-effect flip (this effectively made numpad 5+6 effects the same) 2024-09-22 04:32:18 +02:00
fgenesis
08913e68f4 tbsp lib update 2024-09-22 03:24:08 +02:00
fgenesis
798b6193ab fix a warning 2024-09-22 03:23:51 +02:00
fgenesis
e9998dd427 Fix grid rendering -- it rendered original obs, not trimmed obs (black border poking out left/right in some cases)
Also avoid unnecessary recomputation in some cases.
2024-09-22 03:23:14 +02:00
fgenesis
2c2153de9d Add MOUSE_BUTTON_REAL_* mapping IDs because sometimes we need to handle unmapped mouse buttons
One such case is the editor; if Ctrl was mapped to RMB then rotating
tiles in 45° increment mode is impossible
(since the editor checks for Ctrl to enable increment mode,
and it did the wrong thing when releasing "both" at the same time)
2024-09-22 02:36:18 +02:00
fgenesis
beb726e65d editor: hide ghost sprite when any tile is selected 2024-09-22 01:22:34 +02:00
fgenesis
47aa41de19 fix wrong(?) assert that may break stuff on macos.
Time to rip out this old lib. soon, hopefully
2024-08-04 00:35:36 +02:00
fgenesis
9251278e46 compat stubs: fix warnings on death-reload 2024-07-16 03:37:13 +02:00
fgenesis
98c6b716d7 tiny more unfuck 2024-07-16 03:14:51 +02:00
fgenesis
ab9193d1a9 unfuck freetype.cmake 2024-07-16 03:10:17 +02:00
fgenesis
296c89ee7e keep on tryin' 2024-07-16 02:57:09 +02:00
fgenesis
62c29dc2c9 fix build failing when the Aquaria repo was located in a path containing spaces
(thx NinjaKittyc4)
2024-07-16 02:53:02 +02:00
fgenesis
6047dd61b1 cmake: don't set build type when building with msvc
msvc has its own build type handling;
with this asserts are on in debug/relwithdebinfo mode and off in release mode,
as they should be.
2024-07-14 01:52:27 +02:00
fgenesis
5c4e4450ba editor: fix entity rotation logic
entity will no longer insta-rotate when clicked
2024-07-14 01:51:13 +02:00
fgenesis
0153c977df couple more fixes for apple clang build 2024-07-13 19:33:10 +02:00
fgenesis
64c0c649cd compile fixes for apple clang 2024-07-13 06:49:32 +02:00
fgenesis
a046038c33 very minor perf thing: skip some RenderObject child checks when there are no children 2024-07-13 06:48:30 +02:00
fgenesis
1573eea051 optimize moving tiles to front/back a bit
First i thought this would fix the bug fixed in the prev. commit,
but it was unrelated.
Now that i've changed it and made it more readable, may as well keep it.
2024-07-13 06:47:07 +02:00
fgenesis
2f47d11271 fix editor bug (tile confusion) when moving tiles to front or back while also dragging them 2024-07-13 06:44:41 +02:00
fgenesis
b54d8d05ac correctly update VBO of GridRender(OT_BLACK) after trimGrid()
This fixes blackness showing occasionally even though it was no longer there
2024-07-08 03:54:00 +02:00
fgenesis
a5b25af6d5 ocd fix 2024-07-08 01:54:13 +02:00
fgenesis
3cb64459f3 fix OT_INVISIBLE grid not reconstructing properly on map load 2024-07-08 01:53:53 +02:00
fgenesis
d4b80525a9 Merge branch 'more-bspline' into tile-optimization 2024-07-07 05:36:51 +02:00
fgenesis
b55b5a033c make both spline modes toggle-able ("assist" mode) 2024-07-07 05:36:21 +02:00
fgenesis
8efdec5aa0 bugfixes 2024-07-07 03:45:47 +02:00
fgenesis
e34b854338 tbsp: bugfix when outputStride > 1 2024-07-07 03:31:17 +02:00
fgenesis
36aaa77436 bspline point gen is now properly integrated and only called while in the editor.
the remaining code uses the same old basic control points as it previously did.
2024-07-07 03:30:54 +02:00
fgenesis
77611b4188 dmon/win32: make it not need stdint.h 2024-07-05 02:11:25 +02:00
fgenesis
7d2f961573 tbsp: split into alloc, prep, generation steps 2024-07-05 02:10:27 +02:00
fgenesis
fc3580ca64 new tbsp version; working spline control point generation prototype 2024-07-04 21:40:31 +02:00
fgenesis
753718c7ad HOW DID THIS EVER WORK 2024-06-28 00:50:52 +02:00
fgenesis
32168bae9f more node colors to indicate type of node:
green: with Lua script attached
purple: built-in effect, no Lua script attached
salmon: default (no effect, no script)
2024-06-27 23:45:26 +02:00
fgenesis
2373fd7170 fixed to dmon win32 backend (made a PR) 2024-06-27 23:43:58 +02:00
fgenesis
f71c7f5d40 make dmon optional at compile time, and a dedicated runtime option
it's still experimental and might cause problems,
so only enable this if specifically requested,
since it's not needed for regular gameplay
2024-06-27 23:43:26 +02:00
fgenesis
5895703ac4 derp 2024-06-25 04:53:31 +02:00
fgenesis
5a6810e063 integrate directory watching for mod gfx in dev mode, and reload texture files that change 2024-06-25 04:49:44 +02:00
fgenesis
5676c41f45 integrate dmon from https://github.com/septag/dmon 2024-06-25 04:43:13 +02:00
fgenesis
8b73101f42 small visual fix for particle collision on the water line
The water line is no longer offset by some pixels but goes exactly
where Game::waterLevel.x says it should. This compensates the change
in b8dee723a2 to look as it used to.
2024-05-12 18:03:38 +02:00
fgenesis
bcffbac2b5 remove RenderObjectLayer::update. now all layers are updated, always.
The original use case of the update flag was to prevent those layers that
only had map Element tiles on them to update each tile, which would be
very slow and most tiles never had any reason to be updated.
(Those that needed to were tracked in a separate list.)

Since the map Element class does no longer exist and tiles are handled
much more efficiently now, it makes sense to not arbitarily disable
object updates for layers that used to have only map tiles on them.

Note to self: This fixes the skeleton entities properly reacting to
shots now when placed on tile layers.
2024-05-12 18:01:43 +02:00
fgenesis
db98e79e1d update gridrender immediately if visible
this fixes extra gridrenders (ie. for hurt or tile collision) showing stale
data when in the middle of setting tile properties while the gridrender
was displayed.
2024-05-12 17:48:19 +02:00