From 5eae6f29a80cd47e268cb6eaefa96a0ab0a63e54 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 8 Nov 2018 22:03:08 +0100 Subject: Implement more flexible handling of entities and collidables --- dist/resources/entity/green_circle.json | 3 +++ dist/resources/entity/red_circle.json | 14 ++++++++++++++ dist/resources/sprite/entity/green_circle.png | Bin 0 -> 1776 bytes dist/resources/sprite/entity/red_circle.png | Bin 0 -> 1844 bytes dist/resources/sprite/entity/simple_circle.png | Bin 1776 -> 0 bytes 5 files changed, 17 insertions(+) create mode 100644 dist/resources/entity/green_circle.json create mode 100644 dist/resources/entity/red_circle.json create mode 100644 dist/resources/sprite/entity/green_circle.png create mode 100644 dist/resources/sprite/entity/red_circle.png delete mode 100644 dist/resources/sprite/entity/simple_circle.png (limited to 'dist/resources') 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/green_circle.png b/dist/resources/sprite/entity/green_circle.png new file mode 100644 index 0000000..71cdadb Binary files /dev/null and b/dist/resources/sprite/entity/green_circle.png 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 Binary files /dev/null and b/dist/resources/sprite/entity/red_circle.png differ diff --git a/dist/resources/sprite/entity/simple_circle.png b/dist/resources/sprite/entity/simple_circle.png deleted file mode 100644 index 71cdadb..0000000 Binary files a/dist/resources/sprite/entity/simple_circle.png and /dev/null differ -- cgit v1.2.3