summaryrefslogtreecommitdiffstats
path: root/dist
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
parent40339947d1a2407a6be95fad58215cdaf7d4c2c9 (diff)
downloadrpgedit-5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54.tar
rpgedit-5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54.zip
Implement more flexible handling of entities and collidables
Diffstat (limited to 'dist')
-rw-r--r--dist/resources/entity/green_circle.json3
-rw-r--r--dist/resources/entity/red_circle.json14
-rw-r--r--dist/resources/sprite/entity/green_circle.png (renamed from dist/resources/sprite/entity/simple_circle.png)bin1776 -> 1776 bytes
-rw-r--r--dist/resources/sprite/entity/red_circle.pngbin0 -> 1844 bytes
4 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]
+ ]
+ }
+ ]
+}
diff --git a/dist/resources/sprite/entity/simple_circle.png b/dist/resources/sprite/entity/green_circle.png
index 71cdadb..71cdadb 100644
--- a/dist/resources/sprite/entity/simple_circle.png
+++ b/dist/resources/sprite/entity/green_circle.png
Binary files differ
diff --git a/dist/resources/sprite/entity/red_circle.png b/dist/resources/sprite/entity/red_circle.png
new file mode 100644
index 0000000..1bdf36c
--- /dev/null
+++ b/dist/resources/sprite/entity/red_circle.png
Binary files differ