text: from __future__ import division, print_function, unicode_literals
  
  # This code is so you can run the samples without installing the package
  import sys
  import os
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
  #
  
  testinfo = "s, t 1, s, t 1.9, s, t 2.1, s, q"
  tags = "Scene, scale, zoom"
  
  import cocos
  from cocos.director import director
  from cocos.actions import ScaleTo
  from cocos.sprite import Sprite
  from cocos.layer import *
  import pyglet
  
  class TestLayer(cocos.layer.Layer):
      def __init__(self):
          super( TestLayer, self ).__init__()
  
          x,y = director.get_window_size()
          sprite1 = Sprite( 'grossini.png' , (x//4, y//2) )
          sprite2 = Sprite( 'grossinis_sister1.png', (x//2, y//2) )
          sprite3 = Sprite( 'grossinis_sister2.png', (x/(4/3.0), y//2) )
  
          self.add( sprite2 )
          self.add( sprite1 )
          self.add( sprite3 )
  
  def main():
      director.init()
      main_scene = cocos.scene.Scene()
      main_scene.add( ColorLayer( 255, 0, 0, 255 ) )
      main_scene.add( TestLayer() )
      main_scene.do( ScaleTo( 0.5, 2 ) )
      director.run (main_scene)
  
  if __name__ == '__main__':
      main()
  