This Week's Work:
This week was focused on another synergy: Explosive-Summoning, which drops a mine whenever a summoning crystal hits an enemy.
Fortunately, a lot of the structure is already in the game. Last week we implemented another on-hit synergy, so that activation is already working. Additionally, I implemented the Mine Dropper Crystal ability, which does essentially what we want the synergy to do. This means that I already created a prefab with necessary animations, collision, etc.
I did have to create a new script for the synergy mine, since the Mine Dropper mine would activate the synergy, and if the synergy mine did that, it would just keep spawning mines forever. I just took the essentials from the original script to make the new one. Here's the gist of it:
I also did some tweaks like adding a cooldown to the spawning function, and changed the color of the synergy mine so that it was distinguishable from the original Mine Dropper mine (just in case you have both).
Last Week's Work Updated:
After getting a basic version of the laser complete, I met with our team's artist, and she recommending using the laser texture that already existed on the Laser crystal. Luckily, I used a line renderer to implement this originally, so I was able to use the material from the laser crystal and just add it into the line renderer. It now looks like this:
I did run into issues with the texture tiling, because even though the line renderer was set to tile, only one instance would show up. Apparently this is because imported textures default to a wrap mode of “Clamp”, which prevents repeating/tiling. All I had to do was change it to “Repeat” and re-import the texture.