Skip to content

Implement draw_images module in gui.c #1157

Description

@perenewang

Currently, gui.c in the ui/src folder only displays the chiventure banner for the split screen image. The draw_images module contains two functions: draw_room() and draw_map. Use these two functions inside gui.c to draw the room images that change when the user moves rooms, and to draw the map which also updates as the user moves rooms. Take into account draw_room takes in a file path parameter that is for the path to the directory where the images reside. Images for rooms should always be named roomid.png. To fully implement the draw_room function in gui.c, you will need to add a image file path field to the game_t struct to be able to access the file paths for each game.

There is an open PR for this existing: #1121
This uses the branch gui/split_screen_update
In this PR, gui.c has code for the map inside of it, but you will want to replace this code with a function call to draw_map().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions