experimental cliffs (#283)

This commit is contained in:
Ed
2024-06-27 14:04:57 +03:00
committed by GitHub
parent fa86f705aa
commit 798539899d
4 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
- type: entity
parent: BaseStructure
id: CP14Cliff
name: cliff
description: Severe unevenness of the natural landscape.
components:
- type: Sprite
drawdepth: WallTops
sprite: _CP14/Structures/Walls/Natural/cliffs.rsi
state: cliff
- type: Icon
sprite: _CP14/Structures/Walls/Natural/cliffs.rsi
state: cliff
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "0.49,0.49,-0.49,0.25"
density: 1000
mask:
- TableMask
layer:
- TableLayer
- type: Climbable
- type: entity
parent: CP14Cliff
id: CP14CliffCorner
components:
- type: Sprite
drawdepth: WallTops
sprite: _CP14/Structures/Walls/Natural/cliffs.rsi
state: corner
- type: Icon
sprite: _CP14/Structures/Walls/Natural/cliffs.rsi
state: corner
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.49,0.49,-0.25,0.25"
density: 1000
mask:
- TableMask
layer:
- TableLayer

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

View File

@@ -0,0 +1,19 @@
{
"version": 1,
"license": "All rights reserved for the CrystallPunk14 project only",
"copyright": "By TheShuEd(github) for CrystallPunk14",
"size": {
"x": 32,
"y": 96
},
"states": [
{
"name": "cliff",
"directions": 4
},
{
"name": "corner",
"directions": 4
}
]
}