Advertisement
Guest User

Untitled

a guest
Dec 25th, 2017
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1.  def on_draw(self, time=None):
  2.         glClearColor(0.0, 0.0, 0.0, 1.0)
  3.         glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
  4.         glLoadIdentity()
  5.  
  6.         self.particles.append(Particle())
  7.         for particle in self.particles:
  8.             particle.draw()
  9.  
  10.             if particle.is_dead:
  11.                 self.particles.remove(particle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement