Commit graph

1073 commits

Author SHA1 Message Date
Splendide Imaginarius
b5b250e97e
Fix indent-related compiler warning (#3) 2023-05-08 21:14:54 -04:00
Struma
eb300a9ef1 Adjust PhysFS and OpenAL errors a bit 2023-05-08 00:18:26 -04:00
Splendide Imaginarius
f26a9a8e1c
Add Lanczos3 scaling (#9)
"Lanczos filtering tends to yield much better quality (sharper image) than bilinear filtering."
2023-05-05 15:39:42 -04:00
Struma
0072c19371 Multiple changes
+ Time is now measured in fractions of a second, not microseconds
+ Viewports in RGSS1 will now only retain weak references to their children
+ Invalid Sprite bitmaps found during Graphics.update will be treated as null
+ Bitmap#mega? and Bitmap#animated? are properly rescued
2023-05-03 23:00:06 -04:00
Struma
d7bf67fada fix Input::Controller.repeatex
computers suck
2023-04-27 22:01:24 -04:00
Struma
54a3824557 Disallow being run from Downloads on macOS 2023-04-25 22:49:14 -04:00
Struma
ffec966ad7 fix whatever 5c69aeaeab (r105961101) is about 2023-04-25 22:48:24 -04:00
Struma
1cfbac0c41 clean up stuff + add multitrack setting to json 2023-04-23 20:38:35 -04:00
Struma
2490b8b76b more multitrack BGM edits 2023-04-23 20:38:35 -04:00
Struma
5d39805aeb bgm_play, bgm_stop and bgm_fade should default to stopping/fading all channels when no channel is specified 2023-04-22 10:22:26 -04:00
Struma
6e9e8a4075 allow multiple channels of BGM, and add functions to adjust playing BGM volume 2023-04-22 10:22:26 -04:00
Struma
e91c470ea0 make config code slightly more readable 2023-04-12 22:28:03 -04:00
Struma
a8e6338598 Convert solidFonts config option to be an array of fonts 2023-04-12 21:03:32 -04:00
Splendide Imaginarius
963bd856cf
Update JIT for Ruby v3.1.0+ (#7)
* Fix MJIT options for Ruby v3.1.0+

* Support YJIT
2023-03-03 08:56:23 -05:00
Eblo
5c69aeaeab Convert movie playback to use OpenAL instead of SDL for audio
Use OpenAL instead of SDL for processing movie playback audio
Make sure video and audio are in sync based on playback position
General code cleanup of movie playback
2023-02-15 07:52:33 -05:00
Splendide Imaginarius
23451fb6c0 Add "displayFPS" config option 2022-12-12 05:11:31 +00:00
Zorua
6007c45c8a Add Graphics.display_width & Graphics.display_height 2022-09-24 03:09:53 -04:00
Snowdream
58de823d41 Move rqWindowAdjust.set() to EventThread 2022-07-24 03:50:06 -04:00
Snowdream
1424a19189 oopsie-poopsie I did a #$*&ky-wucky
Also, in other news, apparently SDL runs fast enough that it outpaced
the rest of the program and caused infinite loops if you called two
window-related functions too fast (like Graphics.scale + Graphics.center)
2022-07-24 03:05:04 -04:00
Snowdream
843e54de2e deal with a couple warnings, make sure xcode project still builds 2022-07-22 13:12:29 -04:00
Snowdream
69da851d04 Graduate macOS Metal setting to a config option again 2022-07-20 21:18:58 -04:00
Snowdream
4e6e291624 Revert adding Bitmap#v_flip/h_flip 2022-07-20 02:56:04 -04:00
Snowdream
689911510a Revert using libnyquist 2022-07-19 06:05:05 -04:00
Snowdream
88ba39197d Load SEs with libnyquist
Apparently, the newer SDL_Sound releases decode a little
slower than the previous ones. It can cause some noticeable lag
when loading SEs. nyquist still uses the same decoders that SDL_Sound
used to use though, so maybe it helps?
2022-07-18 22:42:54 -04:00
Snowdream
0135bda50a Use OpenGL by default on Intel macs
Apparently ANGLE can fail to compile shaders on Intel macs if Metal is chosen.
2022-07-18 22:40:31 -04:00
Snowdream
dba559aafb Make Graphics thread-safety optional 2022-07-16 20:16:09 -04:00
Snowdream
b0e08f60bb Should actually check for integerScalingActive before rebuilding the buffer 2022-07-12 00:54:32 -04:00
Snowdream
2a7ac88668 Always rebuild int scale buffer on resize_screen 2022-07-12 00:41:55 -04:00
Snowdream
e5e5a3a5e0 update stored window values before resizing it 2022-07-09 05:20:41 -04:00
Struma
f07e32e07b don't crash when no conf is present 2022-07-05 21:38:12 -04:00
Struma
7ecad29d77 Remove boost::unordered dependency (it broke) 2022-07-05 20:53:47 -04:00
Struma
77fce74b93 Fix meson build 2022-07-05 18:16:43 -04:00
Struma
d4dc31af9e Add Graphics.resize_window 2022-07-05 08:42:26 -04:00
Struma
63442ee5d9 Correctly report Graphics.scale after HiDPI changes 2022-07-05 07:38:44 -04:00
Struma
0131abd4dd Add ability to change configuration from Ruby
- `System.config` has become `CONFIG.to_hash`
- `CONFIG[]` can be used to look up settings
- `CONFIG[]=` can be used to add/change settings
- When reading settings, user settings are preferred over defaults
- Changes are immediately stored in the user settings file
2022-07-05 03:16:44 -04:00
Struma
45f870b86c Fix integer scaling bugs
- Black screen when resizing below 1x
- int scaling causing incorrectly scaled image after resize
- display offset being completely off without lastmile on macOS
2022-07-05 00:02:24 -04:00
Struma
36cdbb95b6 Allow overriding mkxp.json from uder data directory 2022-07-04 20:02:04 -04:00
Struma
d568423774 Allow disabling the F1 menu through mkxp.json 2022-07-04 13:06:35 -04:00
Struma
4b46d6e47d remove commonDataPath and update mkxp.json to match the actual behavior 2022-07-04 11:18:22 -04:00
Struma
183cea7046 Fix reported mouse coordinates when scaled for HiDPI 2022-07-04 09:40:57 -04:00
Struma
5100ae57e8 Add Bitmap.h_flip and v_flip 2022-07-04 07:35:38 -04:00
Struma
158c988399 Make macOS happy. 2022-07-04 06:22:07 -04:00
Struma
f839001be9 Finish moving to GameController API, other stuff
Namely:
- moved raw input states from System to Input
- Input.raw_key_states returns Array<Boolean> now
- the Joystick hash has become an entire module
- added manual input handling for controller buttons
- Raw controller states for both buttons and axes can be polled
- mouse and raw keys are now captured between Input updates
2022-07-04 04:53:52 -04:00
Struma
5f4b644bd0 switch to a (mostly) functioning GameController API 2022-07-03 21:36:48 -04:00
Struma
342f30069f Add Mouse4, Mouse5 and scroll wheel bindings 2022-07-03 11:53:40 -04:00
Struma
2a7ff4b7f3 Bind new graphics functions ruby-side 2022-07-03 10:01:07 -04:00
Struma
ee74bffc83 Add integer scaling options 2022-07-03 06:59:46 -04:00
Struma
3fd3e757dd Try to force dedicated AMD graphics too, just in case 2022-07-03 03:37:21 -04:00
Struma
a0da0df6ef SharedFontState: Add 'defaultFontFamily' property
5e3907c7f8
2022-07-03 03:23:28 -04:00
Struma
4ef68693f6 Use software blitting on Windows by default 2022-04-02 20:25:15 -04:00