Advertisement
Guest User

Untitled

a guest
Mar 14th, 2014
986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. (function (lib, img, cjs) {
  2.  
  3. var p; // shortcut to reference prototypes
  4.  
  5. // library properties:
  6. lib.properties = {
  7. width: 564,
  8. height: 512,
  9. fps: 24,
  10. manifest: []
  11. };
  12.  
  13. // symbols:
  14. (lib.tile2 = function() {
  15. this.initialize();
  16.  
  17. // Layer 1
  18. this.shape = new cjs.Shape();
  19. this.shape.graphics.lf(["#000000","#FFFFFF"],[0,1],0.3,-16.2,0.3,41.8).s().p("AifCgIAAk/IE/AAIAAE/g");
  20.  
  21. this.addChild(this.shape);
  22. }).prototype = p = new cjs.Container();
  23. p.nominalBounds = new cjs.Rectangle(-16,-16,32,32);
  24.  
  25.  
  26. (lib.tile1 = function() {
  27. this.initialize();
  28.  
  29. // Layer 1
  30. this.shape = new cjs.Shape();
  31. //this.shape.graphics.f("#333333").s().p("AifCgIAAk/IE/AAIAAE/g");
  32. var image = new Image();
  33. image.src = "images/Bitmap1.jpg";
  34. this.shape.graphics.beginBitmapFill( image );
  35.  
  36. this.addChild(this.shape);
  37. }).prototype = p = new cjs.Container();
  38. p.nominalBounds = new cjs.Rectangle(-16,-16,32,32);
  39.  
  40.  
  41. (lib.tile0 = function() {
  42. this.initialize();
  43.  
  44. // Layer 1
  45. this.shape = new cjs.Shape();
  46. this.shape.graphics.f("#CCCCCC").s().p("AifCgIAAk/IE/AAIAAE/g");
  47.  
  48. this.addChild(this.shape);
  49. }).prototype = p = new cjs.Container();
  50. p.nominalBounds = new cjs.Rectangle(-16,-16,32,32);
  51.  
  52. })(lib = lib||{}, images = images||{}, createjs = createjs||{});
  53. var lib, images, createjs;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement