Löve "Light vs. Shadow" Engine [0.4.3]

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
PriorBlue
Prole
Posts: 43
Joined: Fri Feb 28, 2014 3:46 am
Location: Munich, Germany

Re: Löve "Light vs. Shadow" Engine [0.3.3]

Post by PriorBlue »

Ranguna259 wrote:Love all the new work, but can you make the refraction/reflection shader still ?
In it's current state it just lookes like water, to make it look like glass it needs to be fixed, can you do that ?
When you skip the "setTileOffset(x, y)" parameter and combine it with a color shadow, it looks like a glass panel. I think i will make more separated examples in the future, because the actual demo is brimful. :D
User avatar
silver_hawk
Prole
Posts: 36
Joined: Mon Feb 27, 2012 2:19 pm

Re: Löve "Light vs. Shadow" Engine [0.3.3]

Post by silver_hawk »

Nice, been following this engine for some time now, really LÖVE the previews you have added, they neatly show the powerful and awesome features of your engine, keep it up!

I will try adding your engine soon in my game editor, will post screens if I get it to run properly!
Have a nice day sir!
User avatar
PriorBlue
Prole
Posts: 43
Joined: Fri Feb 28, 2014 3:46 am
Location: Munich, Germany

Re: Löve "Light vs. Shadow" Engine [0.4.0]

Post by PriorBlue »

All shadow bodys (circle, rect, image etc...) are now combined to one object, so you can use all options like glow, alpha, color on all types. The initializations stay the same. Body types and shadow types are now separated, so you can now create an image body and set the shadow type to circle for example.

I also added image shadows over transformation. You can change the color and alpha of the shadow, too.

Image shadows:
Image

Code:

Code: Select all

function love.load()
	-- create a shadow body (default shadow: rectangle)
	shadowBody = lightWorld.newImage(img, x, y, width, height, offsetX, offsetY)
	-- change the shadow type to circle
	shadowBody.setShadowType("circle", range, offsetX, offsetY)
	-- change the shadow type to image
	shadowBody.setShadowType("image", pivotX, pivotY, fadeStrength)
end
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: Löve "Light vs. Shadow" Engine [0.4.0]

Post by Jeeper »

PriorBlue wrote:All shadow bodys (circle, rect, image etc...) are now combined to one object, so you can use all options like glow, alpha, color on all types. The initializations stay the same. Body types and shadow types are now separated, so you can now create an image body and set the shadow type to circle for example.

I also added image shadows over transformation. You can change the color and alpha of the shadow, too.

Image shadows:
Image

Code:

Code: Select all

function love.load()
	-- create a shadow body (default shadow: rectangle)
	shadowBody = lightWorld.newImage(img, x, y, width, height, offsetX, offsetY)
	-- change the shadow type to circle
	shadowBody.setShadowType("circle", range, offsetX, offsetY)
	-- change the shadow type to image
	shadowBody.setShadowType("image", pivotX, pivotY, fadeStrength)
end
Every time you update I keep thinking to myself "WOW, this is sooo cool, now it cant get any better" And then you just keep coming out with these updates that just blow my mind. Really well done!
User avatar
PriorBlue
Prole
Posts: 43
Joined: Fri Feb 28, 2014 3:46 am
Location: Munich, Germany

Re: Löve "Light vs. Shadow" Engine [0.4.1]

Post by PriorBlue »

Ok, i added a material system for objects with higher detail. Just make a color sphere and combine it with your normal map. There are a few examples in the demo (press: "3"). You can use transparency, too.

Functionality:
Image

Preview
Image

Code

Code: Select all

shadowBody.setMaterial(imgSphere)
User avatar
OttoRobba
Party member
Posts: 104
Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil

Re: Löve "Light vs. Shadow" Engine [0.4.1]

Post by OttoRobba »

Wow. The progress you are making on this is incredible. This allows for some really great design.

Only thing I can possibly think to "improve" of would be porting this to android and iOS later.

Keep up the awesome work!
styves
Prole
Posts: 5
Joined: Mon Jan 13, 2014 5:45 pm

Re: Löve "Light vs. Shadow" Engine [0.4.1]

Post by styves »

It's definitely shaping up! 'm loving the refraction and such, really nice touch.

I'm definitely interested in seeing the shader/gpu side of things here. :B
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Löve "Light vs. Shadow" Engine [0.4.1]

Post by Ranguna259 »

Jesus man.. I never thought that this would go this far, the progress is just incredible !
You actualy simulate some form of 3D in a 2D framework and you managed to apply a whole bunch of textures to it, just awesome :crazy:
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
PriorBlue
Prole
Posts: 43
Joined: Fri Feb 28, 2014 3:46 am
Location: Munich, Germany

Re: Löve "Light vs. Shadow" Engine [0.4.2]

Post by PriorBlue »

I just added a few postshader effects, have fun! (Press F10 to toggle the shader)

Preview: 4-Color(Gameboy) / BW-Noise / Scan lines(TV) / Tilt–shift(Miniature scene)
Image
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Löve "Light vs. Shadow" Engine [0.4.2]

Post by T-Bone »

Holy crap, this is amazing. If only I had more time to make games...
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests