This commit is contained in:
John Alanbrook 2023-04-29 15:08:16 +00:00
parent 4d9a78bad8
commit b2f541edf4
2 changed files with 20 additions and 12 deletions

View file

@ -3,15 +3,16 @@ gameobject.clone("ball", {
img: sprite.clone(), img: sprite.clone(),
}); });
Resources["brick.png"] = {
frames:6,
fps:24,
loop:false
};
gameobject.clone("brick", { gameobject.clone("brick", {
collider: polygon2d.clone(), collider: polygon2d.clone(),
char: char2d.clone({ char: char2d.clone({
flash: { flash:"brick.png"}
path: "brick.png",
frames:6,
fps:24,
loop:false
}
}), }),
start() { start() {

View file

@ -30,7 +30,11 @@
}, },
"ball": { "ball": {
"collider": { "collider": {
"rradius": 4.39338754070273 "rradius": 4.39338754070273,
"ofset": [
0,
0
]
}, },
"img": { "img": {
"_pos": [ "_pos": [
@ -39,9 +43,8 @@
], ],
"_path": "ball.png" "_path": "ball.png"
}, },
"name": "ball", "_scale": 2.919193983078003,
"from": "gameobject", "from": "gameobject"
"_scale": 2.919193983078003
}, },
"brick": { "brick": {
"collider": { "collider": {
@ -62,7 +65,11 @@
"fps": 24, "fps": 24,
"loop": false "loop": false
} }
} },
"_pos": [
-0.5,
-0.5
]
}, },
"_scale": 2.9100000858306885, "_scale": 2.9100000858306885,
"from": "gameobject" "from": "gameobject"