mirror of
https://gitlab.com/octospacc/BloccSpacc
synced 2025-06-05 21:39:15 +02:00
Block definitions
This commit is contained in:
22
Source/Blocks.h
Normal file
22
Source/Blocks.h
Normal 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 },
|
||||
};
|
Reference in New Issue
Block a user