.. a7 Graphics Scene Node class

.. _gscene-label:

Class GScene
============
This class represents a node in a scene graph. A scene graph node is just a collection 
of GObjects.  By placing them in the scene graph node, you can rotate and translate them 
all at once.  Scene graphs are a sophisticated concept that allow you to do advanced 
animation.
    
As `GScene` is a subclass of :ref:`GObject <gobject-label>` you can nest scene graph 
nodes inside of other scene graph nodes.  The result is a tree structure.
    
The attributes `width` and `height` are present in this object, but they are now 
read-only. These values are computed from the list of GObjects stored in the scene.
    
All GObjects stored in a GScene are drawn as if the point (x,y) is the origin.

Constructor
-----------
.. autoclass:: game2d.GScene

Attributes
----------
This class has all of the attributes of  :ref:`GObject <gobject-label>`.  In addition,
it has the following new or altered attributes.

.. currentmodule:: game2d
.. autoattribute:: GScene.children
.. autoattribute:: GScene.width
.. autoattribute:: GScene.height