-![Protocol](http://i.imgur.com/NN0c4ex.png)
+prettylight is a powerful lighting engine for use with GameMaker: Studio. It makes use of surfaces and shaders to give you a simple to use yet optimal solution to your problems in need of lighting up!
-![Ahriman's Treasure](http://i.imgur.com/YEpCTx5.png)
+## Screenshots
-![Skolgbor](http://i.imgur.com/QEYSaAh.png)
+![](http://i.imgur.com/8lQR4pk.png)
+![](http://i.imgur.com/820eNjo.png)
## Credits
-prettylight is a simplistic and powerful lighting engine for use with GameMaker: Studio. It features code by FatalSleep and xygthop3, who are amazing coders and I can't thank them enough for the resources they create.
-
-Please give credit to **Nik Sudan, FatalSleep and xygthop3** if you decide to use it in your projects!
-
-## Prerequisites
-
-prettylight requires a few things in your project in order for it to function.
-
-- A view
-- A light sprite called ```sprLight```
-- A light controller object
-- At least one light object
-
-prettylight comes with a prebuilt light controller and parent object, but you can implement their functionality into other objects.
-
-## Setting Up
-
-The lights are controlled with the light controller object. This should have a pretty low depth so it runs before other objects. The controller object needs to run 4 functions:
-
-- ``` lights_init( shaders? , view_id ) ``` - this sets up the lighting system, call this in a **creation or trigger event**
-- ``` lights_step() ``` - this processes the lighting system, call this in a **step event**
-- ``` lights_draw() ``` - this controls the drawing for the lighting system, call this in the **draw gui event**
-- ``` lights_finish() ``` - this ends the lighting system, call this in the **room/game end event**
-
-For the function ``` lights_init() ```, "shaders?" defines whether or not to apply shaders to the lighting system and "view_id" is the id 0-15 of whichever view you wish to enable lighting on.
-
-## Drawing Lights
-
-In order to draw lights you need to register light objects. You can do this with the function ``` lights_add( obj1, obj2, obj3, ... ) ```. Typical usage would be registering a light parent object using this.
-
-Call the ``` light_set() ``` script to set up your light object. Just make sure that all the properties are set, otherwise an error will be thrown. There are 5 additional functions you can use to customise certain features:
-
-- ``` light_set_alpha( value ) ``` - sets the light's alpha
-- ``` light_set_color( colour ) ``` - sets the light's colour
-- ``` light_set_scale( xscale, yscale ) ``` - sets the light's scale
-- ``` light_set_spite( sprite, index ) ``` - sets the light's sprite
-- ``` light_set_offset( xoffset, yoffset ) ``` - sets the light's x,y offset
+Lots of lighting help by **FatalSleep**, gaussian blur shaders written by **xygthop3**.
-#### Ambient Lighting
+## Usage
-In the light controller you can specify ambient lighting. This will get displayed in areas that aren't lit up. To modify this, use the function ``` lights_set_ambience( colour, alpha ) ```. I've specified one I normally use in the controller that's included - it produces a nice brooding blue overlay.
+### Setting Up
-## Light Sprites
+prettylight doesn't need much to work. It needs the appropriate scripts and shaders to run properly, that's all.
-In prettylight, lights rely on sprites. A basic radial one is included, but you can introduce more interesting patterns with ease. Lights need to be in a certain way for it to function properly:
+First things first, you'll want to initialise the system within your control object. Simply call `pl_init()` in your **create event** to set up the engine, and preferably add all light object parents within the `pl_add()` method. For example, all your light sources would be children of an object called `objLight` - you'd then add that parent object to the light objects list in order for it to work. This is so the engine knows which objects it should mess with when lighting things up!
-- Lights should only use white
-- A white area indicates a fully lit section
-- A transparent area indicates a non-lit section
+You'll need to process the engine in a **step event** of your choosing (**begin step** is preferred) using `pl_update()`, draw the lights in the **draw event** with `pl_draw()`, and end the system in the **room end**/**game end** event using `pl_end()`.
-The one sprite that's included with the package, ```sprLight```, is required for the package to work, so don't modify it!
+You'll also need a view to draw the lights. prettylight is currently set to process in the view with id 0 (the default one).
-## Extra Effects
+### Making Lights
-Two extra effects are enabled by default, but you can turn these off.
+In order for something to light up, make sure it or it's parent is added to the light object list using `pl_add(obj1, obj2, ...)` as stated above. Then simply call `pl_light_init(radius, colour, alpha)` in your create event. You may modify your light using the available methods, but please note you can't specify a radius larger than the one you initially put in.
-#### Vivid Lighting
+### Customisation
-This amplifies lights in general and really brings out the colour used. This isn't very intensive but with lots of lights it might slow down the game a little bit.
+You may toggle certain options using the provided scripts:
-- ``` lights_set_vivid( active? ) ``` - whether to enable vivid lighting
+- `pl_set_vivid(active?)` - toggles vivid lighting (uses additional surface)
+- `pl_set_blurring(active?)` - toggles blurring (uses shaders)
+- `pl_option_set_ambience(color, brightness)` - make changes to the ambience
+- `pl_option_set_blur(amount, alpha)` - make changes to the blur
-#### Ambient Blurring
+## What's Next?
-This makes use of xygthop3's gaussian blur shaders, and it makes everything look all bloomy and fuzzy and nice. This can be very intensive and might not work for older computers, so be sure to make it some sort of option if you decide to use it. If you turn off shaders in ``` lights_init() ``` blurring will not work. You can configure this with three functions:
+prettylight is currently maintained primarily by [Nik Sudan](http://github.com/niksudan), but I'm more than happy to approve merge requests that help the project develop even further! Future features that would be cool include:
-- ``` lights_set_blur( active? ) ``` - whether to enable ambient blurring
-- ``` lights_set_blur_alpha( alpha ) ``` - the alpha overlay (1 = fully blurred, 0 = no blur)
-- ``` lights_set_blur_amount( amount ) ``` - the blur amount (the bigger the number, the more intensive it is)
+- Shadow casters (pretty much coded, needs optimising though!)
+- Ambient blur (was in version 1, would be nice to have a comeback!)
+- Light styles (cartoony, pixelly, etc.)
diff --git a/prettylight.gmx/Configs/Default.config.gmx b/prettylight.gmx/Configs/Default.config.gmx
index 9fa3654..2ab04ff 100644
--- a/prettylight.gmx/Configs/Default.config.gmx
+++ b/prettylight.gmx/Configs/Default.config.gmx
@@ -64,6 +64,7 @@
1nil
+ falsefalsefalsetrue
@@ -89,6 +90,7 @@
Supersonic Adstruefalse
+ Created with GameMaker:Studiofalsefalse
@@ -101,6 +103,7 @@
true-1
+ truefalseindex.html-1
diff --git a/prettylight.gmx/Configs/Default/WinPhone/ApplicationIcon.png b/prettylight.gmx/Configs/Default/WinPhone/ApplicationIcon.png
new file mode 100644
index 0000000..6a8b619
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/ApplicationIcon.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleSmall.png b/prettylight.gmx/Configs/Default/WinPhone/CycleSmall.png
new file mode 100644
index 0000000..0c1ec77
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleSmall.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleWide1.png b/prettylight.gmx/Configs/Default/WinPhone/CycleWide1.png
new file mode 100644
index 0000000..3712d16
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleWide1.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleWide2.png b/prettylight.gmx/Configs/Default/WinPhone/CycleWide2.png
new file mode 100644
index 0000000..35b28ed
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleWide2.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleWide3.png b/prettylight.gmx/Configs/Default/WinPhone/CycleWide3.png
new file mode 100644
index 0000000..44e6be9
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleWide3.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleWide4.png b/prettylight.gmx/Configs/Default/WinPhone/CycleWide4.png
new file mode 100644
index 0000000..47d951a
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleWide4.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleWide5.png b/prettylight.gmx/Configs/Default/WinPhone/CycleWide5.png
new file mode 100644
index 0000000..639c830
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleWide5.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleWide6.png b/prettylight.gmx/Configs/Default/WinPhone/CycleWide6.png
new file mode 100644
index 0000000..ea135f7
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleWide6.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleWide7.png b/prettylight.gmx/Configs/Default/WinPhone/CycleWide7.png
new file mode 100644
index 0000000..a629727
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleWide7.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleWide8.png b/prettylight.gmx/Configs/Default/WinPhone/CycleWide8.png
new file mode 100644
index 0000000..9886ebc
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleWide8.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/CycleWide9.png b/prettylight.gmx/Configs/Default/WinPhone/CycleWide9.png
new file mode 100644
index 0000000..a35a404
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/CycleWide9.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/FlipMedBack.png b/prettylight.gmx/Configs/Default/WinPhone/FlipMedBack.png
new file mode 100644
index 0000000..8d70d4c
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/FlipMedBack.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/FlipMedFront.png b/prettylight.gmx/Configs/Default/WinPhone/FlipMedFront.png
new file mode 100644
index 0000000..e047b99
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/FlipMedFront.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/FlipSmallBack.png b/prettylight.gmx/Configs/Default/WinPhone/FlipSmallBack.png
new file mode 100644
index 0000000..49bea0c
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/FlipSmallBack.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/FlipSmallFront.png b/prettylight.gmx/Configs/Default/WinPhone/FlipSmallFront.png
new file mode 100644
index 0000000..c6592f0
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/FlipSmallFront.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/FlipWideBack.png b/prettylight.gmx/Configs/Default/WinPhone/FlipWideBack.png
new file mode 100644
index 0000000..3cf7cfd
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/FlipWideBack.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/FlipWideFront.png b/prettylight.gmx/Configs/Default/WinPhone/FlipWideFront.png
new file mode 100644
index 0000000..796576d
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/FlipWideFront.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/IconicSmall.png b/prettylight.gmx/Configs/Default/WinPhone/IconicSmall.png
new file mode 100644
index 0000000..c58c492
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/IconicSmall.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/IconicWide.png b/prettylight.gmx/Configs/Default/WinPhone/IconicWide.png
new file mode 100644
index 0000000..70a8e68
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/IconicWide.png differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/SplashScreenImage.jpg b/prettylight.gmx/Configs/Default/WinPhone/SplashScreenImage.jpg
new file mode 100644
index 0000000..b4df444
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/SplashScreenImage.jpg differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/SplashScreenImage480.jpg b/prettylight.gmx/Configs/Default/WinPhone/SplashScreenImage480.jpg
new file mode 100644
index 0000000..b0e0704
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/SplashScreenImage480.jpg differ
diff --git a/prettylight.gmx/Configs/Default/WinPhone/SplashScreenImage720.jpg b/prettylight.gmx/Configs/Default/WinPhone/SplashScreenImage720.jpg
new file mode 100644
index 0000000..04b7ae0
Binary files /dev/null and b/prettylight.gmx/Configs/Default/WinPhone/SplashScreenImage720.jpg differ
diff --git a/prettylight.gmx/Configs/Default/android/icons/icon_hdpi.png b/prettylight.gmx/Configs/Default/android/icons/icon_hdpi.png
new file mode 100644
index 0000000..ded177e
Binary files /dev/null and b/prettylight.gmx/Configs/Default/android/icons/icon_hdpi.png differ
diff --git a/prettylight.gmx/Configs/Default/android/icons/icon_ldpi.png b/prettylight.gmx/Configs/Default/android/icons/icon_ldpi.png
new file mode 100644
index 0000000..edf85a0
Binary files /dev/null and b/prettylight.gmx/Configs/Default/android/icons/icon_ldpi.png differ
diff --git a/prettylight.gmx/Configs/Default/android/icons/icon_mdpi.png b/prettylight.gmx/Configs/Default/android/icons/icon_mdpi.png
new file mode 100644
index 0000000..a6f63db
Binary files /dev/null and b/prettylight.gmx/Configs/Default/android/icons/icon_mdpi.png differ
diff --git a/prettylight.gmx/Configs/Default/android/icons/icon_xhdpi.png b/prettylight.gmx/Configs/Default/android/icons/icon_xhdpi.png
new file mode 100644
index 0000000..19049f5
Binary files /dev/null and b/prettylight.gmx/Configs/Default/android/icons/icon_xhdpi.png differ
diff --git a/prettylight.gmx/Configs/Default/android/icons/icon_xxhdpi.png b/prettylight.gmx/Configs/Default/android/icons/icon_xxhdpi.png
new file mode 100644
index 0000000..efc628d
Binary files /dev/null and b/prettylight.gmx/Configs/Default/android/icons/icon_xxhdpi.png differ
diff --git a/prettylight.gmx/Configs/Default/android/icons/icon_xxxhdpi.png b/prettylight.gmx/Configs/Default/android/icons/icon_xxxhdpi.png
new file mode 100644
index 0000000..72d7d3c
Binary files /dev/null and b/prettylight.gmx/Configs/Default/android/icons/icon_xxxhdpi.png differ
diff --git a/prettylight.gmx/Configs/Default/android/icons/ouyaIcon.png b/prettylight.gmx/Configs/Default/android/icons/ouyaIcon.png
new file mode 100644
index 0000000..6ef7d2d
Binary files /dev/null and b/prettylight.gmx/Configs/Default/android/icons/ouyaIcon.png differ
diff --git a/prettylight.gmx/Configs/Default/android/splash.png b/prettylight.gmx/Configs/Default/android/splash.png
new file mode 100644
index 0000000..75cc0f7
Binary files /dev/null and b/prettylight.gmx/Configs/Default/android/splash.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/iPadRetinaSplash.png b/prettylight.gmx/Configs/Default/ios/iPadRetinaSplash.png
new file mode 100644
index 0000000..7dad383
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/iPadRetinaSplash.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/iPadsplash.png b/prettylight.gmx/Configs/Default/ios/iPadsplash.png
new file mode 100644
index 0000000..3dbaca7
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/iPadsplash.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/iPhone5splash.png b/prettylight.gmx/Configs/Default/ios/iPhone5splash.png
new file mode 100644
index 0000000..7f605cc
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/iPhone5splash.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/iPhone6PlusSplash.png b/prettylight.gmx/Configs/Default/ios/iPhone6PlusSplash.png
new file mode 100644
index 0000000..0e997c6
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/iPhone6PlusSplash.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/iPhone6Splash.png b/prettylight.gmx/Configs/Default/ios/iPhone6Splash.png
new file mode 100644
index 0000000..34e3e79
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/iPhone6Splash.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/iPhoneRetinasplash.png b/prettylight.gmx/Configs/Default/ios/iPhoneRetinasplash.png
new file mode 100644
index 0000000..cc606c4
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/iPhoneRetinasplash.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/iPhonesplash.png b/prettylight.gmx/Configs/Default/ios/iPhonesplash.png
new file mode 100644
index 0000000..1425f78
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/iPhonesplash.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/icons/icon114.png b/prettylight.gmx/Configs/Default/ios/icons/icon114.png
new file mode 100644
index 0000000..8202e2c
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/icons/icon114.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/icons/icon120.png b/prettylight.gmx/Configs/Default/ios/icons/icon120.png
new file mode 100644
index 0000000..8748c68
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/icons/icon120.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/icons/icon144.png b/prettylight.gmx/Configs/Default/ios/icons/icon144.png
new file mode 100644
index 0000000..5a3f193
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/icons/icon144.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/icons/icon152.png b/prettylight.gmx/Configs/Default/ios/icons/icon152.png
new file mode 100644
index 0000000..7826ff5
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/icons/icon152.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/icons/icon57.png b/prettylight.gmx/Configs/Default/ios/icons/icon57.png
new file mode 100644
index 0000000..e1f43da
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/icons/icon57.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/icons/icon72.png b/prettylight.gmx/Configs/Default/ios/icons/icon72.png
new file mode 100644
index 0000000..7142a87
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/icons/icon72.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/icons/icon76.png b/prettylight.gmx/Configs/Default/ios/icons/icon76.png
new file mode 100644
index 0000000..8087c5b
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/icons/icon76.png differ
diff --git a/prettylight.gmx/Configs/Default/ios/splash.png b/prettylight.gmx/Configs/Default/ios/splash.png
new file mode 100644
index 0000000..0b9f026
Binary files /dev/null and b/prettylight.gmx/Configs/Default/ios/splash.png differ
diff --git a/prettylight.gmx/Configs/Default/linux/icon64.png b/prettylight.gmx/Configs/Default/linux/icon64.png
new file mode 100644
index 0000000..58d096e
Binary files /dev/null and b/prettylight.gmx/Configs/Default/linux/icon64.png differ
diff --git a/prettylight.gmx/Configs/Default/linux/splash.png b/prettylight.gmx/Configs/Default/linux/splash.png
new file mode 100644
index 0000000..f56c9f8
Binary files /dev/null and b/prettylight.gmx/Configs/Default/linux/splash.png differ
diff --git a/prettylight.gmx/Configs/Default/tizen/icon117.png b/prettylight.gmx/Configs/Default/tizen/icon117.png
new file mode 100644
index 0000000..e21137f
Binary files /dev/null and b/prettylight.gmx/Configs/Default/tizen/icon117.png differ
diff --git a/prettylight.gmx/Configs/Default/tizen/splash.png b/prettylight.gmx/Configs/Default/tizen/splash.png
new file mode 100644
index 0000000..de5af64
Binary files /dev/null and b/prettylight.gmx/Configs/Default/tizen/splash.png differ
diff --git a/prettylight.gmx/background/bgExample.background.gmx b/prettylight.gmx/background/bgExample.background.gmx
new file mode 100644
index 0000000..affe361
--- /dev/null
+++ b/prettylight.gmx/background/bgExample.background.gmx
@@ -0,0 +1,19 @@
+
+
+ 0
+ 16
+ 16
+ 0
+ 0
+ 0
+ 0
+ -1
+ -1
+
+ 0
+
+ 0
+ 64
+ 64
+ images\bgExample.png
+
diff --git a/prettylight.gmx/background/images/bgExample.png b/prettylight.gmx/background/images/bgExample.png
new file mode 100644
index 0000000..5eaa910
Binary files /dev/null and b/prettylight.gmx/background/images/bgExample.png differ
diff --git a/prettylight.gmx/objects/objLightControl.object.gmx b/prettylight.gmx/objects/control.object.gmx
similarity index 88%
rename from prettylight.gmx/objects/objLightControl.object.gmx
rename to prettylight.gmx/objects/control.object.gmx
index 574b82d..b386520 100644
--- a/prettylight.gmx/objects/objLightControl.object.gmx
+++ b/prettylight.gmx/objects/control.object.gmx
@@ -25,14 +25,10 @@
1
- /// Controller for lights
-lights_init( true , 0 );
+ /// Start prettylight
-// To make non-lit up areas blue (ooo)
-lights_set_ambience( make_color_hsv(200, 125, 50), 0.5 );
-
-// Register light objects
-lights_add( objLight );
+pl_init();
+pl_add(objLight);
@@ -55,8 +51,9 @@ lights_add( objLight );
1
- /// Process light system
-lights_step();
+ /// Process prettylight
+
+pl_update();
@@ -79,14 +76,15 @@ lights_step();
1
- /// End light system
-lights_finish();
+ /// End prettylight
+
+pl_end();
-
+ 1603
@@ -103,8 +101,9 @@ lights_finish();
1
- /// Draw lights
-lights_draw();
+ /// Draw prettylight
+
+pl_draw();
diff --git a/prettylight.gmx/objects/objExample.object.gmx b/prettylight.gmx/objects/objExample.object.gmx
new file mode 100644
index 0000000..de1eec2
--- /dev/null
+++ b/prettylight.gmx/objects/objExample.object.gmx
@@ -0,0 +1,62 @@
+
+
diff --git a/prettylight.gmx/objects/objLight.object.gmx b/prettylight.gmx/objects/objLight.object.gmx
index 1719325..37e7be5 100644
--- a/prettylight.gmx/objects/objLight.object.gmx
+++ b/prettylight.gmx/objects/objLight.object.gmx
@@ -25,19 +25,9 @@
1
- /// Light object
+ /// Example light object
-/**
- * This object represents an object that emits light
- * Assign this to any object as it's parent to register the object.
- *
- * You can then configure the light properties by either
- * - Configuring all possible options with light_set()
- * - Configuring commonly used options with various light_set functions
-*/
-
-// The default light settings
-light_set( sprLight, 0, 0, 0, 1, 1, 0, c_white, 1 );
+pl_light_init(90, make_color_rgb(252, 150, 55), 1);
diff --git a/prettylight.gmx/objects/objLightBig.object.gmx b/prettylight.gmx/objects/objLightBig.object.gmx
new file mode 100644
index 0000000..bd946bd
--- /dev/null
+++ b/prettylight.gmx/objects/objLightBig.object.gmx
@@ -0,0 +1,49 @@
+
+
diff --git a/prettylight.gmx/prettylight.project.gmx b/prettylight.gmx/prettylight.project.gmx
index ae39225..441bd1b 100644
--- a/prettylight.gmx/prettylight.project.gmx
+++ b/prettylight.gmx/prettylight.project.gmx
@@ -6,51 +6,54 @@
-
- sprites\sprLight
-
+ sprites\sprExample
-
+
+ background\bgExample
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
- shaders\shd_gaussian_horizontal.shader
- shaders\shd_gaussian_vertical.shader
+ shaders\pl_shd_gaussian_horizontal.shader
+ shaders\pl_shd_gaussian_vertical.shader
-
-
-
-
+
+
+
+
-
+
+ rooms\rmExample
+ help.rtf
diff --git a/prettylight.gmx/rooms/rmExample.room.gmx b/prettylight.gmx/rooms/rmExample.room.gmx
new file mode 100644
index 0000000..b3ff649
--- /dev/null
+++ b/prettylight.gmx/rooms/rmExample.room.gmx
@@ -0,0 +1,74 @@
+
+
+