How to use the particle.Make_Particle_Effect function in particle

To help you get started, we’ve selected a few particle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 20kly / 20kly / code / storms.py View on Github external
def Init_Storms():
    # This is rather slow.
    global storm_graphics
    storm_graphics = particle.Make_Particle_Effect(particle.Storm_Particle)

    global storm_sound
    storm_sound = sound.Persisting_Sound("stormdmg", "stormbeeps")
github 20kly / 20kly / code / ui.py View on Github external
self.blink = 0xff

        self.screen_rect = Rect(0, 0, width, height)

        img = resource.Load_Image("back.jpg").convert() 
        # (convert destroys a-channel)
        # Although there is only one base image, it is flipped and
        # rotated on startup to create one of eight possible backdrops.

        img = pygame.transform.rotate(img, 90 * (bg_number & 3))
        if bg_number & 4:
            img = pygame.transform.flip(img, True, False)
            
        self.background = pygame.transform.scale(img, (width, height))

        self.steam_effect = particle.Make_Particle_Effect(
                        particle.Steam_Particle)
        self.steam_effect_frame = 0