forked from MSU-CSE491/cse_491_fall_2023
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enemies can be killed Upon player death, game ends Upon boss death, player gains ability to traverse water Refactoring for SwitchGrid and related functions Added properties to agents missing those
- Loading branch information
Showing
8 changed files
with
132 additions
and
62 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
# Load the actual world | ||
loadWorld("assets/grids/second_floor.grid") | ||
|
||
# Place items | ||
# Load the agents for this world | ||
loadAgents("assets/second_floor_input.json") | ||
|
||
# Reset player position | ||
print(player) | ||
setAgentPosition(player,0,0) | ||
|
||
# Place items for second floor | ||
addItem("Hammer","H",20,43,"Damage",35) | ||
addItem("Dagger","D",12,1,"Damage",10) | ||
addItem("Leather Armor","+",1,6,"Armor",6) | ||
|
||
# Set link to next world | ||
next_world = "assets/scripts/g4_world_3_load.ws" | ||
|
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,12 @@ | ||
# Load the actual world | ||
loadWorld("assets/grids/third_floor.grid") | ||
|
||
# Load the agents for this world | ||
loadAgents("assets/third_floor_input.json") | ||
|
||
# Reset player position | ||
setAgentPosition(player,0,0) | ||
|
||
# Set game end indicator | ||
next_world = "GAME_END" | ||
|
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