cocos.scenes.pause module

Pause scene

class PauseLayer

Bases: cocos.layer.base_layers.Layer

Layer that shows the text ‘PAUSED’

draw()

This is the function you will have to override if you want your subclassed CocosNode to draw something on screen.

You must respect the position, scale, rotation and anchor attributes. If you want OpenGL to do the scaling for you, you can:

def draw(self):
    glPushMatrix()
    self.transform()
    # ... draw ..
    glPopMatrix()
on_key_press(k, m)
is_event_handler = True

enable pyglet’s events

class PauseScene(background, *layers)

Bases: cocos.scene.Scene

Pause Scene

draw()

This is the function you will have to override if you want your subclassed CocosNode to draw something on screen.

You must respect the position, scale, rotation and anchor attributes. If you want OpenGL to do the scaling for you, you can:

def draw(self):
    glPushMatrix()
    self.transform()
    # ... draw ..
    glPopMatrix()
default_pause_scene()
get_pause_scene()
set_pause_scene_generator(generator)