def stress_test(): pyglet.clock.schedule_interval_soft(test_mine, 1./10) pyglet.clock.schedule_interval_soft(test_medkit, 1./1) pyglet.clock.schedule_interval_soft(test_ammunition, 1./1) pyglet.clock.schedule_interval_soft(test_enemy, 10) add_enemy()
def real_test(): pyglet.clock.schedule_interval_soft(test_mine, 3) pyglet.clock.schedule_interval_soft(test_medkit, 5) pyglet.clock.schedule_interval_soft(test_ammunition, 5) pyglet.clock.schedule_interval_soft(test_enemy, 60) add_enemy()
def test_enemy(dt): e = add_enemy() e.health.max = 1000 e.health.current = 1000