Add more informations to titlescreen

This commit is contained in:
KikooDX 2021-04-19 01:30:10 +02:00
parent 6287fe306c
commit e075ba972c
3 changed files with 9 additions and 2 deletions

View File

@ -2,6 +2,8 @@
/* Copyright (C) 2021 KikooDX */
#pragma once
#define GAME_NAME "MTEM"
#define VERSION "3.50"
#define TILE_WIDTH 16
#define TILE_HEIGHT 16
#define TILESET_WIDTH 16

View File

@ -49,7 +49,7 @@ int main(void)
int player_return_code;
int level_pack_beaten;
enum TransitionMode transition_previous_mode;
enum GameState game_state = Playing;
enum GameState game_state = TitleScreen;
volatile int has_ticked = 1;
struct TitleScreen titlescreen = titlescreen_init();

View File

@ -2,10 +2,15 @@
/* Copyright (C) 2021 KikooDX */
#include "titlescreen.h"
#include "conf.h"
#include <gint/display.h>
void titlescreen_draw(struct TitleScreen titlescreen)
{
dprint_opt(DWIDTH / 2, DHEIGHT * 1 / 3, C_WHITE, C_NONE,
DTEXT_CENTER, DTEXT_MIDDLE, GAME_NAME);
dprint_opt(DWIDTH / 2, DHEIGHT * 2 / 3, C_WHITE, C_NONE,
DTEXT_CENTER, DTEXT_MIDDLE, "PRESS SHIFT");
DTEXT_CENTER, DTEXT_MIDDLE, "Press Shift");
dprint_opt(DWIDTH / 2, DHEIGHT - 2, C_WHITE, C_NONE,
DTEXT_CENTER, DTEXT_BOTTOM, "Game by KikooDX (2021) - " VERSION);
}