I've been working on more of my ECS framework, and I've got it to a pretty nice place. Here is what the player's pistol weapon looks like:
Transform:
ChildTransform:
localPosition: [0.3125, -0.125]
Description:
name: "pistol.yml"
SpriteDriver:
spriteName: pistol
idleTagName: "idle"
layer: 4
Gun:
fireRate: 0.2
spawnOffset: [0, 0.0625]
projectileSpeed: 20
projectileEntity: "pistol_bullet"
shootSoundEvent: "event:/Weapon/Pistol/Shoot"
And the "pistol_bullet" entity:
Transform:
SpriteDriver:
spriteName: pistol
layer: 4
Light:
color: [0.51, 0.94, 0.65]
brightness: 0.1
Physics:
extents: [0.15625, 0.0625]
collisionOffset: [0, 0]
gravityScale: 0
category: 0x04
mask: 0x02
Bullet:
deathAnimationName: "impact"
damage: 1
And in action:
(click for smooth video)As a side note, for some reason gfycat seems to be encoding my gifs really dark compared to what I actually see. Anyone else having this issue? It might be unique to my game since it is a bit on the darker side.