mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
fix
This commit is contained in:
parent
f40ccd8e4e
commit
e9cb98889b
2
main.lua
2
main.lua
@ -497,7 +497,7 @@ function love.keypressed(k, u)
|
|||||||
phyCnt = phyCnt + 1
|
phyCnt = phyCnt + 1
|
||||||
phyLight[phyCnt] = lightWorld.newImage(cone, mx, my, 24, 12, 12, 16)
|
phyLight[phyCnt] = lightWorld.newImage(cone, mx, my, 24, 12, 12, 16)
|
||||||
phyLight[phyCnt].setNormalMap(cone_normal)
|
phyLight[phyCnt].setNormalMap(cone_normal)
|
||||||
--phyLight[phyCnt].setShadowType("circle", 12, 0, -8)
|
phyLight[phyCnt].setShadowType("circle", 12, 0, -8)
|
||||||
phyBody[phyCnt] = love.physics.newBody(physicWorld, mx, my, "dynamic")
|
phyBody[phyCnt] = love.physics.newBody(physicWorld, mx, my, "dynamic")
|
||||||
phyShape[phyCnt] = love.physics.newRectangleShape(0, 0, 24, 32)
|
phyShape[phyCnt] = love.physics.newRectangleShape(0, 0, 24, 32)
|
||||||
phyFixture[phyCnt] = love.physics.newFixture(phyBody[phyCnt], phyShape[phyCnt])
|
phyFixture[phyCnt] = love.physics.newFixture(phyBody[phyCnt], phyShape[phyCnt])
|
||||||
|
Loading…
Reference in New Issue
Block a user