Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
creates creates -> creates
stage.stage -> stage
  • Loading branch information
katopz committed Jun 27, 2012
1 parent 0390335 commit 8915de0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mikedotalmond/napoleon/examples/PolygonTestScene.as
Expand Up @@ -150,7 +150,7 @@ package mikedotalmond.napoleon.examples {
// circle
n = 128;
while (--n) {
// calling NapePolygon2D.circle creates creates a poly with 24 subdivisions (close enough to a circle when not too large)
// calling NapePolygon2D.circle creates a poly with 24 subdivisions (close enough to a circle when not too large)
testF = new NapePolygon2D(NapePolygon2D.circle(8 + Math.random()*32), Texture2D.textureFromBitmapData(new TextureBD().bitmapData));
testF.init(getRandomStagePosition(), true, null, Material.glass()); // setting isCircle=true makes the Nape physics object a circle, not a polygon with many edges
addChild(testF);
Expand All @@ -162,7 +162,7 @@ package mikedotalmond.napoleon.examples {
addChild(testH);

// the ground object
floor = new NapeSprite2D(Texture2D.textureFromBitmapData(new BitmapData(stage.stage.fullScreenWidth, 64, false, 0xffff0000)))
floor = new NapeSprite2D(Texture2D.textureFromBitmapData(new BitmapData(stage.fullScreenWidth, 64, false, 0xffff0000)))
floor.init(new Vec2(stage.stageWidth >> 1, stage.stageHeight), BodyType.KINEMATIC, NapeSprite2D.BODY_SHAPE_BOX, Material.ice());
addChild(floor);

Expand Down

0 comments on commit 8915de0

Please sign in to comment.