Source

hexbattle / intro.py

#!/usr/bin/env python2
# encoding: utf-8

"""The intro scene."""

# shared data
from core import core, __copyright__
# event scheduling functions → interactivity
from pyglet.clock import schedule, schedule_once, schedule_interval

visible = []

def start(dt):
    """Start the scene."""
    @core.win.event
    def on_draw():
        core.win.clear()
        for i in visible:
            i.draw()

    core.app.exit()