@@ -183,17 +183,18 @@ pub const ActorStats = struct {
183
183
._spritesheet = spritesheets .getSpriteSheet ("sprites/particles" ),
184
184
.spritesheet_row = 3 ,
185
185
.spritesheet_col = 2 ,
186
- .lifetime = 16 .0 ,
186
+ .lifetime = 26 .0 ,
187
187
.lifetime_variance = 3.0 ,
188
188
// .velocity = math.Vec3.zero,
189
189
.velocity = hit_normal .scale (0.3 ),
190
190
.velocity_variance = math .Vec3 .one .scale (0.4 ),
191
- .position_variance = math .Vec3 .one .scale (0.5 ),
191
+ .position_offset = hit_normal .scale (-0.3 ),
192
+ .position_variance = math .Vec3 .one .scale (0.2 ),
192
193
.gravity = 0.001 ,
193
194
.color = delve .colors .Color .new (1.0 , 0.0 , 0.0 , 0.25 ),
194
195
.end_color = delve .colors .Color .new (1.0 , 0.0 , 0.0 , 0.0 ),
195
- .scale = 1.35 ,
196
- .end_scale = 1.65 ,
196
+ .scale = 1.55 ,
197
+ .end_scale = 1.75 ,
197
198
.delete_owner_when_done = false ,
198
199
.use_lighting = true ,
199
200
.collides_world = false ,
@@ -246,5 +247,30 @@ pub const ActorStats = struct {
246
247
}) catch {
247
248
return ;
248
249
};
250
+
251
+ // blood mist (smoke!)
252
+ _ = hit_emitter .createNewComponent (emitter .ParticleEmitterComponent , .{
253
+ .num = 4 ,
254
+ .num_variance = 5 ,
255
+ ._spritesheet = spritesheets .getSpriteSheet ("sprites/particles" ),
256
+ .spritesheet_row = 3 ,
257
+ .spritesheet_col = 2 ,
258
+ .lifetime = 26.0 ,
259
+ .lifetime_variance = 3.0 ,
260
+ .velocity = hit_normal .scale (0.5 ),
261
+ .velocity_variance = math .Vec3 .one .scale (0.4 ),
262
+ .position_offset = hit_normal .scale (-0.3 ),
263
+ .position_variance = math .Vec3 .one .scale (2.0 ),
264
+ .gravity = 0.001 ,
265
+ .color = delve .colors .Color .new (1.0 , 0.0 , 0.0 , 0.25 ),
266
+ .end_color = delve .colors .Color .new (1.0 , 0.0 , 0.0 , 0.0 ),
267
+ .scale = 2.35 ,
268
+ .end_scale = 2.65 ,
269
+ .delete_owner_when_done = false ,
270
+ .use_lighting = true ,
271
+ .collides_world = false ,
272
+ }) catch {
273
+ return ;
274
+ };
249
275
}
250
276
};
0 commit comments