Skip to content

Commit

Permalink
Some additional random strict-mode fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettering committed Mar 30, 2016
1 parent 8ebd9a8 commit 7bb9949
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions data/objects/effects/general/fire_explosion.cfg
@@ -1,8 +1,6 @@
{
id: "fire_explosion",
dies_on_inactive: true,
on_players_side: true,
on_collide_with: "hit(collide_with)",
on_end_normal_anim: "die()",

zorder: "@include data/zorder.cfg:near_player_foreground_effects",
Expand Down
12 changes: 6 additions & 6 deletions data/objects/effects/particles/firefly_generator.cfg
Expand Up @@ -31,14 +31,14 @@ on_create: "[
on_editor_changed_variable: "fire_event('setup_particles')",
on_setup_particles: "[
set(self['light_dots'].generation_rate_millis, dump((width*height)/10000.0)*fireflies_per_cubic_decimeter), //Doesn't work.
set(self['light_dots'].pos_x, level.camera_position[0]-player_speed),
set(self['light_dots'].pos_x_rand, width), //Move this to on_process if we change resolution during a level.
set(self['light_dots'].pos_y, upper_bound-mid_y + img_h/2),
set(self['light_dots'].pos_y_rand, height),
set(particle_systems['light_dots'].generation_rate_millis, dump((width*height)/10000.0)*fireflies_per_cubic_decimeter), //Doesn't work.
set(particle_systems['light_dots'].pos_x, level.camera_position[0]-player_speed),
set(particle_systems['light_dots'].pos_x_rand, width), //Move this to on_process if we change resolution during a level.
set(particle_systems['light_dots'].pos_y, upper_bound-mid_y + img_h/2),
set(particle_systems['light_dots'].pos_y_rand, height),
]",
on_process: "set(self['light_dots'].pos_x, level.camera_position[0]-player_speed)",
on_process: "set(particle_systems['light_dots'].pos_x, level.camera_position[0]-player_speed)",
animation: {
Expand Down

0 comments on commit 7bb9949

Please sign in to comment.