diff --git a/config.js b/config.js index 1f3f89e..7a563b6 100644 --- a/config.js +++ b/config.js @@ -3,15 +3,16 @@ gameobject.clone("ball", { img: sprite.clone(), }); +Resources["brick.png"] = { + frames:6, + fps:24, + loop:false +}; + gameobject.clone("brick", { collider: polygon2d.clone(), char: char2d.clone({ - flash: { - path: "brick.png", - frames:6, - fps:24, - loop:false - } + flash:"brick.png"} }), start() { diff --git a/proto.json b/proto.json index b1f589b..99ce229 100644 --- a/proto.json +++ b/proto.json @@ -30,7 +30,11 @@ }, "ball": { "collider": { - "rradius": 4.39338754070273 + "rradius": 4.39338754070273, + "ofset": [ + 0, + 0 + ] }, "img": { "_pos": [ @@ -39,9 +43,8 @@ ], "_path": "ball.png" }, - "name": "ball", - "from": "gameobject", - "_scale": 2.919193983078003 + "_scale": 2.919193983078003, + "from": "gameobject" }, "brick": { "collider": { @@ -62,7 +65,11 @@ "fps": 24, "loop": false } - } + }, + "_pos": [ + -0.5, + -0.5 + ] }, "_scale": 2.9100000858306885, "from": "gameobject" @@ -104,4 +111,4 @@ "mirrorx": true } } -} \ No newline at end of file +}