diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-11-08 22:03:08 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-11-08 22:25:53 +0100 |
commit | 5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54 (patch) | |
tree | 2631f7b3a9d55adc7d07408b30aecb7b714c25be /dist/resources | |
parent | 40339947d1a2407a6be95fad58215cdaf7d4c2c9 (diff) | |
download | rpgedit-5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54.tar rpgedit-5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54.zip |
Implement more flexible handling of entities and collidables
Diffstat (limited to 'dist/resources')
-rw-r--r-- | dist/resources/entity/green_circle.json | 3 | ||||
-rw-r--r-- | dist/resources/entity/red_circle.json | 14 | ||||
-rw-r--r-- | dist/resources/sprite/entity/green_circle.png (renamed from dist/resources/sprite/entity/simple_circle.png) | bin | 1776 -> 1776 bytes | |||
-rw-r--r-- | dist/resources/sprite/entity/red_circle.png | bin | 0 -> 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 Binary files differindex 71cdadb..71cdadb 100644 --- a/dist/resources/sprite/entity/simple_circle.png +++ b/dist/resources/sprite/entity/green_circle.png diff --git a/dist/resources/sprite/entity/red_circle.png b/dist/resources/sprite/entity/red_circle.png Binary files differnew file mode 100644 index 0000000..1bdf36c --- /dev/null +++ b/dist/resources/sprite/entity/red_circle.png |