From e0eddb8741b840df97380e557abd51b47a5e2eee Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 8 Nov 2018 22:26:11 +0100 Subject: Implement circle collidables --- dist/resources/entity/red_circle.json | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'dist') diff --git a/dist/resources/entity/red_circle.json b/dist/resources/entity/red_circle.json index c9479ae..65af16a 100644 --- a/dist/resources/entity/red_circle.json +++ b/dist/resources/entity/red_circle.json @@ -2,13 +2,9 @@ "sprite": "red_circle", "collision": [ { - "type": "polygon", - "vertices": [ - [-0.5, -0.5], - [-0.5, 0.5], - [0.5, 0.5], - [0.5, -0.5] - ] + "type": "circle", + "center": [0, 0], + "radius": 0.46875 } ] } -- cgit v1.2.3