Skip to content

Instantly share code, notes, and snippets.

@fenixkim
Created February 12, 2013 14:01
Show Gist options
  • Save fenixkim/4770074 to your computer and use it in GitHub Desktop.
Save fenixkim/4770074 to your computer and use it in GitHub Desktop.
var cuadrado = new Cuadrado();
var cuadrado2 = new Cuadrado();
cuadrado.x = contenedor1.width/2 - cuadrado.width/2;
cuadrado.y = contenedor1.height/2 - cuadrado.height/2;
contenedor1.addChild(cuadrado);
contenedor2.addChild(cuadrado2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment