Adds weapons (#48)

* Adds weapons

- Adds melee weapons
- Adds projectile weapons
- Adds hitscan weapons (like lasers)

* Adds a separate sprite for projectile weapons
This commit is contained in:
clusterfack
2018-04-05 17:32:51 -05:00
committed by Pieter-Jan Briers
parent 63b5d83728
commit 128728bfcb
16 changed files with 329 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
- type: entity
name: "LASER"
parent: BaseItem
id: LaserItem
components:
- type: WearableAnimatedSprite
notWornSprite: gun
sprite: gun
- type: Icon
icon: gun
- type: HitscanWeapon
- type: entity
name: GUN
parent: BaseItem
id: GUNITEM
components:
- type: WearableAnimatedSprite
notWornSprite: projectileweapon
sprite: projectileweapon
- type: Icon
icon: gun
- type: ProjectileWeapon

View File

@@ -0,0 +1,17 @@
- type: entity
id: ProjectileBullet
name: ProjectileBullet
components:
- type: Transform
- type: Sprite
drawdepth: FloorPlaceable
sprites:
- projectilebullet
- type: Icon
icon: projectilebullet
- type: BoundingBox
- type: Physics
edgeslide: false
- type: Projectile
- type: Collidable
hard: false

View File

@@ -9,6 +9,7 @@
sprite: wirecutter
- type: Icon
icon: wirecutter
- type: MeleeWeapon
- type: entity
name: Screwdriver
@@ -21,6 +22,7 @@
sprite: screwdriver
- type: Icon
icon: screwdriver
- type: MeleeWeapon
- type: entity
name: Welder
@@ -33,6 +35,7 @@
sprite: welder
- type: Icon
icon: welder
- type: MeleeWeapon
- type: entity
name: Wrench
@@ -45,6 +48,7 @@
sprite: wrench
- type: Icon
icon: wrench
- type: MeleeWeapon
- type: entity
name: Crowbar
@@ -57,6 +61,7 @@
sprite: crowbar
- type: Icon
icon: crowbar
- type: MeleeWeapon
- type: entity
name: Multitool

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B