Implement lights, thanks @Tarjei400

Now otclient have lights! This code was originally made
by @Tarjei400, I have improved it and merged into otclient
master. Many thanks for tarjei for the contribution.

Warning, this still experimental, fixes may come in the next days.
This commit is contained in:
Eduardo Bart
2012-11-28 23:47:26 -02:00
parent eb979ef7cd
commit 81068f820d
26 changed files with 283 additions and 38 deletions

View File

@@ -4,6 +4,7 @@ function UIGameMap.create()
local gameMap = UIGameMap.internalCreate()
gameMap:setKeepAspectRatio(true)
gameMap:setVisibleDimension({width = 15, height = 11})
gameMap:setDrawLights(true)
return gameMap
end