Skip to content
Browse files

Merge pull request #4 from mosch/patch-1

Fixed preview
  • Loading branch information...
2 parents e1343aa + 89f07c0 commit b73670db0ce9ae54c9325dd9c3307e9b14cff3e1 @shogoki-vnz committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 README.md
View
7 README.md
@@ -16,7 +16,9 @@ the stage "EnterFrame" event
Once the world has been initialized, you can start to add entitys with the Box2D component
<code>
- var floor = Crafty.e("2D, Canvas, Box2D")
+
+ // Setup floor
+ var floor = Crafty.e("2D, Canvas, Box2D")
.attr({ x: 0, y: 0})
.box2d({
bodyType: 'static',
@@ -25,7 +27,8 @@ Once the world has been initialized, you can start to add entitys with the Box2D
[400, 300]
]
});
-
+
+ // Add simple box
var box = Crafty.e("2D, Canvas, Color, Box2D")
.attr({ x: 0, y: 0, w:20, h:20})
.color("#FF0000")

0 comments on commit b73670d

Please sign in to comment.
Something went wrong with that request. Please try again.