Add basic teleportation and portals (#269)

* Add basic teleportation and portals

* Address PJB's feedback and minor cleanup
This commit is contained in:
metalgearsloth
2019-07-19 18:09:33 +10:00
committed by Pieter-Jan Briers
parent 52a6d9ff43
commit 1f320eccd7
22 changed files with 825 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -65,6 +65,7 @@
- type: SpeciesVisualizer2D
- type: CombatMode
- type: Teleportable
- type: entity
id: MobObserver

View File

@@ -0,0 +1,62 @@
- type: entity
name: "BaseHandTele"
parent: BaseItem
id: BaseHandTele
components:
- type: Sprite
netsync: false
sprite: Objects/hand_tele.rsi
state: ready
- type: Icon
sprite: Objects/hand_tele.rsi
state: ready
- type: ItemTeleporter
teleporter_type: Random
- type: Item
Size: 12
sprite: Objects/hand_tele.rsi
- type: Sound
- type: Appearance
visuals:
- type: HandTeleporterVisualizer2D
- type: entity
name: "Hand Teleporter - Random"
parent: BaseHandTele
id: RandHandTele
description: "Travel to a random spot in range"
components:
- type: ItemTeleporter
teleporter_type: Random
range: 15
cooldown: 5
charge_time: 1
- type: entity
name: "Hand Teleporter - Direct"
parent: BaseHandTele
id: DirHandTele
description: "Travel to a specific spot in a short range"
components:
- type: ItemTeleporter
teleporter_type: Directed
range: 5
cooldown: 2
charge_time: 0.2
- type: entity
name: Portal
id: Portal
description: "Portal to another location"
components:
- type: Collidable
- type: Portal
- type: BoundingBox
aabb: "-0.25,-0.25,0.25,0.25"
- type: Sprite
netsync: false
sprite: "Effects/portal.rsi"
state: portal-pending
- type: Appearance
visuals:
- type: PortalVisualizer2D

View File

@@ -0,0 +1,51 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/discordia-space/CEV-Eris/raw/237d8f7894617007d75c71d5d9feb4354c78debd/icons/obj/stationobjs.dmi",
"states": [
{
"name": "portal-pending",
"directions": 1,
"delays": [[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]]
},
{
"name": "portal-unconnected",
"directions": 1,
"delays": [[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -0,0 +1,33 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/discordia-space/CEV-Eris/raw/237d8f7894617007d75c71d5d9feb4354c78debd/icons/obj/device.dmi",
"states": [
{
"name": "charging",
"directions": 1,
"delays": [
[
1.0,
1.0,
1.0,
1.0
]
]
},
{
"name": "ready",
"directions": 1,
"delays": [
[
5.0,
5.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB