Skip to content
Matías Hermosilla edited this page Aug 4, 2017 · 32 revisions

Introduction

Shädows is my dynamic shadows & lights library for löve, it uses the MIT license so you can use it for almost any project.

Screenshots

Features

  • Using canvases to optimize the drawing process
  • Radial blur & some extra shaders
  • Top view 3D shadows (the casted shadow is generated according to the altitude of the light and the body)
  • Polygon & Circle shapes
  • Stars (lights unable to cover rooms)
  • Rooms (dark sectors which stars cannot cover)
  • Normal maps
  • Height maps

Installation

Just drag the "shadows" folder inside your project folder (notice that the root of this repository is the shadows folder).

Usage Example

local Shadows = require("shadows")
local LightWorld = require("shadows.LightWorld")
local newLightWorld = LightWorld:new()

function love.draw()
	newLightWorld:Draw()
end

function love.update()
	newLightWorld:Update()
end

Classes

  1. LightWorld
  2. Body
  3. Light
  4. Room
  5. Shadow
  6. NormalShadow
  7. HeightShadow
  8. ImageShadow
  9. Transform
  10. BodyTransform

Demonstrations

  1. The DEMO.love file
  2. Standard
Clone this wiki locally