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(),
});
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() {

View file

@ -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"