723Studio / OpenXcom_FTA

Fork of OXCE project with additions to support From the Ashes project
http://x-comfromtheashes.tilda.ws/
GNU General Public License v3.0
14 stars 18 forks source link

Laser line #162

Open Finnik723 opened 2 years ago

Finnik723 commented 2 years ago

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.

Yankes commented 2 years ago

I think this could be done using vapor, only change would be required to not move particles up.

Finnik723 commented 2 years ago

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 =)

Yankes commented 2 years ago

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.