Block definitions

This commit is contained in:
2022-08-03 12:31:18 +02:00
parent 3a5529c026
commit 34aba8b35a
5 changed files with 42 additions and 19 deletions

22
Source/Blocks.h Normal file
View File

@ -0,0 +1,22 @@
#pragma once
#include "SDL/SDL.h"
#define BlocksetNum 5
#define BlockSize 32
struct Block {
int Id;
char Name[63];
SDL_Rect Img;
int Light;
bool Falling;
bool Fluid;
};
struct Block Blocks[BlocksetNum] = {
{ 0, "Air", {}, 0, false, false },
{ 1, "White", {}, 0, false, false },
{ 2, "Black", {}, 0, false, false },
{ 3, "Gray", {}, 0, false, false },
{ 4, "Green", {}, 0, false, false },
};