summaryrefslogtreecommitdiffstats
path: root/static/resources/entity
diff options
context:
space:
mode:
Diffstat (limited to 'static/resources/entity')
-rw-r--r--static/resources/entity/green_circle.json3
-rw-r--r--static/resources/entity/red_circle.json10
-rw-r--r--static/resources/entity/red_ellipse.json3
-rw-r--r--static/resources/entity/square.json23
-rw-r--r--static/resources/entity/water.json12
5 files changed, 51 insertions, 0 deletions
diff --git a/static/resources/entity/green_circle.json b/static/resources/entity/green_circle.json
new file mode 100644
index 0000000..14952b2
--- /dev/null
+++ b/static/resources/entity/green_circle.json
@@ -0,0 +1,3 @@
+{
+ "sprite": "green_circle"
+}
diff --git a/static/resources/entity/red_circle.json b/static/resources/entity/red_circle.json
new file mode 100644
index 0000000..65af16a
--- /dev/null
+++ b/static/resources/entity/red_circle.json
@@ -0,0 +1,10 @@
+{
+ "sprite": "red_circle",
+ "collision": [
+ {
+ "type": "circle",
+ "center": [0, 0],
+ "radius": 0.46875
+ }
+ ]
+}
diff --git a/static/resources/entity/red_ellipse.json b/static/resources/entity/red_ellipse.json
new file mode 100644
index 0000000..e8ce5e6
--- /dev/null
+++ b/static/resources/entity/red_ellipse.json
@@ -0,0 +1,3 @@
+{
+ "sprite": "red_ellipse"
+}
diff --git a/static/resources/entity/square.json b/static/resources/entity/square.json
new file mode 100644
index 0000000..643cfb6
--- /dev/null
+++ b/static/resources/entity/square.json
@@ -0,0 +1,23 @@
+{
+ "sprite": "square",
+ "collision": [
+ {
+ "type": "polygon",
+ "vertices": [
+ [-0.46875, -0.46875],
+ [-0.46875, 0.46875],
+ [0.46875, 0.46875],
+ [0.46875, -0.46875]
+ ]
+ }
+ ],
+ "frames": 4,
+ "animation": {
+ "sequence": [
+ [500, 0],
+ [500, 1],
+ [500, 2],
+ [500, 3]
+ ]
+ }
+}
diff --git a/static/resources/entity/water.json b/static/resources/entity/water.json
new file mode 100644
index 0000000..79c7780
--- /dev/null
+++ b/static/resources/entity/water.json
@@ -0,0 +1,12 @@
+{
+ "sprite": "water",
+ "frames": 4,
+ "animation": {
+ "sequence": [
+ [500, 0],
+ [500, 1],
+ [500, 2],
+ [500, 3]
+ ]
+ }
+}