Commit graph

272 commits

Author SHA1 Message Date
Zorua
6007c45c8a Add Graphics.display_width & Graphics.display_height 2022-09-24 03:09:53 -04:00
Snowdream
843e54de2e deal with a couple warnings, make sure xcode project still builds 2022-07-22 13:12:29 -04:00
Snowdream
4e6e291624 Revert adding Bitmap#v_flip/h_flip 2022-07-20 02:56:04 -04:00
Snowdream
be88ebef2b Don't try to load zlib by default anymore
This really only works in 3.0+ it seems.
2022-07-16 20:16:18 -04:00
Snowdream
dba559aafb Make Graphics thread-safety optional 2022-07-16 20:16:09 -04:00
Snowdream
a2f9eb08ad Actually bind Input::Controller.pressex? 2022-07-09 23:46:47 -04:00
Snowdream
bd075d62fe Older versions of Ruby 2 don't have rb_utf8_str_* 2022-07-09 19:29:08 -04:00
Struma
8484945539 raw_key_states shouldn't return button states 2022-07-09 04:27:21 -04:00
Struma
d4dc31af9e Add Graphics.resize_window 2022-07-05 08:42:26 -04:00
Struma
0f8a140dec Correct bad GVL ifdefs 2022-07-05 04:21:03 -04:00
Struma
8f018fdb30 Change CONFIG to CFG
last minute thought I had, in order to try and avoid
conflicts with any other global constants that happen
to be called "CONFIG". Also looks nice next to "ENV".
2022-07-05 03:25:13 -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
5100ae57e8 Add Bitmap.h_flip and v_flip 2022-07-04 07:35:38 -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
a0da0df6ef SharedFontState: Add 'defaultFontFamily' property
5e3907c7f8
2022-07-03 03:23:28 -04:00
Struma
64dad2ad27 Good enough to release (?) 2022-01-23 18:29:08 -05:00
Struma
56ef0ed900 allow enabling/disabling certain options through env 2022-01-23 08:21:59 -05:00
Struma
683b5af87e Prevent crashes when closing the window during video playback 2022-01-23 04:03:50 -05:00
Struma
84f95966ea Clean up videos some more, make them skippable
Also, revert a change I made to the button names internally
a long time ago, when the intent behind mkxp-z was possibly going to be
different.
2022-01-23 01:46:13 -05:00
Struma
45c5553619 clean up merge a bit 2022-01-21 00:38:13 -05:00
Eblo
e874f554b3 Catch exceptions for movie playback 2022-01-20 22:03:47 -05:00
Eblo
b4d468f29d Sync audio for movies and add optional volume control 2022-01-20 22:03:47 -05:00
Struma
950e62dff1 make reloads after using System.un/mount optional
Also, use rb_bool_arg more often.
2022-01-20 19:50:46 -05:00
Struma
558942d8e7 Merge branch 'dev' into 'fix-windows-console'
# Conflicts:
#   src/config.cpp
2022-01-17 04:18:57 +00:00
Joni Savolainen
6d9c144b65 Open Windows standard file descriptors before initializing Ruby 2022-01-16 14:34:55 +02:00
Joni Savolainen
e2ba8d4398 Revert "Allow queuing Debug prints"
This reverts commit ac778db752.
2022-01-16 13:21:40 +02:00
Struma
c2ebb1d234 fix System::VERSION returning macro name
Yes, I'm an idiot for not noticing, but it's fixed now.
2022-01-15 17:21:26 -05:00
Joni Savolainen
ac778db752 Allow queuing Debug prints 2022-01-15 11:05:45 +02:00
Joni Savolainen
c2deb233e0 Set up Windows console during MRI init 2022-01-15 08:55:22 +02:00
Struma
3124395cf8 Give Graphics.screenshot the correct pointer (fixes #51) 2021-12-20 17:38:17 -05:00
Struma
725d593db3 add Sprite.pattern_blend_type 2021-11-29 21:58:18 -05:00
Struma
3dc2128b25 Swapping pattern fit modes + color inversion 2021-11-29 18:57:43 -05:00
Struma
6722a1e61a Add settable bitmap patterns on Sprites 2021-11-29 06:58:41 -05:00
Struma
59d326ef4a Remove basically pointless build options 2021-10-14 05:28:32 -04:00
Struma
e9fdf46d49 Include Ruby standard library by default on macOS 2021-08-28 04:53:04 -04:00
Struma
8b0bb010ba Make load_data properly work in threads 2021-08-27 05:08:34 -04:00
Struma
d8c4351b60 rename String.guess to String.to_utf8 2021-08-12 00:35:19 -04:00
Struma
1e054ade0e Add String.guess, String.guess! 2021-08-11 01:56:03 -04:00
Struma
20878a4d70 Freeze System::CONFIG 2021-06-25 22:07:18 -04:00
Struma
9920de87f8 Make json config accessible from System::CONFIG 2021-06-22 18:32:39 -04:00
Struma
6c08073610 Set Ruby's ARGV based on the command line 2021-06-22 09:38:23 -04:00
Struma
3626ac072f Make the window title a gettable property 2021-06-11 14:26:14 -04:00
Struma
ee010c6d52 Fix brainfart in load_data 2021-06-10 10:48:36 -04:00
Struma
95e17244fd Remove Windows API emulation 2021-06-08 19:02:15 -04:00
Struma
af1924abd9 Suppress Documentation errors for Xcode
There are 14,000 of them and I just don't care.
2021-06-08 03:22:46 -04:00
Struma
63b40053ac Prevent relevant functions from stepping over Graphics.update when threading 2021-06-04 14:29:45 -04:00
Struma
f9c8e0e900 Run HTTP functions without GVL 2021-06-04 09:14:06 -04:00