aboutsummaryrefslogtreecommitdiff
path: root/demo/assets/sandbox-groups.scm
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2026-04-08 00:30:11 +0100
committerGene Pasquet <dev@etenil.net>2026-04-08 00:30:11 +0100
commitf8cc4a748bb8b6431a1023a876745b1bb473eb19 (patch)
treeaf708ac1138ee17d35d9b1ba46ec8b56acaccedb /demo/assets/sandbox-groups.scm
parentcfddc2f180552afdb080968f847018c5a223b41a (diff)
Support entity groups
Diffstat (limited to 'demo/assets/sandbox-groups.scm')
-rw-r--r--demo/assets/sandbox-groups.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/demo/assets/sandbox-groups.scm b/demo/assets/sandbox-groups.scm
new file mode 100644
index 0000000..1e9aca9
--- /dev/null
+++ b/demo/assets/sandbox-groups.scm
@@ -0,0 +1,30 @@
+((mixins)
+ (prefabs)
+ (group-prefabs
+ (shelf-platform
+ #:pose-only-origin? #t
+ #:static-parts? #t
+ #:type-members shelf-segment
+ #:parts
+ ((#:local-x 0 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)
+ (#:local-x 16 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)
+ (#:local-x 32 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)
+ (#:local-x 48 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)
+ (#:local-x 64 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)
+ (#:local-x 80 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)
+ (#:local-x 96 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)
+ (#:local-x 112 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)
+ (#:local-x 128 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)
+ (#:local-x 144 #:local-y 0 #:width 16 #:height 16 #:tile-id 20)))
+ (collision-raft
+ ;; Match full AABB so tile physics (runs on the origin) lands the raft on the floor,
+ ;; not a 0×0 point at the top-left (which overlaps the floor row).
+ #:origin-width 48
+ #:origin-height 16
+ #:pose-only-origin? #f
+ #:static-parts? #t
+ #:type-members raft-segment
+ #:parts
+ ((#:local-x 0 #:local-y 0 #:width 16 #:height 16 #:tile-id 21)
+ (#:local-x 16 #:local-y 0 #:width 16 #:height 16 #:tile-id 21)
+ (#:local-x 32 #:local-y 0 #:width 16 #:height 16 #:tile-id 21)))))