summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-08 22:26:11 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-08 22:26:11 +0100
commite0eddb8741b840df97380e557abd51b47a5e2eee (patch)
tree43fadcde4292437b14dcece8a0d85da560a4eb94 /dist
parent5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54 (diff)
downloadrpgedit-e0eddb8741b840df97380e557abd51b47a5e2eee.tar
rpgedit-e0eddb8741b840df97380e557abd51b47a5e2eee.zip
Implement circle collidables
Diffstat (limited to 'dist')
-rw-r--r--dist/resources/entity/red_circle.json10
1 files changed, 3 insertions, 7 deletions
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
}
]
}