BloccSpacc/Source/Blocks.h

24 lines
426 B
C

#pragma once
#include "SDL/SDL.h"
#define BlocksetNum 5
#define BlockSize 32
#define ChunkSize 16
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 },
};