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 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 dist/resources/entity/green_circle.json create mode 100644 dist/resources/entity/red_circle.json (limited to 'dist/resources/entity') 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] + ] + } + ] +} -- cgit v1.2.3