cocos.utils module

Here are a bunch of utilities to use with cocos.

utils

This module provides classes or functions that were useful to us while doing games.

class SequenceScene(*scenes)

Bases: cocos.scene.Scene

SequenceScene is used when you want to load more than one scene to the director. Some easy example would be: I want to run a Intro scene before the menu game. So I do this: director.run(SequenceScene(intro(), menuGame()))

on_enter()