aboutsummaryrefslogtreecommitdiff
path: root/demo/assets/sandbox-groups.scm
blob: 1e9aca9eebff75b5e1294cd6b33f1b0f1f17bdc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)))))