-
Notifications
You must be signed in to change notification settings - Fork 125
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
feat: Reimplement Jellyfish #895
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
312863e
add static togglable jellyfish
nelson137 b264434
explode flappy when jellyfish is dropped while mounted
nelson137 4c72e1a
move flappy jellyfish behavior into its module
nelson137 f566668
minor fixes
nelson137 8e5d27c
fix: panic in jellyfish drop handler
nelson137 3eac72f
add drive player state for jellyfish
nelson137 cfc1400
use player controls to move flappy jellyfish
nelson137 fe09592
rework jellyfish status
nelson137 581e2b6
move flappy session setup into its module
nelson137 7bbc6d5
remove unnecessary component
nelson137 7f0e8c7
implement flappy explosion
nelson137 7366000
simplify meta handling
nelson137 e6556a9
reimpl killing flappy with a marker component
nelson137 f8b285c
kill flappy when outside the map
nelson137 50b90dd
disallow using jellyfish while not idle
nelson137 1a9b441
explode flappy on collision with player
nelson137 a0f7941
cleanup and add docs
nelson137 17abbdb
implement limited ammo for jellyfish
nelson137 94ba923
explode flappies when the driver dies
nelson137 b134d06
cleanup asset helper
nelson137 421ea12
rename driving jellyfish player state to be more explicit
nelson137 b4a5207
setup dev level 1
nelson137 e92ec77
revert dev level 1 changes
nelson137 a053c75
fix: map element entry
nelson137 572d66c
grab while driving jellyfish despawns the flappy
nelson137 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
assets/elements/item/jellyfish/flappy_jellyfish/explosion.atlas.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
image: ./explosion.png | ||
tile_size: [144, 112] | ||
rows: 1 | ||
columns: 11 |
Binary file not shown.
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
4
assets/elements/item/jellyfish/flappy_jellyfish/flappy_jellyfish.atlas.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
image: ./flappy_jellyfish.png | ||
tile_size: [34, 46] | ||
rows: 1 | ||
columns: 3 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions
17
assets/elements/item/jellyfish/flappy_jellyfish/flappy_jellyfish.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
atlas: ./flappy_jellyfish.atlas.yaml | ||
body_size: [34, 46] | ||
start_frame: 0 | ||
end_frame: 2 | ||
fps: 2 | ||
|
||
spawn_offset: [64, 64] | ||
|
||
explosion_atlas: ./explosion.atlas.yaml | ||
explosion_lifetime: 1.0 | ||
explosion_frames: 12 | ||
explosion_fps: 8 | ||
explosion_volume: 0.1 | ||
explosion_sound: ./explosion.ogg | ||
|
||
damage_region_size: [60, 60] | ||
damage_region_lifetime: 0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
image: ./jellyfish.png | ||
tile_size: [30, 39] | ||
rows: 1 | ||
columns: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: Jellyfish | ||
category: Weapons | ||
data: jellyfish.yaml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
atlas: ./jellyfish.atlas.yaml | ||
body_size: [30, 39] | ||
throw_velocity: 6 | ||
angular_velocity: 0.1 | ||
fin_anim: grab_2 | ||
grab_offset: [0, 0] | ||
|
||
max_ammo: 1 | ||
|
||
flappy_meta: ./flappy_jellyfish/flappy_jellyfish.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realized that I think the second frame of this is meant for use as a hat, and it's probably supposed to be kind of crooked on the fishes head. So we should be able to make it look right by updating the player attachment component with the proper offset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh that makes sense. I thought the same and got it up on top of the player's head with a
PlayerBodyAttachment
but didn't think to move it over. I'll try that and see how good it looks.