From f8cc4a748bb8b6431a1023a876745b1bb473eb19 Mon Sep 17 00:00:00 2001 From: Gene Pasquet Date: Wed, 8 Apr 2026 00:30:11 +0100 Subject: Support entity groups --- demo/assets/sandbox-groups.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 demo/assets/sandbox-groups.scm (limited to 'demo/assets/sandbox-groups.scm') 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))))) -- cgit v1.2.3