add many feature, but have many draw bugs

This commit is contained in:
lllzebralll 2022-08-10 20:18:04 +03:00
parent 9a92d7a20c
commit 539c5f90bd
8 changed files with 355 additions and 146 deletions

View file

@ -65,6 +65,7 @@ int initialize_assets(Assets* assets) {
LOAD_SHADER("res/ui.glslv", "res/ui.glslf", "ui");
LOAD_TEXTURE("res/block.png", "block");
LOAD_TEXTURE("res/sprite.png", "sprite");
LOAD_FONT("res/font", "normal");
return 0;
@ -82,13 +83,14 @@ void setup_definitions() {
block->skyLightPassing = true;
block->obstacle = false;
block->selectable = false;
block->type = 0;
Block::blocks[block->id] = block;
// DIRT 1
block = new Block(1,2);
Block::blocks[block->id] = block;
// GRASS 2
// GRASS BLOCK2
block = new Block(2,4);
block->textureFaces[2] = 2;
block->textureFaces[3] = 1;
@ -142,6 +144,22 @@ void setup_definitions() {
block = new Block(11,13);
block->breakable = false;
Block::blocks[block->id] = block;
// GRASS 12
block = new Block(12,14);
block->drawGroup = 5;
block->lightPassing = true;
block->obstacle = false;
block->type = 2;
Block::blocks[block->id] = block;
// FLOWER 13
block = new Block(13,16);
block->drawGroup = 5;
block->lightPassing = true;
block->obstacle = false;
block->type = 2;
Block::blocks[block->id] = block;
}
#endif // DECLARATIONS_H