Open Finnik723 opened 2 years ago
I think this could be done using vapor, only change would be required to not move particles up.
Probably, but it would draw a very fat line. Instead, I want to experiment with something, that looks like a beam with animation. For example, changing brightness of the line for a few frames. Or making 3pixel wide line, with middle pixel to be more bright. But a solid one pixel line will be fine for a start. This is a task for my new contributor, that is very interested in playing with engine drawing core =)
Problem is that is easy draw line on 2d surface but its hard draw line when some parts need be behind some walls object etc. not mentioning units, we had already "reports" that "this bullet hit this alien!" where it go 3 voxel behind it.
Add new RuleItem property, that would tell the game to not draw Projectile sprite. Instead, on battlescape a straight line should be drawn, from the point where the projectile starts traveling to the end point. Camera sets to destination point, and hit animation drawn. The color of the line should be loaded from ruleset.