p-sam
fda783ed2c
switch: use native screen resolution
2023-11-29 13:21:47 +01:00
p-sam
668cdaea44
switch: remove unneeded fs session limit
2023-11-29 13:21:47 +01:00
p-sam
dde77f824e
switch: cleanup unused video defaults
2023-11-29 13:21:47 +01:00
p-sam
755523674f
switch: TAISEI_NOASYNC is no longer needed
2023-11-29 13:21:39 +01:00
Victor Chernyakin
b2de36fd78
boss: make boss and attack names constant strings ( #375 )
...
Functions `create_boss()` and `boss_add_attack()` take name strings
which they copy with `strdup()` and store in `Boss` and `Attack`. This
is unnecessary, because all these names are static constant strings and
they're never modified.
2023-11-29 14:19:55 +02:00
Andrei Alexeyev
968edfb4fe
util/rectpack: fix wrong subsplit direction in split_vertical
...
Doesn't seem to ever actually matter in practice, but theoretically it
was wrong.
2023-10-20 16:15:06 +02:00
Andrei Alexeyev
4cb63ee480
ci: update container for Switch jobs
2023-10-08 18:51:08 +02:00
Alice D.
a7fb1b68b6
ci: fix Switch build container
2023-10-08 15:53:24 +02:00
Andrei Alexeyev
5154db305f
ci: add some settings for release workflow
2023-09-30 14:34:13 +02:00
Andrei Alexeyev
fb6515f337
ci: upgrade windows runners to latest image
2023-09-30 13:43:38 +02:00
Andrei Alexeyev
f39fc3c4d4
ci: reorganize and hopefully fix windows dockerfile
2023-09-29 18:39:33 +02:00
Andrei Alexeyev
346df91b26
build: fix meson deprecation warning
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
7c1843cffa
build: add option to disable gamemode integration
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
2e40c6dab5
ci: update llvm-mingw to 20230919
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
cc01be15fe
all: use the clamp() macro
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
ee09f33a5f
util/miscmath: deprecate iclamp and clampf
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
68f3678575
util/miscmath: implement clamp() as a type-generic macro
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
4e6929d605
util/miscmath: change assume to assert in ASSUME_FINITE for now
...
On some toolchains isfinite compiles to a function call and trips a
-Wassume warning
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
8f8ca2beca
all: use min/max macros; avoid some unnecessary conversions
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
a45c6498d2
util/miscmath: deprecate various min/max functions
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
ef92ee12fc
laser,move,projectile: annotate hot paths
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
4592212b06
main: don't disable preloads in headless mode
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
7e1ea18969
item: cache sprite pointers
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
a464aa8837
projectile: cache auto-angle of constant-velocity projectiles
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
1d04428bbb
projectile: optimize projectile_size, projectile_graze_size, projectile_in_viewport
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
1b5feddd97
move: use cmul_finite in move_update
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
b2df4e34db
lasers: irrelevant quantize_laser optimizations
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
c15934f666
dynarray: get rid of memset and add optional initializer arg to dynarray_append
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
b02d831e41
util/geometry: small ellipse collision optimizations
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
4f6384b257
util/miscmath: add component-wise complex div functions
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
806427e8e0
util/miscmath: add cmplx mul & div functions that don't care about infs and nans
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
c2810e228d
all: use re()/im() macros
2023-09-28 17:43:14 +02:00
Andrei Alexeyev
95053f7fe8
util/miscmath: annotate unlikely branches in approach_asymptotic funcs
2023-09-20 04:01:14 +02:00
Andrei Alexeyev
4547f6dc09
util/miscmath: deprecate creal/cimag/crealf/cimagf
2023-09-20 03:58:55 +02:00
Andrei Alexeyev
8b987dcc37
util/miscmath: add csort(z) and csortf(z) functions
2023-09-20 03:43:30 +02:00
Andrei Alexeyev
6e80df6e22
util/miscmath: mark smoothmin as attr_const
2023-09-20 03:42:21 +02:00
Andrei Alexeyev
13ae7a2f72
util/miscmath: remove some unused functions
2023-09-19 14:24:48 +02:00
Andrei Alexeyev
2795419256
util/miscmath: add type-generic min() and max() macros
2023-09-19 13:56:36 +02:00
Andrei Alexeyev
83373d139d
util/miscmath: add re(z) and im(z) macros
...
Shorter and type-generic replacements for creal() and cimag(). If z is
an l-value, the returned value is also an l-value, e.g.:
cmplx foo = 420 + 69i;
im(foo) = 1337;
assert(foo == 420 + 1337i);
2023-09-19 13:51:10 +02:00
Andrei Alexeyev
a08d68a91a
demoplayer: ignore suspend/resume requests when not initialized
...
This fixes a nasty interaction between the intro sequence and the
demoplayer introduced in 3ff62045
. The cutscene tries to suspend the
demoplayer for its duration and then resume it later. When the
suspension counter hits 0, the demoplayer event handlers are installed
globally. And then AFTER that happens, the demoplayer is actually
initialized, resetting the suspension counter and installing the event
handlers AGAIN. When the demoplayer is then suspended (e.g. by starting
the actual demo playback), only one set of those handlers is removed,
which has the effect of the demoplayer remaining active even in-game.
Eventually, it tries to play a demo while a game is already running,
at which point all hell breaks loose.
Fix this by making suspend and resume no-ops until the demoplayer has
been properly initialized.
Fixes #371
2023-09-10 06:41:32 +02:00
Andrei Alexeyev
94213b4b2c
external: update koishi
...
Fixes #372
2023-09-09 18:55:23 +02:00
Andrei Alexeyev
5aaa2a5ccb
scripts: change VERSION_FALLBACK to v1.5-dev
2023-09-09 18:55:04 +02:00
Andrei Alexeyev
ab6b26d8a5
xdg: update appdata
2023-09-08 03:14:46 +02:00
Andrei Alexeyev
390066037f
scripts: change VERSION_FALLBACK to v1.4
2023-09-08 00:52:41 +02:00
Andrei Alexeyev
e86b12482e
stage6: ricci: disable collision lerp for the danmaku field
2023-09-08 00:52:41 +02:00
Andrei Alexeyev
8847d79dfd
credits: shout out more FOSS projects that we use
2023-09-08 00:38:17 +02:00
Andrei Alexeyev
4639b6c6c4
credits: expand background so text doesn't overflow
2023-09-08 00:38:17 +02:00
Andrei Alexeyev
8363285082
stage6: fix timing of ToE intro screen shake and elly portrait change
2023-09-08 00:38:17 +02:00
Andrei Alexeyev
a0b9c750b4
stage: fix music sync after skip mode
2023-09-08 00:38:17 +02:00
Andrei Alexeyev
b8ad5f7099
stage: massively boost all-clear bonus
...
Depends on PIV, current score, and difficulty
2023-09-07 21:50:56 +02:00