gifted-whale-78169
01/29/2023, 2:21 AMgifted-whale-78169
01/29/2023, 2:21 AMgifted-whale-78169
01/29/2023, 2:23 AMfaint-toothbrush-51643
01/29/2023, 3:26 AMfaint-toothbrush-51643
01/29/2023, 3:26 AMgifted-whale-78169
01/29/2023, 4:46 AMgifted-whale-78169
01/29/2023, 4:46 AMgifted-whale-78169
01/29/2023, 4:50 AMgifted-whale-78169
01/29/2023, 4:50 AMgifted-whale-78169
01/29/2023, 4:50 AMsquare-angle-35096
01/29/2023, 4:54 AMsquare-angle-35096
01/29/2023, 4:55 AMfaint-toothbrush-51643
01/29/2023, 5:03 AMbright-gpu-74537
01/29/2023, 5:14 PMgifted-whale-78169
01/29/2023, 6:39 PMhaxe
//MainScene.hx
app.arcade.onUpdate(this, (d: Float) -> {
for (v in pipes) {
app.arcade.world.collide(plr.body, v.hitbox.body); //TODO1 finish pipe collisions
}
----
//Pipe.hx
hitbox = new Quad();
hitbox.color = Color.RED;
hitbox.anchor(0.5, 1);
hitbox.x = width/2;
hitbox.size(headtex.width, tailtex.height * (tailLength + 5) + headtex.height);
hitbox.initArcadePhysics();
hitbox.allowGravity = false;
hitbox.immovable = true;
add(hitbox);
});
gifted-whale-78169
01/29/2023, 6:40 PMbillowy-waiter-28954
01/29/2023, 10:24 PMbillowy-waiter-28954
01/29/2023, 10:26 PMarcade.Body
object on which you set the x,y values yourselfwonderful-motorcycle-11189
01/29/2023, 11:51 PMambitious-knife-25690
01/30/2023, 12:05 AMambitious-knife-25690
01/30/2023, 12:05 AMwonderful-motorcycle-11189
01/30/2023, 12:05 AMwonderful-motorcycle-11189
01/30/2023, 12:06 AMambitious-knife-25690
01/30/2023, 12:07 AMambitious-knife-25690
01/30/2023, 12:08 AMambitious-knife-25690
01/30/2023, 12:08 AMambitious-knife-25690
01/30/2023, 12:10 AMambitious-knife-25690
01/30/2023, 12:10 AMwonderful-motorcycle-11189
01/30/2023, 12:17 AM