Add information message
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include <SDL2/SDL2_framerate.h>
|
#include <SDL2/SDL2_framerate.h>
|
||||||
|
#include <SDL2/SDL2_gfxPrimitives.h>
|
||||||
|
|
||||||
#include "grid.h"
|
#include "grid.h"
|
||||||
|
|
||||||
|
|||||||
@@ -160,6 +160,11 @@ bool Game_start(SDL_Renderer *renderer, int w, int h)
|
|||||||
// Render grid
|
// Render grid
|
||||||
Grid_render(&grid, renderer);
|
Grid_render(&grid, renderer);
|
||||||
|
|
||||||
|
// Show message
|
||||||
|
stringRGBA(renderer, grid.rect.x + grid.xCells, grid.rect.y - 20,
|
||||||
|
"This is a falling brick < Press RIGTH and LEFT to move >",
|
||||||
|
COLOR_LIGHT_GRAY.r, COLOR_LIGHT_GRAY.g, COLOR_LIGHT_GRAY.b, COLOR_LIGHT_GRAY.a);
|
||||||
|
|
||||||
// Update screen
|
// Update screen
|
||||||
SDL_RenderPresent(renderer);
|
SDL_RenderPresent(renderer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user