i attached a pic
Thanks for the feedback. paulh found this bug some time back. Basically its down to different camera offsets, when I put the shader in the jump run demo I did no check the difference it how the camera worked. The fix will be in the next version
1 decade ago
by gort
I really want to use it, but when i treid it diddent work. I'd like to see the demo, but the link is dead
1 decade ago
by Joncom
Quote from gort
I really want to use it, but when i treid it diddent work. I'd like to see the demo, but the link is dead
"Didn't work" is pretty vague. Maybe if you gave more information, such as an error you received in console, then someone could help you.
1 decade ago
by gort
Ok! Well... No errors. just some lighted tiles and blackness.
1 decade ago
by Joncom
@gort: Isn't that what the plugin is supposed to do?
1 decade ago
by gort
No, Becouse the player is in blackness and the lighted tiles are, like, 144 or 4 36x36 tiles away.
1 decade ago
by Apiheld
I improved the original plugin and posted a new version. This article describes it in a bit more detail and has a demo:
http://www.ntaso.com/tile-based-shader-plugin-for-impact-js/
1 decade ago
by city41
this is really awesome. I'm going to try incorporating it into my game. I used a super poor man's lighting technique, this will be way better.
This is really great, especially because the
demo and documentation is so thorough
1 decade ago
by Apiheld
Ah one more note:
It has a lot of draw calls. Like 600 or so. This was the same in the original plugin and I didn't try to reduce them. However, if your light sources don't move, they are hardly re-drawn and even if they move and you have 600 draws, a modern computer manages them quite fine. I'm just a bit worried about mobile devices. Might require additional tweaking.
1 decade ago
by Apiheld
And let me know if you have problems including it. I'll try to help. And show us the results later :)
1 decade ago
by Joncom
@Apiheld: Pretty GIF, cool demo, and nice documentation -- well done.
1 decade ago
by drhayes
Yeah, good job. Looks great and I'm going to be digging in on this one.
1 decade ago
by city41
I like this plugin. I want to use it in a game some day. I tried to add it to my game Dragon Plunder but I felt it wasn't quite the right look/feel for that game.
Good stuff!
1 decade ago
by Apiheld
@Joncom & drhayes: Thanks :)
@city41: Yeah, I think it doesn't work with all games. Your game doesn't have "obvious" tiles. A smoother or pixel-perfect shader would probably be better. A game where tiles are clearly identifiable as such (even though good pixel artists try to avoid that) benefits way more from a tile-based shader.