Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def on_draw(self, time=None):
- glClearColor(0.0, 0.0, 0.0, 1.0)
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
- glLoadIdentity()
- self.particles.append(Particle())
- for particle in self.particles:
- particle.draw()
- if particle.is_dead:
- self.particles.remove(particle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement