Skip to content
Open
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
8 changes: 4 additions & 4 deletions content/tutorials/tcod/v2/part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ graphic_dt = np.dtype(
# Tile struct used for statically defined tile data.
tile_dt = np.dtype(
[
("walkable", np.bool), # True if this tile can be walked over.
("transparent", np.bool), # True if this tile doesn't block FOV.
("walkable", bool), # True if this tile can be walked over.
("transparent", bool), # True if this tile doesn't block FOV.
("dark", graphic_dt), # Graphics for when this tile is not in FOV.
]
)
Expand Down Expand Up @@ -467,8 +467,8 @@ We take this new data type and use it in the next bit:
# Tile struct used for statically defined tile data.
tile_dt = np.dtype(
[
("walkable", np.bool), # True if this tile can be walked over.
("transparent", np.bool), # True if this tile doesn't block FOV.
("walkable", bool), # True if this tile can be walked over.
("transparent", bool), # True if this tile doesn't block FOV.
("dark", graphic_dt), # Graphics for when this tile is not in FOV.
]
)
Expand Down
12 changes: 6 additions & 6 deletions content/tutorials/tcod/v2/part-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ For that, we'll want a new `graphic_dt` in the `tile_dt` type, called `light`. W
{{< highlight diff >}}
tile_dt = np.dtype(
[
("walkable", np.bool), # True if this tile can be walked over.
("transparent", np.bool), # True if this tile doesn't block FOV.
("walkable", bool), # True if this tile can be walked over.
("transparent", bool), # True if this tile doesn't block FOV.
("dark", graphic_dt), # Graphics for when this tile is not in FOV.
+ ("light", graphic_dt), # Graphics for when the tile is in FOV.
]
Expand Down Expand Up @@ -99,8 +99,8 @@ wall = new_tile(
{{< original-tab >}}
<pre>tile_dt = np.dtype(
[
("walkable", np.bool), # True if this tile can be walked over.
("transparent", np.bool), # True if this tile doesn't block FOV.
("walkable", bool), # True if this tile can be walked over.
("transparent", bool), # True if this tile doesn't block FOV.
("dark", graphic_dt), # Graphics for when this tile is not in FOV.
<span class="new-text">("light", graphic_dt), # Graphics for when the tile is in FOV.</span>
]
Expand Down Expand Up @@ -144,8 +144,8 @@ Let's go through the new additions.
```py3
tile_dt = np.dtype(
[
("walkable", np.bool), # True if this tile can be walked over.
("transparent", np.bool), # True if this tile doesn't block FOV.
("walkable", bool), # True if this tile can be walked over.
("transparent", bool), # True if this tile doesn't block FOV.
("dark", graphic_dt), # Graphics for when this tile is not in FOV.
("light", graphic_dt), # Graphics for when the tile is in FOV.
]
Expand Down