raftatul.bsky.social

@raftatul.bsky.social

Daily Godot Tip #30: You can give a second argument of a prefix to export groups. This matches any variables afterwards with that prefix (until there's one that does not) It removes what you set as the prefix from the name for the variable in the inspector #godot #gamedev #godottips

Bild

Fog of War - Iteration 2: I changed the way I handle the fog of war. Instead of drawing a sprite on a texture, I'm using 2D lights and 2D light occluders. To hide or show the entities, I check their position in 2D to see if they are on a black pixel (hide) or a white pixel (show). #godot #gamedev

Fog of War - Iteration 1: I followed Nanotech Gamedev's tutorial to create a simple fog of war shader. The result is pretty good, but I think I'll develop my own algorithm to draw a circle directly on the texture without using a sprite. I'll also make it interact with obstacles. #godot #gamedev