From 091ff11b6d790e5f0d124d9bfc087f40d6a30173 Mon Sep 17 00:00:00 2001 From: staubsauger Date: Sat, 17 Aug 2024 14:56:17 +0200 Subject: [PATCH] nothing special, the player is red --- game/world_tools.py | 2 +- main.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/game/world_tools.py b/game/world_tools.py index 10b1a68..7677eb6 100644 --- a/game/world_tools.py +++ b/game/world_tools.py @@ -50,7 +50,7 @@ def new_world() -> Registry: world.new_entity( components={ Position: player_pos, - Graphic: Graphic(ord('@')), + Graphic: Graphic(ch=ord('@'), fg=(255, 0, 0)), Gold: 0 }, tags=[IsActor, IsPlayer] diff --git a/main.py b/main.py index 66accc5..72e8e9e 100755 --- a/main.py +++ b/main.py @@ -21,7 +21,8 @@ def main() -> None: tileset2 = tcod.tileset.load_tilesheet( "Oryx/oryx_roguelike_2.0/Monsters.png", columns=19, rows=26, charmap=tcod.tileset.CHARMAP_CP437 ) - tileset.set_tile(64, tileset2.get_tile(0)) + + tileset.set_tile(64, tileset2.get_tile(9786)) #tcod.tileset.procedural_block_elements(tileset=tileset) g.screens = [MainMenu()]