Config tweaks
This commit is contained in:
parent
fc11ea9dbd
commit
4af097b2ae
16
README.md
16
README.md
@ -4,9 +4,25 @@
|
|||||||
|
|
||||||
"Fun value", inspired by Undertale, activates different secrets in different runs.
|
"Fun value", inspired by Undertale, activates different secrets in different runs.
|
||||||
|
|
||||||
|
Stepwise needs a genre/setting. Some options are:
|
||||||
|
|
||||||
|
* Fantasy
|
||||||
|
* SciFi
|
||||||
|
* Nuclear Bunker
|
||||||
|
* Indiana Jones
|
||||||
|
* Post-Apocalypse
|
||||||
|
* Curses and Blessings (setting)
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
https://python-tcod.readthedocs.io/en/latest/
|
https://python-tcod.readthedocs.io/en/latest/
|
||||||
|
|
||||||
https://rogueliketutorials.com/
|
https://rogueliketutorials.com/
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python3 -m venv venv
|
||||||
|
./venv/bin/tcod
|
||||||
|
```
|
||||||
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
home = /usr/bin
|
|
||||||
include-system-site-packages = false
|
|
||||||
version = 3.11.2
|
|
||||||
executable = /usr/bin/python3.11
|
|
||||||
command = /usr/bin/python -m venv /home/kruse/Repo/Stepwise
|
|
@ -1,4 +1,4 @@
|
|||||||
#!./bin/python
|
#!venv/bin/python
|
||||||
import tcod
|
import tcod
|
||||||
|
|
||||||
from engine import Engine
|
from engine import Engine
|
||||||
|
@ -18,7 +18,7 @@ def make_corridor(start: Tuple[int, int], end: Tuple[int, int]) -> Iterator[Tupl
|
|||||||
corner_x, corner_y = x2, y1
|
corner_x, corner_y = x2, y1
|
||||||
else:
|
else:
|
||||||
corner_x, corner_y = x1, y2
|
corner_x, corner_y = x1, y2
|
||||||
|
|
||||||
for x, y in tcod.los.bresenham((x1, y1), (corner_x, corner_y)).tolist():
|
for x, y in tcod.los.bresenham((x1, y1), (corner_x, corner_y)).tolist():
|
||||||
yield x, y
|
yield x, y
|
||||||
for x, y in tcod.los.bresenham((corner_x, corner_y), (x2, y2)).tolist():
|
for x, y in tcod.los.bresenham((corner_x, corner_y), (x2, y2)).tolist():
|
||||||
@ -68,7 +68,7 @@ def generate_floor_map(map_width: int, map_height: int, room_width_max: int, roo
|
|||||||
|
|
||||||
if any(new_room.intersects(other_room) for other_room in rooms):
|
if any(new_room.intersects(other_room) for other_room in rooms):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
floor_map.tiles[new_room.inner] = tile_types.floor
|
floor_map.tiles[new_room.inner] = tile_types.floor
|
||||||
|
|
||||||
if len(rooms) == 0:
|
if len(rooms) == 0:
|
||||||
@ -79,5 +79,5 @@ def generate_floor_map(map_width: int, map_height: int, room_width_max: int, roo
|
|||||||
floor_map.tiles[x, y] = tile_types.floor
|
floor_map.tiles[x, y] = tile_types.floor
|
||||||
|
|
||||||
rooms.append(new_room)
|
rooms.append(new_room)
|
||||||
|
|
||||||
return floor_map
|
return floor_map
|
Loading…
x
Reference in New Issue
Block a user