Why does a scene take a scene manager as a parameter?
问题 I'm having problems understanding a game scene manager (FSM) in pygame that I try to replicate from this website: https://nicolasivanhoe.wordpress.com/2014/03/10/game-scene-manager-in-python-pygame/ I'll copy the code: # -*- encoding: utf-8 -*- # Modules import pygame, sys class Director: """Represents the main object of the game. The Director object keeps the game on, and takes care of updating it, drawing it and propagate events. This object must be used with Scene objects that are defined