diff --git a/examples/example 21 - Complex Graphics/index.html b/examples/example 21 - Complex Graphics/index.html index 7b86147..9568559 100644 --- a/examples/example 21 - Complex Graphics/index.html +++ b/examples/example 21 - Complex Graphics/index.html @@ -91,7 +91,7 @@ { isDown = false; graphics.beginFill(color); - graphics.drawPath(path) + graphics.drawPolygon(path) graphics.endFill(); path = []; } @@ -108,7 +108,7 @@ count += 0.1; liveGraphics.clear(); liveGraphics.beginFill(color); - liveGraphics.drawPath(path); + liveGraphics.drawPolygon(path); // render the stage renderer.render(stage); // graphics.x = 300; @@ -125,7 +125,7 @@ logo.position.x = window.innerWidth logo.scale.x = logo.scale.y = 0.5; logo.position.y = window.innerHeight - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() { diff --git a/examples/example 21 - Complex Graphics/index.html b/examples/example 21 - Complex Graphics/index.html index 7b86147..9568559 100644 --- a/examples/example 21 - Complex Graphics/index.html +++ b/examples/example 21 - Complex Graphics/index.html @@ -91,7 +91,7 @@ { isDown = false; graphics.beginFill(color); - graphics.drawPath(path) + graphics.drawPolygon(path) graphics.endFill(); path = []; } @@ -108,7 +108,7 @@ count += 0.1; liveGraphics.clear(); liveGraphics.beginFill(color); - liveGraphics.drawPath(path); + liveGraphics.drawPolygon(path); // render the stage renderer.render(stage); // graphics.x = 300; @@ -125,7 +125,7 @@ logo.position.x = window.innerWidth logo.scale.x = logo.scale.y = 0.5; logo.position.y = window.innerHeight - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() { diff --git a/examples/example 22 - Complex Masking/index.html b/examples/example 22 - Complex Masking/index.html index dd655fe..d114b98 100644 --- a/examples/example 22 - Complex Masking/index.html +++ b/examples/example 22 - Complex Masking/index.html @@ -108,7 +108,7 @@ liveGraphics.clear(); liveGraphics.beginFill(color); - if(path.length > 12)liveGraphics.drawPath(path); + if(path.length > 12)liveGraphics.drawPolygon(path); liveGraphics.endFill(); //console.log(">>>>") @@ -118,7 +118,7 @@ { isDown = false; graphics.beginFill(color); - graphics.drawPath(path) + graphics.drawPolygon(path) graphics.endFill(); path = []; } @@ -152,7 +152,7 @@ logo.position.x = window.innerWidth logo.scale.x = logo.scale.y = 0.5; logo.position.y = window.innerHeight - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() { diff --git a/examples/example 21 - Complex Graphics/index.html b/examples/example 21 - Complex Graphics/index.html index 7b86147..9568559 100644 --- a/examples/example 21 - Complex Graphics/index.html +++ b/examples/example 21 - Complex Graphics/index.html @@ -91,7 +91,7 @@ { isDown = false; graphics.beginFill(color); - graphics.drawPath(path) + graphics.drawPolygon(path) graphics.endFill(); path = []; } @@ -108,7 +108,7 @@ count += 0.1; liveGraphics.clear(); liveGraphics.beginFill(color); - liveGraphics.drawPath(path); + liveGraphics.drawPolygon(path); // render the stage renderer.render(stage); // graphics.x = 300; @@ -125,7 +125,7 @@ logo.position.x = window.innerWidth logo.scale.x = logo.scale.y = 0.5; logo.position.y = window.innerHeight - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() { diff --git a/examples/example 22 - Complex Masking/index.html b/examples/example 22 - Complex Masking/index.html index dd655fe..d114b98 100644 --- a/examples/example 22 - Complex Masking/index.html +++ b/examples/example 22 - Complex Masking/index.html @@ -108,7 +108,7 @@ liveGraphics.clear(); liveGraphics.beginFill(color); - if(path.length > 12)liveGraphics.drawPath(path); + if(path.length > 12)liveGraphics.drawPolygon(path); liveGraphics.endFill(); //console.log(">>>>") @@ -118,7 +118,7 @@ { isDown = false; graphics.beginFill(color); - graphics.drawPath(path) + graphics.drawPolygon(path) graphics.endFill(); path = []; } @@ -152,7 +152,7 @@ logo.position.x = window.innerWidth logo.scale.x = logo.scale.y = 0.5; logo.position.y = window.innerHeight - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() { diff --git a/examples/example 23 - Texture Swap/eggHead.png b/examples/example 23 - Texture Swap/eggHead.png new file mode 100644 index 0000000..f8bff53 --- /dev/null +++ b/examples/example 23 - Texture Swap/eggHead.png Binary files differ diff --git a/examples/example 21 - Complex Graphics/index.html b/examples/example 21 - Complex Graphics/index.html index 7b86147..9568559 100644 --- a/examples/example 21 - Complex Graphics/index.html +++ b/examples/example 21 - Complex Graphics/index.html @@ -91,7 +91,7 @@ { isDown = false; graphics.beginFill(color); - graphics.drawPath(path) + graphics.drawPolygon(path) graphics.endFill(); path = []; } @@ -108,7 +108,7 @@ count += 0.1; liveGraphics.clear(); liveGraphics.beginFill(color); - liveGraphics.drawPath(path); + liveGraphics.drawPolygon(path); // render the stage renderer.render(stage); // graphics.x = 300; @@ -125,7 +125,7 @@ logo.position.x = window.innerWidth logo.scale.x = logo.scale.y = 0.5; logo.position.y = window.innerHeight - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() { diff --git a/examples/example 22 - Complex Masking/index.html b/examples/example 22 - Complex Masking/index.html index dd655fe..d114b98 100644 --- a/examples/example 22 - Complex Masking/index.html +++ b/examples/example 22 - Complex Masking/index.html @@ -108,7 +108,7 @@ liveGraphics.clear(); liveGraphics.beginFill(color); - if(path.length > 12)liveGraphics.drawPath(path); + if(path.length > 12)liveGraphics.drawPolygon(path); liveGraphics.endFill(); //console.log(">>>>") @@ -118,7 +118,7 @@ { isDown = false; graphics.beginFill(color); - graphics.drawPath(path) + graphics.drawPolygon(path) graphics.endFill(); path = []; } @@ -152,7 +152,7 @@ logo.position.x = window.innerWidth logo.scale.x = logo.scale.y = 0.5; logo.position.y = window.innerHeight - 70; - logo.setInteractive(true); + logo.interactive = true; logo.buttonMode = true; logo.click = logo.tap = function() { diff --git a/examples/example 23 - Texture Swap/eggHead.png b/examples/example 23 - Texture Swap/eggHead.png new file mode 100644 index 0000000..f8bff53 --- /dev/null +++ b/examples/example 23 - Texture Swap/eggHead.png Binary files differ diff --git a/examples/example 23 - Texture Swap/flowerTop.png b/examples/example 23 - Texture Swap/flowerTop.png new file mode 100644 index 0000000..041cf2a --- /dev/null +++ b/examples/example 23 - Texture Swap/flowerTop.png Binary files differ