Skip to content
Snippets Groups Projects
Commit 60c5b37b authored by dg's avatar dg
Browse files

swcintillate!

git-svn-id: http://svn.net-core.org/repos/t-engine4@2583 51575b47-30f0-44d4-a5cc-537603b46e54
parent b6e5cc45
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ end
--- Defines the "shown" factor of seen map
-- By default it is 1, 1, 1, 1
function _M:setShown(r, g, b, a)
self.color_shown= {r, g, b, a}
self.color_shown = {r, g, b, a}
-- If we are used on a real map, set it locally
if self._map then self._map:setShown(unpack(self.color_shown)) end
end
......
......@@ -63,4 +63,14 @@ return {
}, },
},
},
foreground = function(level, dx, dx, nb_keyframes)
local tick = core.game.getTime()
local sr, sg, sb
sr = (1 + math.sin(tick / 2000)) / 2 * 0.8 + 0.2
sg = (1 + math.sin(tick / 2700)) / 2 * 0.7 + 0.3
sb = (1 + math.sin(tick / 3200)) / 2 * 0.7 + 0.3
level.map:setShown(sr, sg, sb, 1)
level.map:setObscure(sr * 0.6, sg * 0.6, sb * 0.6, 1)
end,
}
No preview for this file type
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="50" height="50" tilewidth="32" tileheight="32">
<tileset firstgid="1" name="dg_grounds32" tilewidth="32" tileheight="32">
<image source="gfx/dg_grounds32.gif" width="288" height="640"/>
<tile id="9">
<properties>
<property name="display" value="."/>
<property name="value" value="&quot;GRASS&quot;"/>
</properties>
</tile>
<tile id="30">
<properties>
<property name="display" value="_"/>
<property name="value" value="&quot;ROAD&quot;"/>
</properties>
</tile>
<tile id="54">
<properties>
<property name="display" value="t"/>
<property name="value" value="{&quot;TREE&quot;,&quot;TREE2&quot;,&quot;TREE3&quot;,&quot;TREE4&quot;,&quot;TREE5&quot;,&quot;TREE6&quot;,&quot;TREE7&quot;,&quot;TREE8&quot;,&quot;TREE9&quot;,&quot;TREE10&quot;,&quot;TREE11&quot;,&quot;TREE12&quot;,&quot;TREE13&quot;,&quot;TREE14&quot;,&quot;TREE15&quot;,&quot;TREE16&quot;,&quot;TREE17&quot;,&quot;TREE18&quot;,&quot;TREE19&quot;,&quot;TREE20&quot;}"/>
</properties>
</tile>
<tile id="72">
<properties>
<property name="display" value="~"/>
<property name="value" value="&quot;DEEP_WATER&quot;"/>
</properties>
</tile>
<tile id="117">
<properties>
<property name="display" value="^"/>
</properties>
</tile>
<tile id="159">
<properties>
<property name="display" value="-"/>
</properties>
</tile>
<tile id="168">
<properties>
<property name="display" value="*"/>
</properties>
</tile>
</tileset>
<tileset firstgid="181" name="numbers" tilewidth="32" tileheight="32">
<image source="gfx/numbers.png" width="192" height="192"/>
<tile id="0">
<properties>
<property name="display" value="&lt;"/>
</properties>
</tile>
<tile id="1">
<properties>
<property name="display" value="2"/>
</properties>
</tile>
<tile id="2">
<properties>
<property name="display" value="@"/>
</properties>
</tile>
<tile id="3">
<properties>
<property name="display" value="4"/>
</properties>
</tile>
<tile id="4">
<properties>
<property name="display" value="5"/>
</properties>
</tile>
<tile id="5">
<properties>
<property name="display" value="6"/>
</properties>
</tile>
</tileset>
<tileset firstgid="217" name="tome-terrains" tilewidth="32" tileheight="32">
<image source="gfx/tome-terrains.png" width="256" height="576"/>
<tile id="1">
<properties>
<property name="display" value="#"/>
<property name="value" value="&quot;HARDWALL&quot;"/>
</properties>
</tile>
<tile id="135">
<properties>
<property name="display" value="&lt;"/>
<property name="value" value="&quot;GRASS_UP_WILDERNESS&quot;"/>
</properties>
</tile>
</tileset>
<tileset firstgid="361" name="dg_town132" tilewidth="32" tileheight="32">
<image source="gfx/dg_town132.gif" width="288" height="128"/>
<tile id="4">
<properties>
<property name="display" value="2"/>
</properties>
</tile>
<tile id="5">
<properties>
<property name="display" value="3"/>
</properties>
</tile>
<tile id="22">
<properties>
<property name="display" value="4"/>
</properties>
</tile>
<tile id="24">
<properties>
<property name="display" value="5"/>
</properties>
</tile>
</tileset>
<layer name="Terrain" width="50" height="50">
<data encoding="base64" compression="zlib">
eJzt2tttwzAMBVD7N0tkDM/gLbJAskLRNT1NUSAGCIEULx+i1ccHUSCNJR5JlGy3+7Is+3904yBxdS5Rw/0HW6jhDNSyFeSH9hFxVOSLOGhNcA6vpWKeKhyV83YsmKO1VI+1ZS4sjqvG/Tc7zvyea9/xWuetk9NxN8T392/voO3chPCsj2oHGrPPB42tCa/DOyajHJvSr8fQM2WuK84yykCD258QB2qxrCuknZ5DOie48Nb6SAN1IIb2uWSUQzMgY2yZDy68ltah5W6pA2ugJkuNo7lLv6dtWa7jTIglsgdJVq5N5DrL3qY5LOuHy6dXax6HZNEcnvX8udocH8J9sRZ/YT4ilivrw1rrs+5XqGPm88Pj6Jmqz3PvWYjaUMPRfD/SL2LYyE/tfjEyHyMd0jOZttY8dZBlyHC0c4I6pLaQPq337lJ77edZDqRv6zNIbzxGOJB1kP1snu3gDBWO7PpA6zHDQfvg5qN37vfOO8ueYjFI7aH7L+KQ5sJioO+1HivWpuSin3sdaHjelaDvfDLmI5I/Z0H3CtRivQf35D6zw2NA9yzP84rnfipi0PKyXnelYw+0pVmyDVV/p+ZqZdTYV1mi+c/2PwKj4wtVLYR+
</data>
</layer>
</map>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment