Airlocks rewritten to use appearances, use less ugly sprite from Eris.

This commit is contained in:
Pieter-Jan Briers
2019-03-16 20:40:07 +01:00
parent 1b3d3debc1
commit 84aa369809
17 changed files with 86 additions and 30 deletions

View File

@@ -166,7 +166,7 @@ entities:
pos: 6,-4
rot: -1.570796 rad
type: Transform
- type: DoorContent
- type: airlock
components:
- grid: 0
pos: -5.5,-4.5
@@ -238,7 +238,7 @@ entities:
pos: -2.5,-4.5
rot: -1.570796 rad
type: Transform
- type: DoorContent
- type: airlock
components:
- grid: 0
pos: 4.5,-4.5

View File

@@ -1,23 +1,24 @@
- type: entity
id: DoorContent
name: Actual door
description: It opens, it closes!
id: airlock
name: Airlock
description: It opens, it closes, and maybe crushes you.
components:
- type: Clickable
- type: Sprite
drawdepth: Mobs # They're on the same layer as mobs, perspective.
texture: Objects/door_ew.png
sprite: Buildings/airlock_basic.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
- type: Icon
texture: Objects/door_ew.png
sprite: Buildings/airlock_basic.rsi
state: closed
- type: BoundingBox
aabb: "-2,-0.75,-1,0.75"
sizeX: 1.9
offsetY: 1.5
- type: Collidable
- type: Door
placement:
snap:
- Wall
- type: Appearance
visuals:
- type: AirlockVisualizer2D

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

View File

@@ -0,0 +1 @@
{"version": 1, "size": {"x": 32, "y": 32}, "license": "CC-BY-SA-3.0", "copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/2b969adc2dfd3e9621bf3597c5cbffeb3ac8c9f0/icons/obj/doors/doorint.dmi", "states": [{"name": "closed", "directions": 1, "delays": [[1.0]]}, {"name": "closing", "directions": 1, "delays": [[0.2, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.3]]}, {"name": "deny", "directions": 1, "delays": [[0.1, 0.1, 0.1]]}, {"name": "locked", "directions": 1, "delays": [[1.0]]}, {"name": "o_closing", "directions": 1, "delays": [[0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.4]]}, {"name": "o_opening", "directions": 1, "delays": [[0.2, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.3]]}, {"name": "open", "directions": 1, "delays": [[1.0]]}, {"name": "opening", "directions": 1, "delays": [[0.2, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.3]]}, {"name": "spark", "directions": 1, "delays": [[0.1, 0.1, 0.1, 0.1, 0.1, 0.1]]}]}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB