From 241127af96764067a0c02480387746144dbbe863 Mon Sep 17 00:00:00 2001 From: xolatile Date: Fri, 24 Nov 2023 10:51:04 -0500 Subject: [PATCH] A bit of better code... --- chapter/chapter_6.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chapter/chapter_6.c b/chapter/chapter_6.c index 4459d80..3a643e1 100644 --- a/chapter/chapter_6.c +++ b/chapter/chapter_6.c @@ -93,6 +93,9 @@ procedure_t play_game (procedure_t) { rectangle_fill, stone_floor, 5, 9, 2, 4, rectangle_line, stone_wall, 5, 9, 2, 4, create_bots, goblin, 3, 0, 0, 0, + create_bots, hob_goblin, 3, 0, 0, 0, + create_bots, orc, 3, 0, 0, 0, + create_bots, ogre, 3, 0, 0, 0, NULL); player->attributes [0]->points->current = 7; @@ -120,11 +123,6 @@ procedure_t play_game (procedure_t) { game_render_world (world, 0, 0, game_screen_offset, curses_screen_height); - game_render_bot (goblin);hob_goblin->x=1;hob_goblin->y=1; - game_render_bot (hob_goblin);orc->x=2;orc->y=2; - game_render_bot (orc);ogre->x=3;ogre->y=3; - game_render_bot (ogre); - game_render_player (player); for (number_t attribute = 0; attribute < player->attribute_count; ++attribute) {