diff --git a/README.md b/README.md index f23c2fa..ab8d3c8 100644 --- a/README.md +++ b/README.md @@ -71,11 +71,11 @@ make -j$(nproc) ## 📜 Version History -### v2.1.7 - Log Realism (Latest) -- **Visual Overhaul**: Added authentic Oak Log textures with separate bark and rings. -- **Multi-Texture Rendering**: Implemented specialized draw calls for complex cube mapping. +### v2.1.8 - Forest Fidelity (Latest) +- **High-Detail Leaves**: Integrated a new high-definition leaves texture with improved alpha transparency. +- **Tree Log Fix**: Corrected the rendering pipeline to ensure trees use the multi-texture Oak Log mapping. -### v2.1.6 - Inventory Insight +### v2.1.7 - Log Realism - **Item Tooltips**: Added mouse-over identification for all inventory items. - **UI Polish**: Dynamic tooltip positioning and screen-edge detection. diff --git a/assets/leaves.png b/assets/leaves.png new file mode 100644 index 0000000..7edd901 Binary files /dev/null and b/assets/leaves.png differ diff --git a/assets/stick.png b/assets/stick.png index 3955e20..2b0baeb 100644 Binary files a/assets/stick.png and b/assets/stick.png differ diff --git a/build-linux/MorriCraft b/build-linux/MorriCraft index 7083bec..c075453 100755 Binary files a/build-linux/MorriCraft and b/build-linux/MorriCraft differ diff --git a/build-linux/assets/leaves.png b/build-linux/assets/leaves.png new file mode 100644 index 0000000..7edd901 Binary files /dev/null and b/build-linux/assets/leaves.png differ diff --git a/build-linux/assets/stick.png b/build-linux/assets/stick.png index 3955e20..2b0baeb 100644 Binary files a/build-linux/assets/stick.png and b/build-linux/assets/stick.png differ diff --git a/build-linux/assets/version.txt b/build-linux/assets/version.txt index 7d28254..14fc0d5 100644 --- a/build-linux/assets/version.txt +++ b/build-linux/assets/version.txt @@ -1 +1 @@ -v2.1.7 +v2.1.8 diff --git a/build-windows/MorriCraft.exe b/build-windows/MorriCraft.exe index d31d5f4..02aa78e 100755 Binary files a/build-windows/MorriCraft.exe and b/build-windows/MorriCraft.exe differ diff --git a/build-windows/assets/leaves.png b/build-windows/assets/leaves.png new file mode 100644 index 0000000..7edd901 Binary files /dev/null and b/build-windows/assets/leaves.png differ diff --git a/build-windows/assets/stick.png b/build-windows/assets/stick.png index 3955e20..2b0baeb 100644 Binary files a/build-windows/assets/stick.png and b/build-windows/assets/stick.png differ diff --git a/build-windows/assets/version.txt b/build-windows/assets/version.txt index 7d28254..14fc0d5 100644 --- a/build-windows/assets/version.txt +++ b/build-windows/assets/version.txt @@ -1 +1 @@ -v2.1.7 +v2.1.8 diff --git a/src/main.cpp b/src/main.cpp index b30b816..e7914cc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -824,7 +824,7 @@ int main(void) // By default, windows have minimize, maximize, and close buttons on the top bar. SetConfigFlags(FLAG_WINDOW_RESIZABLE | FLAG_VSYNC_HINT); - InitWindow(screenWidth, screenHeight, "MorriCraft v2.1.7"); + InitWindow(screenWidth, screenHeight, "MorriCraft v2.1.8"); LoadConfig(); SetExitKey(KEY_NULL); // Prevent ESC from closing the window @@ -944,8 +944,8 @@ int main(void) blockTextures[DIRT] = LoadTexture("assets/dirt.png"); blockTextures[GRASS] = LoadTexture("assets/grass.png"); blockTextures[COBBLESTONE] = LoadTexture("assets/cobblestone.png"); - blockTextures[LOG] = LoadTexture("assets/plank.png"); // Fallback for missing log.png - blockTextures[LEAVES] = blockTextures[GRASS]; // Leaves share grass texture (tinted in render loop) + blockTextures[LOG] = LoadTexture("assets/oak_log_side.png"); + blockTextures[LEAVES] = LoadTexture("assets/leaves.png"); blockTextures[PLANK] = LoadTexture("assets/plank.png"); blockTextures[SAND] = LoadTexture("assets/sand.png"); blockTextures[STONE] = LoadTexture("assets/stone.png"); @@ -1999,8 +1999,8 @@ int main(void) DrawTexturePro(titleTexture, sourceRec, destRec, origin, 0.0f, WHITE); EndMode2D(); - // Show Version Number (v2.1.7) in Red - DrawTextEx(customFont, "v2.1.7", (Vector2){ (float)currentWidth - 140, (float)currentHeight - 40 }, 22, 1.0f, RED); + // Show Version Number (v2.1.8) in Red + DrawTextEx(customFont, "v2.1.8", (Vector2){ (float)currentWidth - 140, (float)currentHeight - 40 }, 22, 1.0f, RED); // --- PLAYER NAME POPUP (IF MISSING) --- if (playerName == "") { @@ -2609,14 +2609,17 @@ int main(void) DrawGrassBlock(pos, blockTextures[GRASS].id, grassTopTexture.id, blockTextures[DIRT].id, blockTint); } } + } else if (renderType == LOG) { + for (Chunk* chunk : visibleChunks) { + for (auto& pos : chunk->renderLists[LOG]) { + DrawLog(pos, logSideTexture.id, logTopTexture.id, blockTint); + } + } } else if (renderType == CRAFTING_TABLE) { for (Chunk* chunk : visibleChunks) { for (auto& pos : chunk->renderLists[CRAFTING_TABLE]) { DrawCraftingTable(pos, craftingSideTexture.id, craftingTopTexture.id, blockTextures[DIRT].id, blockTint); } - for (auto& pos : chunk->renderLists[LOG]) { - DrawLog(pos, logSideTexture.id, logTopTexture.id, blockTint); - } } } else { rlSetTexture(blockTextures[renderType].id); diff --git a/version.txt b/version.txt index 7d28254..14fc0d5 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v2.1.7 +v2.1.8