Skip to content

Commit

Permalink
more fixes; water
Browse files Browse the repository at this point in the history
  • Loading branch information
budnyric committed Dec 6, 2023
1 parent 0e43d1f commit 6e01e8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions assets/scripts/g4_world_load.ws
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ floor_id = addCellType("floor", "Floor that you can easily walk over.", " ")
flag_id = addCellType("flag", "Goal flag for a game end state", "g","Goal")
wall_id = addCellType("wall", "Impenetrable wall that you must find a way around.", "#", CELL_WALL)
hidden_warp_id = addCellType("hidden_warp", "Hidden warp tile that warps to floor 3.", "u","Warp")
water_id = addCellType("water","Water that distinguishes fire.","w",CELL_WATER)

# Load the actual world
loadWorld("assets/grids/group4_maze.grid")
Expand Down
2 changes: 0 additions & 2 deletions source/Worlds/SecondWorld.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ class SecondWorld : public cse491::WorldBase {
agent.RemoveItem(item_drop.GetID());
item_drop.SetGrid();
item_drop.SetPosition(pos);
// main_grid.At(pos) = GetCellTypeSymbol(item_drop.GetID());

agent.Notify("Dropping " + item_drop.GetName() + " onto the ground!",
"item_alert");
Expand Down Expand Up @@ -425,7 +424,6 @@ class SecondWorld : public cse491::WorldBase {

// Set the position off the grid, so it doesn't render
item_found.SetPosition(OffGrid);
main_grid.At(pos) = floor_id;
}
}
}
Expand Down

0 comments on commit 6e01e8d

Please sign in to comment.