A downloadable asset pack

Buy Now$2.99 USD or more

Terraria-like tile based lighting system made in Godot.

Features:

  • Lightweight
  • Shader based

Instructions:

Comes with an example Godot 4.2 (C#) project. Works in all Godot 4.x versions. With small changes can be made to work with Godot 3.5.

Disclaimer:

* Only includes C# Godot project. Same code if written in GDScript should also work.

* Images included in this package are not sold with this package and are there only for demonstration purposes.

Tileset by Pixel Frog: https://pixelfrog-assets.itch.io/treasure-hunters


Purchase

Buy Now$2.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $2.99 USD. You will get access to the following files:

tech-tilebasedlighting.zip 25 kB

Comments

Log in with itch.io to leave a comment.

Works great, had to spend a couple hours rewritting it to GDSscript though.

Also encountered two issues that took me time to fix:

1 - In LitTileMap, when creating the CoordinateArray2D, the offsets should be "-start_x, -start_y", otherwise tilemap layers that are not centered right at (0,0) will crash.

2 - If "Snap 2D Transforms to Pixel" is enabled, the "shadows" appear partially off screen. I was using this setting in my project and took me a day to find out it was this issue. @captainotter do you think you can update the shader to support that?

Also would have been nice to make this opensource, maybe you can still get a "premium" version with more features

Thanks