summaryrefslogtreecommitdiffstats
path: root/dist/resources/entity
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-08 22:03:08 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-08 22:25:53 +0100
commit5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54 (patch)
tree2631f7b3a9d55adc7d07408b30aecb7b714c25be /dist/resources/entity
parent40339947d1a2407a6be95fad58215cdaf7d4c2c9 (diff)
downloadrpgedit-5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54.tar
rpgedit-5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54.zip
Implement more flexible handling of entities and collidables
Diffstat (limited to 'dist/resources/entity')
-rw-r--r--dist/resources/entity/green_circle.json3
-rw-r--r--dist/resources/entity/red_circle.json14
2 files changed, 17 insertions, 0 deletions
diff --git a/dist/resources/entity/green_circle.json b/dist/resources/entity/green_circle.json
new file mode 100644
index 0000000..14952b2
--- /dev/null
+++ b/dist/resources/entity/green_circle.json
@@ -0,0 +1,3 @@
+{
+ "sprite": "green_circle"
+}
diff --git a/dist/resources/entity/red_circle.json b/dist/resources/entity/red_circle.json
new file mode 100644
index 0000000..c9479ae
--- /dev/null
+++ b/dist/resources/entity/red_circle.json
@@ -0,0 +1,14 @@
+{
+ "sprite": "red_circle",
+ "collision": [
+ {
+ "type": "polygon",
+ "vertices": [
+ [-0.5, -0.5],
+ [-0.5, 0.5],
+ [0.5, 0.5],
+ [0.5, -0.5]
+ ]
+ }
+ ]
+}