A bit of better code...
This commit is contained in:
parent
05b8aae2cf
commit
241127af96
@ -93,6 +93,9 @@ procedure_t play_game (procedure_t) {
|
|||||||
rectangle_fill, stone_floor, 5, 9, 2, 4,
|
rectangle_fill, stone_floor, 5, 9, 2, 4,
|
||||||
rectangle_line, stone_wall, 5, 9, 2, 4,
|
rectangle_line, stone_wall, 5, 9, 2, 4,
|
||||||
create_bots, goblin, 3, 0, 0, 0,
|
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);
|
NULL);
|
||||||
|
|
||||||
player->attributes [0]->points->current = 7;
|
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_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);
|
game_render_player (player);
|
||||||
|
|
||||||
for (number_t attribute = 0; attribute < player->attribute_count; ++attribute) {
|
for (number_t attribute = 0; attribute < player->attribute_count; ++attribute) {
|
||||||
|
Loading…
Reference in New Issue
Block a user