aboutsummaryrefslogtreecommitdiff
path: root/src/screens/infoScreen.c
blob: 86c0bb39ebfccc3cf2e1fe52fdf4f771a53bec76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "infoScreen.h"
#include "game.h"

void initInfoScreen(Game * game) {
    InfoScreen * infoScreen = &game->infoScreen;

    infoScreen->goBackButton = (Rectangle){0.0, 25.0, 100.0, 50.0};
}

void updateInfoScreen(Game * game) {
    InfoScreen * infoScreen = &game->infoScreen;
    ClearBackground(RAYWHITE);

    if (GuiButton(infoScreen->goBackButton, "Back"))
        game->screenId = SCREEN_MAIN_MENU;
}

void resizeInfoScreen(Game * game, InfoScreen * infoScreen) {
}