diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-14 15:05:03 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-14 15:05:03 +0300 |
| commit | 7fd2c1ca96f2972bc53a4a89cb6db582c4f6e2e1 (patch) | |
| tree | 17b935a1b7b38834d5cb9347c8a06ea30054a345 /map.c | |
| parent | c73a11860175a830c9b04967eac56dbd8221f311 (diff) | |
Rename player into start
Diffstat (limited to 'map.c')
| -rw-r--r-- | map.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -94,7 +94,7 @@ Map rbt_maze_map(size_t width, size_t height, unsigned int seed) { return map; } -void draw_map(Map map, int width, int height, Position player_pos) { +void draw_map(Map map, int width, int height, Position start) { // Draw field char c; // The char for the current tile for (int i = 0; i < height; i++) { @@ -121,9 +121,9 @@ void draw_map(Map map, int width, int height, Position player_pos) { } } - // Draw the player - attron(COLOR_PAIR(PLAYER_COLOR)); - mvaddch(player_pos.y + DRAW_MAP_OFFSET_Y, player_pos.x + DRAW_MAP_OFFSET_X, PLAYER_CHAR); - attroff(COLOR_PAIR(PLAYER_COLOR)); + // Draw the start + attron(COLOR_PAIR(START_COLOR)); + mvaddch(start.y + DRAW_MAP_OFFSET_Y, start.x + DRAW_MAP_OFFSET_X, START_CHAR); + attroff(COLOR_PAIR(START_COLOR)); } |
