- Home /
Update one-colored rectangle with circle shaped holes once per second.
I'm making a top-down game where unexplored areas are filled with fog/clouds. You explore by moving the player character by clicking where he will go, and the clouds disappear when the player gets too close to them so you can't just see the whole map by dragging around the camera. I'm going to place in the cloud textures but under them I want to have just a one colored rectangle that takes up the whole screen exept the areas that has been explored. I don't know how to do this and how it will affect performance. I don't need to update the filled rectangle every frame, maybe like once per second or less if needed. Anyone have any ideas on how to implement this or if it's even possible?
Comment