Class cocos.particle_systems.Fireworks

         object --+        
                  |        
cocosnode.CocosNode --+    
                      |    
particle.ParticleSystem --+
                          |
                         Fireworks

Methods

Inherited from particle.ParticleSystem: __init__, add_particle, draw, init_particle, on_enter, reset_system, step, stop_system, update_particles Inherited from cocosnode.CocosNode: __contains__, add, are_actions_running, do, get, get_ancestor, get_children, on_exit, pause, pause_scheduler, remove, remove_action, resume, resume_scheduler, schedule, schedule_interval, stop, transform, unschedule, visit, walk Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Instance Variables

Inherited from particle.ParticleSystem: emit_counter, particle_count Inherited from cocosnode.CocosNode: actions, camera, children, children_anchor_x, children_anchor_y, children_names, grid, is_running, rotation, scale, scheduled_calls, scheduled_interval_calls, skip_frame, to_remove, transform_anchor_x, transform_anchor_y, visible, x, y

Class Variables

  total_particles = 3000
Maximum particles
  duration = -1
duration in seconds of the system.
  gravity = Point2(0,-90)
Gravity of the particles
  angle = 90
The angle (direction) of the particles measured in degrees
  angle_var = 20
Angle variance measured in degrees;
  radial_accel = 0
Radial acceleration
  radial_accel_var = 0
Radial acceleration variance
  speed = 180
The speed the particles will have.
  speed_var = 50
The speed variance
  pos_var = Point2(0, 0)
position is from "superclass" CocosNode Position variance
  life = 3.5
How many seconds will the particle live
  life_var = 1
Life variance
  emission_rate = total_particles/ life
  start_color = Color(0.5, 0.5, 0.5, 1.0)
Start color of the particles
  start_color_var = Color(0.5, 0.5, 0.5, 1.0)
Start color variance
  end_color = Color(0.1, 0.1, 0.1, 0.2)
End color of the particles
  end_color_var = Color(0.1, 0.1, 0.1, 0.2)
End color variance
  size = 8.0
Size of the particles
  size_var = 2.0
Size variance
  blend_additive = False
blend additive
  color_modulate = True
color modulate
Inherited from particle.ParticleSystem: active, elapsed, tangential_accel, tangential_accel_var, texture Inherited from cocosnode.CocosNode: anchor, anchor_x, anchor_y, children_anchor, parent, position, transform_anchor