Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Mine Item #505

Merged
merged 1 commit into from
Dec 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/map/elements/item/crate/crate.element.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ builtin: !Crate
atlas: ./crate.atlas.yaml

breaking_atlas: ./crate_breaking.atlas.yaml
breaking_anim_length: 25
breaking_anim_frames: 25
breaking_anim_fps: 30

# TODO: Better break sound
Expand Down
Binary file added assets/map/elements/item/mine/arm.ogg
Binary file not shown.
4 changes: 4 additions & 0 deletions assets/map/elements/item/mine/explosion.atlas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
image: ./explosion.png
tile_size: [144, 112]
rows: 1
columns: 13
Binary file added assets/map/elements/item/mine/explosion.ogg
Binary file not shown.
Binary file added assets/map/elements/item/mine/explosion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/map/elements/item/mine/mine.atlas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
image: ./mine.png
tile_size: [33, 35]
rows: 1
columns: 13
24 changes: 24 additions & 0 deletions assets/map/elements/item/mine/mine.element.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Mine
category: Weapons
builtin: !Mine
throw_velocity: [7, 5]

atlas: ./mine.atlas.yaml

explosion_atlas: ./explosion.atlas.yaml
explosion_anim_frames: 12
explosion_anim_fps: 8
explosion_sound: ./explosion.ogg

arm_sound: ./arm.ogg
armed_anim_start: 1
armed_anim_end: 13
armed_anim_fps: 15

damage_region_size: [60, 60]
damage_region_lifetime: 0.6

arm_delay: 0.5
body_size: [34, 36]
body_offset: [0, 0]
grab_offset: [14, -2]
Binary file added assets/map/elements/item/mine/mine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions assets/map/elements/item/mines/mines.element.yaml

This file was deleted.

Loading