From b2ba681fb514a0a0c9b25aaf15a2c70811887b1d Mon Sep 17 00:00:00 2001 From: Lukas Kammerhofer Date: Thu, 7 May 2026 19:06:36 +0200 Subject: [PATCH 1/6] initial commit --- src/map.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/map.py diff --git a/src/map.py b/src/map.py new file mode 100644 index 0000000..e69de29 From bdd633ff8527e7b703923089ac2db3a7fd244884 Mon Sep 17 00:00:00 2001 From: Lukas Kammerhofer Date: Thu, 7 May 2026 19:13:11 +0200 Subject: [PATCH 2/6] defined colors and tile/screen size --- src/map.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/map.py b/src/map.py index e69de29..6a2731f 100644 --- a/src/map.py +++ b/src/map.py @@ -0,0 +1,16 @@ +import pygame + +tile_size = 30 +screen_w = 1800 +screen_h = 900 + +color_wall = (30, 20, 40) # black like +color_room = (75, 40, 55) # dark red-violet +color_hall = (35, 65, 45) # dark green +color_door = (40, 90, 110) # dark blue +color_void = (10, 10, 15) # a little more black +color_text = (220, 180, 210) # rose +color_border = (55, 35, 70) # dark violet + + + From cc06400c56eead5f09c28aaa77057b279a8d3376 Mon Sep 17 00:00:00 2001 From: Lukas Kammerhofer Date: Thu, 7 May 2026 19:25:05 +0200 Subject: [PATCH 3/6] Map-Start, safe commit --- src/map.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map.py b/src/map.py index 6a2731f..558c4f4 100644 --- a/src/map.py +++ b/src/map.py @@ -13,4 +13,8 @@ color_text = (220, 180, 210) # rose color_border = (55, 35, 70) # dark violet +class Map: + def __init__(self): + self.map = [ + ] From c8430ac7f4be955bb28871c69a575128d8e101f6 Mon Sep 17 00:00:00 2001 From: Lukas Kammerhofer Date: Thu, 7 May 2026 19:33:12 +0200 Subject: [PATCH 4/6] map basic tile structure --- src/map.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/map.py b/src/map.py index 558c4f4..9324d8e 100644 --- a/src/map.py +++ b/src/map.py @@ -16,5 +16,22 @@ color_border = (55, 35, 70) # dark violet class Map: def __init__(self): self.map = [ - + "WWWWWWWWWWWWWWWWWGGWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WRRRRRRRRRRRRRRRWGGWRRRRRRRRRRRRRRRWRRRRRRRRRRRRRRRW" + "WWWWWWWWWWWWWTTWWGGWWWWWWWWWWWWWTTWWWTTWWWWWWWWWWWWW" + "WGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGW" + "WGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGW" + "WGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGW" + "WGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGW" + "WGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGW" + "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW" ] From 884cb153e89f86f0b7513cb25782ce54b2b61476 Mon Sep 17 00:00:00 2001 From: Lukas Kammerhofer Date: Thu, 7 May 2026 19:44:40 +0200 Subject: [PATCH 5/6] add room description --- src/map.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/map.py b/src/map.py index 9324d8e..a2ee5a8 100644 --- a/src/map.py +++ b/src/map.py @@ -35,3 +35,11 @@ class Map: "WGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGW" "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW" ] + + self.room_decription = [ + (8, 3, "Room 102"), + (27, 3, "Room 103"), + (43, 3, "Room 105") + ] + + From f67f349a5e3e826ce53b3739fd4767979c65a5f3 Mon Sep 17 00:00:00 2001 From: Lukas Kammerhofer Date: Thu, 7 May 2026 19:48:55 +0200 Subject: [PATCH 6/6] function:get_tile - check if in map --- src/map.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/map.py b/src/map.py index a2ee5a8..d313b41 100644 --- a/src/map.py +++ b/src/map.py @@ -42,4 +42,9 @@ class Map: (43, 3, "Room 105") ] + def get_tile(self, column: int, row: int): + if 0 <= row < len(self.map) and 0 <= column < len(self.map[row]): + return self.map[row][column] + return "W" +