6261 Commits

Author SHA1 Message Date
UnknownShadow200
bd94a9a893 Stop changing working directory on linux/bsd/Haiku/Solaris 2022-07-15 08:53:30 +10:00
UnknownShadow200
f1e1a87d3d Use better method of disabling freetype engine than just checking if __EMSCRIPTEN__ is defined 2022-07-14 22:03:53 +10:00
UnknownShadow200
23cf906203 Change InputEvents.Press to use a unicode character 2022-07-14 19:16:39 +10:00
Goodlyay
3d6a26bc04 Merge branch 'master' into ModernLighting 2022-07-13 17:34:41 -07:00
UnknownShadow200
d90fb2f092 Fix game force exiting if you attempt to add a chat message with over 511 characters (Thanks sethbatman05) 2022-07-11 07:25:12 +10:00
UnknownShadow200
cf4104bd96 Fix options not loading on web/macOS/mobile clients
Oversight from f75050b0c7c743ed60403a8fafbef323df31977a
2022-07-08 20:15:32 +10:00
UnknownShadow200
202947e4a7 fix ios info.plist not working with command line build 2022-07-08 07:51:02 +10:00
UnknownShadow200
dfb5679287 Minorly optimise lighting 2022-07-07 21:30:05 +10:00
UnknownShadow200
c6c0f525c6 Fix memory leak and get rid of redundant Lighting.Color_YMax_Fast function 2022-07-07 21:02:49 +10:00
UnknownShadow200
671f1a36cc style cleanup 2022-07-07 20:36:42 +10:00
UnknownShadow200
f75050b0c7 Windows: Add option for display scaling support 2022-07-07 07:45:37 +10:00
Goodlyay
7226d49c55 Make default block light color brighter and less saturated 2022-07-06 08:07:53 -07:00
Goodlyay
25bd61db18 Make smooth modern lighting respect Blocks.LightOffset 2022-07-06 06:48:30 -07:00
Goodlyay
b2d00b0c2d Implement smooth lighting for modern lighting
Also tweak default sun ramp colors
2022-07-06 06:18:39 -07:00
UnknownShadow200
f6ce731246 Make block lighting a little bit faster 2022-07-05 08:39:39 +10:00
UnknownShadow200
e8f2001054 Save/Load rest of env fields to/from .cw maps (Thanks Neonium) 2022-07-05 07:51:03 +10:00
Goodlyay
f7dbfbadcc Merge branch 'master' into ModernLighting 2022-07-04 03:48:19 -07:00
UnknownShadow200
2a39809116 Fix mass VRAM leak from last commit 2022-07-04 19:53:30 +10:00
Goodlyay
c3593afd54 Make sun light faster*, again
*based on extremely scientific tests of flying around a map and observing double/triple fps while loading chunks
TODO: somehow reign in the unacceptable code duplication
2022-07-03 07:21:14 -07:00
Goodlyay
ec74342e45 Soften default transition from sun to shadow 2022-07-03 05:22:30 -07:00
Goodlyay
9ed7eec4fb Make sunlight significantly faster 2022-07-03 04:51:48 -07:00
Goodlyay
6e868ed312 Remove unused functions 2022-07-03 03:23:20 -07:00
Goodlyay
872ba78513 Horrifically slow sunlight 2022-07-03 03:21:06 -07:00
Goodlyay
3a2613fa56 Make light occlusion take block shape and other properties into account 2022-07-02 22:22:57 -07:00
Goodlyay
e4b259aaad Use World for chunk count and axes [...]
Add new LightOffset flag to denote upper-slab type block, for classic lighting
Make FACE_Y in LightOffset behave like the other axes
Make classic lighting more accurate
2022-07-02 00:23:39 -07:00
Goodlyay
5b942bf763 Merge branch 'master' into ModernLighting 2022-07-02 00:11:26 -07:00
UnknownShadow200
db97e790c3 Move chunks dimensions code from MapRenderer to World 2022-07-02 16:59:01 +10:00
Goodlyay
965f278d3a Less broken test (Thanks UnknownShadow200) 2022-07-01 22:47:42 -07:00
Goodlyay
967aded9aa Extremely broken lighting calculation test 2022-07-01 00:03:42 -07:00
Goodlyay
f18c28ec93 Merge branch 'master' into ModernLighting 2022-06-30 21:00:57 -07:00
UnknownShadow200
033560a773 Launcher input widget border now bases itself on current theme button highlight color, fies #956 (Thanks TheAwesome98) 2022-07-01 12:06:33 +10:00
UnknownShadow200
8ac52ed497 WIP on making input widget used theme colors instead of hardcoded purple colors, addresses #956 (Thanks TheAwesome98)
Also add new BitmapColor_RGB macro which implicitly sets A to 255, partially addresses #955
2022-07-01 08:55:08 +10:00
UnknownShadow200
57504bf22e Windows: Fix when running in VirtualBox with mouse integration, the game did not respond to cursor movement at all (Thanks LeoKids) 2022-06-30 23:42:24 +10:00
UnknownShadow200
c5298b508c iOS: Fix screen showing partial garbage when rotating device when rendering game, make home swipe bar more difficult to trigger (Thanks Pear) 2022-06-30 21:47:07 +10:00
UnknownShadow200
f2978e2368 iOS: Fix can't see input widget text in dark mode, implement proper fullscreen support, improve view background switching color to use launcher theme background instead of just blue (Thanks Pear) 2022-06-30 20:51:40 +10:00
UnknownShadow200
7d793da679 iOS: WIP on app display name and icon 2022-06-30 18:37:53 +10:00
UnknownShadow200
17740f8664 Fix window showing garbage when resizing on 64 bit macOS (Thanks popdymc, fixes #957). Also change .vcxproj so that you show no longer need to change SDK version/platform toolset when compiling on a platform that isn't Windows 7 + VS 2015
The issue happened because
a) when resizing the window, cocoa runs in the blocking resizing window event loop (i.e. effectively pauses/suspends the launcher's event loop)
b) due to recent changes to the launcher content drawing until absolutely necessary, the contents would only get redrawn when LBackend_Tick was called

However because of a), this meant that although resize events were delivered to the game which hence reallocated the framebuffer, the framebuffer did not actually get drawn to because LBackend_Tick never got called - hence why garbage appeared on screen
2022-06-30 17:14:45 +10:00
Goodlyay
d819dc9d73 Fix graphics menu misaligned descs index 2022-06-28 02:14:00 -07:00
Goodlyay
f03b538abb Rudimentary lighting palette and memory test 2022-06-27 04:48:08 -07:00
UnknownShadow200
d3d31a874c iOS: Add xcode project and WIP CoreText text rendering backend 2022-06-24 08:12:55 +10:00
UnknownShadow200
57a8699152 OpenBSD: Fix being unable to start due to unable being able to find a supported font (Thanks zielony12, addresses #954) 2022-06-21 21:17:22 +10:00
UnknownShadow200
c3b10668ff NetBSD: Fix libcurl and libopenal not being found, addresses #953 2022-06-21 20:11:45 +10:00
UnknownShadow200
9d7acd034d
Merge pull request #952 from UnknownShadow200/Context2D
Refactor 2D drawing to take Context2D instead of just plain Bitmap
2022-06-20 20:31:33 +10:00
UnknownShadow200
1ae86627b8 Refactor font code to move font_candidates into just CC_BUILD_FREETYPE backend 2022-06-20 19:23:29 +10:00
UnknownShadow200
e2ed4884ba Fix iOS compilation issues 2022-06-19 17:13:13 +10:00
UnknownShadow200
548924c854 Move must previous usages of Bitmap to newer Context2D 2022-06-19 13:39:26 +10:00
UnknownShadow200
e45fad71cd Start moving Drawer2D functions to Context2D which takes Context2D* instead of just Bitmap* 2022-06-18 11:10:40 +10:00
UnknownShadow200
af8106c97a whoops 2022-06-17 11:57:51 +10:00
UnknownShadow200
bc91ddaae4 Rename font related functions in Drawer2D.h 2022-06-17 11:47:49 +10:00
UnknownShadow200
fa1350b1f7 Fix last commit 2022-06-16 22:31:44 +10:00