comparison eclviewer.py @ 59:4fe37a620b22

Handle set_random_angle properly! At last!
author Thibaut Girka <thib@sitedethib.com>
date Wed, 24 Aug 2011 01:34:11 +0200
parents 3da4de9decd0
children 6a08f44fa01b
comparison
equal deleted inserted replaced
58:3da4de9decd0 59:4fe37a620b22
100 100
101 # Update game 101 # Update game
102 enemy_manager.update(frame) 102 enemy_manager.update(frame)
103 background.update(frame) 103 background.update(frame)
104 104
105 frame += 1
106
105 # Draw everything 107 # Draw everything
106 # glClearColor(0.0, 0.0, 1.0, 0) 108 # glClearColor(0.0, 0.0, 1.0, 0)
107 glClear(GL_DEPTH_BUFFER_BIT) 109 glClear(GL_DEPTH_BUFFER_BIT)
108 110
109 fog_b, fog_g, fog_r, _, fog_start, fog_end = background.fog_interpolator.values 111 fog_b, fog_g, fog_r, _, fog_start, fog_end = background.fog_interpolator.values
156 glDrawArrays(GL_QUADS, 0, nb_vertices) 158 glDrawArrays(GL_QUADS, 0, nb_vertices)
157 glEnable(GL_FOG) 159 glEnable(GL_FOG)
158 160
159 pygame.display.flip() 161 pygame.display.flip()
160 clock.tick(120) 162 clock.tick(120)
161 frame += 1
162 163
163 164
164 165
165 try: 166 try:
166 file_path, stage_num = sys.argv[1:] 167 file_path, stage_num = sys.argv[1:]