Skip to content

Commit

Permalink
Invisible Chasms (#48)
Browse files Browse the repository at this point in the history
* yuh!

* yuh!
  • Loading branch information
Aidenkrz authored Dec 22, 2024
1 parent 964f56b commit 4cdce1f
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 12 deletions.
107 changes: 107 additions & 0 deletions Resources/Prototypes/_SSS/markers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
- type: entity
id: SSSGridMarker
name: Grid marker
parent: MarkerBase
suffix: SSS
components:
- type: SuspicionGridMarker
- type: Sprite
layers:
- state: red
- sprite: Objects/Fun/toys.rsi
state: plushie_rouny

- type: entity
name: Invisible Chasm
id: FloorChasmEntityInvisible
parent: MarkerBase
placement:
mode: SnapgridCenter
snap:
- Wall
components:
- type: Sprite
layers:
- sprite: _SSS/markers.rsi
state: chasm
shader: unshaded
- type: Chasm
- type: StepTrigger
requiredTriggeredSpeed: 0
intersectRatio: 0.4
- type: Transform
anchored: true
- type: Clickable
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.5,0.5,0.5"
layer:
- WallLayer
mask:
- ItemMask
density: 1000
hard: false
- type: Tag
tags:
- HideContextMenu

- type: entity
name: Invisible Chasm
suffix: Corner
id: FloorChasmEntityInvisibleCorner
parent: FloorChasmEntityInvisible
placement:
mode: SnapgridCenter
snap:
- Wall
components:
- type: Sprite
layers:
- sprite: _SSS/markers.rsi
state: chasm_corner
shader: unshaded
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.35,0.35,0.5"
layer:
- WallLayer
mask:
- ItemMask
density: 1000
hard: false

- type: entity
name: Invisible Chasm
suffix: Side
id: FloorChasmEntityInvisibleSide
parent: FloorChasmEntityInvisible
placement:
mode: SnapgridCenter
snap:
- Wall
components:
- type: Sprite
layers:
- sprite: _SSS/markers.rsi
state: chasm_side
shader: unshaded
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.35,0.5,0.5"
layer:
- WallLayer
mask:
- ItemMask
density: 1000
hard: false
12 changes: 0 additions & 12 deletions Resources/Prototypes/_SSS/suspicion_grid_marker.yml

This file was deleted.

Binary file added Resources/Textures/_SSS/markers.rsi/chasm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Textures/_SSS/markers.rsi/chasm_corner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Textures/_SSS/markers.rsi/chasm_side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions Resources/Textures/_SSS/markers.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Space Wizards Federation, modified by Durk for SSS",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "chasm"
},
{
"name": "chasm_side"
},
{
"name": "chasm_corner"
}
]
}

0 comments on commit 4cdce1f

Please sign in to comment.