From 5ed6213d0e777381a98095b8be97be3d0c2c2653 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 26 Jun 2024 16:29:00 -0600 Subject: [PATCH] update hollywoo & support prop-connected lighting --- haxe_libraries/hollywoo.hxml | 6 +++--- src/hollywoo_flixel/FlxDirector.kiss | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/haxe_libraries/hollywoo.hxml b/haxe_libraries/hollywoo.hxml index 964a0ae..0bacff6 100644 --- a/haxe_libraries/hollywoo.hxml +++ b/haxe_libraries/hollywoo.hxml @@ -1,6 +1,6 @@ -# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#43478ac60ad2cd5995157ebbf2b70ba60953a535" into hollywoo/0.0.0/github/43478ac60ad2cd5995157ebbf2b70ba60953a535 -# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/43478ac60ad2cd5995157ebbf2b70ba60953a535" +# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#5803f02d34ff0d65343b85c3b2e317ff334f0182" into hollywoo/0.0.0/github/5803f02d34ff0d65343b85c3b2e317ff334f0182 +# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/5803f02d34ff0d65343b85c3b2e317ff334f0182" -lib kiss -lib kiss-tools --cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/43478ac60ad2cd5995157ebbf2b70ba60953a535/src/ +-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/5803f02d34ff0d65343b85c3b2e317ff334f0182/src/ -D hollywoo=0.0.0 \ No newline at end of file diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index 4c01afb..12efb5e 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -1110,4 +1110,7 @@ (FlxG.state.remove inputIcon true)) (method :Void prepareForRecording [] - (set FlxG.mouse.visible false)) \ No newline at end of file + (set FlxG.mouse.visible false)) + +(method :FlxLightSource offsetLightSource [:FlxLightSource source :StagePosition offset] + (new FlxLightSource (for point source.points (new FlxPoint (+ point.x offset.x) (+ point.y offset.y))) source.color)) \ No newline at end of file