-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial implementation of monsters and stats (#14)
*feat: initial implementation of monsters *feat: ability to load monsters and spawns from .json assets *feat: player and monster stats *feat: stat window and map location display *feat: implemented look command *fix: fixed bug with logged out player being collidable *chore: updated dependencies *chore: updated logo
- Loading branch information
1 parent
17f0e12
commit fecbf3b
Showing
45 changed files
with
1,350 additions
and
278 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,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,30 @@ | ||
##################################################################################################### | ||
# |--------| |--------| | # | ||
#* | , | | | | # | ||
# | | | | | # | ||
# |---/----| |------/-| | # | ||
# | # | ||
# |--/-----| * | # | ||
# | | | # | ||
# | | ----# | ||
# |--------| # | ||
# * # | ||
# # | ||
# * |-------| # | ||
# | | # | ||
# |---+---| # | ||
# # | ||
# # | ||
# # | ||
# * # | ||
# # | ||
# # | ||
# # | ||
# # | ||
############################################ ######################### | ||
# * * * # | ||
# # | ||
# # | ||
# * |-/--| * # | ||
# | v| # | ||
##########################% |
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
{ | ||
"monster_details": { | ||
"id": "00000000-0000-0000-0000-000000000000", | ||
"monster_type": "Rat", | ||
"spawn_position": { | ||
"x": 0, | ||
"y": 0, | ||
"map": "none" | ||
}, | ||
"is_active": false, | ||
"current_target": null, | ||
"exp": 5, | ||
"gold": 1 | ||
}, | ||
"display_details": { | ||
"icon": "r", | ||
"colour": "Grey", | ||
"visible": true, | ||
"collidable": true | ||
}, | ||
"position": { | ||
"x": 0, | ||
"y": 0, | ||
"map": "none" | ||
}, | ||
"velocity": { | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"stats": { | ||
"current_hp": 10, | ||
"max_hp": 10, | ||
"str": 2, | ||
"dex": 20, | ||
"con": 5, | ||
"armour": 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,38 @@ | ||
{ | ||
"monster_details": { | ||
"id": "00000000-0000-0000-0000-000000000000", | ||
"monster_type": "Snake", | ||
"spawn_position": { | ||
"x": 0, | ||
"y": 0, | ||
"map": "none" | ||
}, | ||
"is_active": false, | ||
"current_target": null, | ||
"exp": 7, | ||
"gold": 2 | ||
}, | ||
"display_details": { | ||
"icon": "s", | ||
"colour": "DarkGreen", | ||
"visible": true, | ||
"collidable": true | ||
}, | ||
"position": { | ||
"x": 0, | ||
"y": 0, | ||
"map": "none" | ||
}, | ||
"velocity": { | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"stats": { | ||
"current_hp": 20, | ||
"max_hp": 20, | ||
"str": 10, | ||
"dex": 15, | ||
"con": 5, | ||
"armour": 5 | ||
} | ||
} |
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,38 @@ | ||
{ | ||
"monster_details": { | ||
"id": "00000000-0000-0000-0000-000000000000", | ||
"monster_type": "Zombie", | ||
"spawn_position": { | ||
"x": 0, | ||
"y": 0, | ||
"map": "none" | ||
}, | ||
"is_active": false, | ||
"current_target": null, | ||
"exp": 20, | ||
"gold": 5 | ||
}, | ||
"display_details": { | ||
"icon": "z", | ||
"colour": "Grey", | ||
"visible": true, | ||
"collidable": true | ||
}, | ||
"position": { | ||
"x": 0, | ||
"y": 0, | ||
"map": "none" | ||
}, | ||
"velocity": { | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"stats": { | ||
"current_hp": 50, | ||
"max_hp": 50, | ||
"str": 15, | ||
"dex": 5, | ||
"con": 20, | ||
"armour": 15 | ||
} | ||
} |
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,13 @@ | ||
{ | ||
"monsters": [ | ||
{ | ||
"monster_type": "Rat", | ||
"spawn_positions": [ | ||
{ | ||
"x": 5, | ||
"y": 2 | ||
} | ||
] | ||
} | ||
] | ||
} |
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,30 @@ | ||
{ | ||
"monsters": [ | ||
{ | ||
"monster_type": "Snake", | ||
"spawn_positions": [ | ||
{ | ||
"x": 88, | ||
"y": 3 | ||
}, | ||
{ | ||
"x": 96, | ||
"y": 5 | ||
} | ||
] | ||
}, | ||
{ | ||
"monster_type": "Zombie", | ||
"spawn_positions": [ | ||
{ | ||
"x": 50, | ||
"y": 27 | ||
}, | ||
{ | ||
"x": 65, | ||
"y": 27 | ||
} | ||
] | ||
} | ||
] | ||
} |
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.