Commit graph

2432 commits

Author SHA1 Message Date
Clownacy
479fff2ccf New mostly-integer-only sound mixer
The mixer itself is integer-only, but the millibel stuff is still
float-based (I don't know if it's worth adding a 10001-value-long
lookup table to replace it).

Anyway, according to a quick test, this new mixer is significantly
faster than the old floating-point one - rarely going above 100
clock() ticks per callback, with the old one almost always running
above that.

For now, only the SDL2 backend supports it - I'll add the others in
upcoming commits.

This will no-doubt cause problems with the enhanced (lite) branch,
where clownaudio always outputs float samples.
2020-06-24 01:11:02 +01:00
Clownacy
7334440c27 Merge branch 'accurate' into portable 2020-06-23 19:42:32 +01:00
Clownacy
d9e01225a9 Update URLs in readme 2020-06-23 16:30:12 +01:00
Clownacy
93852242f4 Just use 'CSE2' everywhere, instead of the full name
Since Nicalis reobtained the 'Cave Story' trademark back in April,
it looks like we're going to have to go the route of the Wine project
and change what the abbreviation is short for...

Can't Sue Everyone 2?
Clownacy Saga, Episode 2?
Code-Stealing Eyesore 2?
2020-06-22 17:25:34 +01:00
Clownacy
49b4ffb722 Clear-up some README wording 2020-06-15 23:34:44 +01:00
Clownacy
8247aa30fc Fix a typo in PHILOSOPHY.md 2020-06-05 15:41:25 +01:00
Clownacy
1df1248e2e Clarify enhanced-lite's purpose a little
I realised GZDoom is a pretty poor comparison, since that thing goes
out of its way to add stuff like swimming, crouching, and jumping.

Boom specifically prioritised preserving the 'feel' of Doom, which I
think makes it much closer to CSE2E.
2020-06-05 14:38:28 +01:00
Clownacy
e45d69fd2d Fix typo in licence.txt
Thanks, joexyz
2020-05-20 19:30:11 +01:00
Clownacy
659332ba35 Merge branch 'accurate' into portable 2020-05-20 19:04:06 +01:00
Clownacy
b951632b17 Ignore enhanced-lite config file
Thanks to jozsefsallai for pointing this out in #121
2020-05-20 19:02:39 +01:00
Clownacy
bfff68f260 Update Wii U data folder path 2020-05-09 14:31:41 +01:00
Clownacy
f314dec23d Merge branch 'accurate' into portable 2020-05-09 14:10:34 +01:00
Clownacy
2d26904b6c Add enhanced-lite branch to the readme 2020-05-09 14:09:35 +01:00
Clownacy
9a9f520947 Add the enhanced-lite branch to PHILOSOPHY.md 2020-05-09 13:54:08 +01:00
Clownacy
2e8f4cf72e
Merge pull request #117 from GabrielRavier/portableAddOpenGLPolicy
CMakeLists: Fix CMP0072 warning
2020-05-08 18:12:47 +01:00
Clownacy
6d297b5fc2 Add Null backend to Travis 2020-05-06 23:16:11 +01:00
Clownacy
29f7c19a02 Fixed Null backend 2020-05-06 23:15:02 +01:00
Clownacy
5596c33b38 Fix stuff
Looks like the Null backend's been broken for a while though
2020-05-06 23:10:40 +01:00
Clownacy
e93ee47728 More backend rearranging
The Window stuff isn't meant for the user, so hide it a bit more
2020-05-06 23:02:08 +01:00
Clownacy
dacd34072a Fix everything after the last commit 2020-05-06 22:52:11 +01:00
Clownacy
616b9cda9e Rearrange shader files
The old way just kind of mashed two approaches together.
2020-05-06 22:40:10 +01:00
Clownacy
53e4742e38 Update miniaudio to v0.10.5 2020-05-06 22:24:59 +01:00
Clownacy
4403d10c14 Merge branch 'accurate' into portable 2020-05-04 18:24:23 +01:00
Clownacy
70a3badc0d Cleanup 2020-05-04 18:21:44 +01:00
Clownacy
2f682a102f Merge branch 'accurate' into portable 2020-05-04 18:17:39 +01:00
Clownacy
4000615b45 This is also likely more accurate to the source 2020-05-03 22:13:28 +01:00
Clownacy
124aebaaa2 This is likely more accurate to the original code 2020-05-03 22:07:18 +01:00
Clownacy
e1af3336aa Fix compilation 2020-05-03 22:05:39 +01:00
Clownacy
496a50c272 More static function stuff
This time I'm using the Linux debug data
2020-05-03 21:52:37 +01:00
Clownacy
95b29bb516 Mark some functions as static
Mac debug data confirms these
2020-05-03 21:52:36 +01:00
Clownacy
486cf37161 Mark a char as signed
Might revert, not sure. I'm just doing this for consistency with
other bits of code.
2020-05-03 21:52:29 +01:00
Clownacy
03250d62a0 Make variables more accurate
This commit changes which variables are static: the Mac (and
presumably the Linux) debug data tells you what variables are static,
by prefixing their names with double_underscores.

The variable names themselves also hint at this: global variables are
prefixed with 'g', and use upper-camelcase, while static variables
use whatever_you_call_this.
2020-05-03 20:28:56 +01:00
Gabriel Ravier
bdbc2475c6 CMakeLists: Add setting of CMP0072 to normal CMakeLists, too
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-05-03 02:21:16 +02:00
Clownacy
b7418432df Merge branch 'portable' of https://github.com/Clownacy/Cave-Story-Engine-2 into portable 2020-05-03 01:17:06 +01:00
Clownacy
340a552003
Merge pull request #118 from GabrielRavier/portableAddSDL2VersionCheck
CMakeLists: Add minimum version for SDL2
2020-05-03 01:12:40 +01:00
Clownacy
4895880682 WiiU: Use different folder depending on language 2020-05-02 23:54:38 +01:00
Gabriel Ravier
277a0b8e73 CMakeLists: Add minimum version for SDL2
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-05-01 00:19:12 +02:00
Gabriel Ravier
b52a343760 CMakeLists: Fix CMP0072 warning
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-05-01 00:13:22 +02:00
Clownacy
bdbebf9a35 Merge branch 'portable' of https://github.com/Clownacy/Cave-Story-Engine-2 into portable 2020-04-29 16:13:08 +01:00
Clownacy
88602ccaf6 Do not create glyph textures with no height/width
This should fix the issue with cute_spritebatch.h, described in #116.
2020-04-29 13:09:51 +01:00
Clownacy
d0ec163e0a Merge branch 'accurate' into portable 2020-04-27 18:42:11 +01:00
Clownacy
99ed3ead55
Merge pull request #115 from GabrielRavier/portableAddCMake3_10Support
Add support for CMake 3.8 in portable
2020-04-27 18:41:34 +01:00
Clownacy
3dd904adf6
Merge pull request #114 from GabrielRavier/accurateAddCMake3_10Support
Accurate: Change minimum CMake version from 3.12 to 3.5.1
2020-04-27 18:41:13 +01:00
Clownacy
16f29f6fb7 Merge branch 'accurate' into portable 2020-04-26 00:56:40 +01:00
Clownacy
1e63788c61 Use safe printf functions for Wii U code 2020-04-26 00:55:33 +01:00
Clownacy
aa18cccef5 Ditch the Nintendo-style controls
After asking around, people really seem to prefer Xbox-style
controllers. Admittedly, when I was playtesting with Nintendo
controls, I wound up using my fingers to press A/B because of how
awkward it was.
2020-04-26 00:50:43 +01:00
Clownacy
43c0b670ab Figured out the mystery values in RestoreSurfaces
They're ASCII characters.
2020-04-26 00:07:45 +01:00
Clownacy
e4e8453ba6 Make some logic more like vanilla 2020-04-25 17:58:19 +01:00
Clownacy
c5691d7570 Fix Wii U port when TV is set to 1080p
WUT's bugged. See here:
https://github.com/devkitPro/wut/issues/119

It apparently got this bug from the Decaf emulator. Maybe I should
tell those guys too.
2020-04-25 00:22:24 +01:00
Clownacy
22c9987191 Dear me: Test your fixes before committing them
you complete tit-head
2020-04-24 19:49:18 +01:00