From f678a2b6c6f91cdaf8f90f9bf9da591e2e0c9ca5 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 29 Oct 2015 06:28:23 +1100 Subject: [PATCH] Update main screenshot to use default.png --- ClassicalSharp/2D/IsometricBlockDrawer.cs | 16 ++++++++-------- ClassicalSharp/Singleplayer/Physics.cs | 2 +- readme.md | 3 ++- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ClassicalSharp/2D/IsometricBlockDrawer.cs b/ClassicalSharp/2D/IsometricBlockDrawer.cs index d705aa0a3..9776c903a 100644 --- a/ClassicalSharp/2D/IsometricBlockDrawer.cs +++ b/ClassicalSharp/2D/IsometricBlockDrawer.cs @@ -39,12 +39,12 @@ namespace ClassicalSharp { pos = Utils.RotateY( Utils.RotateX( pos, cosX, -sinX ), cosY, -sinY ); if( info.IsSprite[block] ) { - DrawXFace( block, 0f, TileSide.Right ); - DrawZFace( block, 0f, TileSide.Back ); + XQuad( block, 0f, TileSide.Right ); + ZQuad( block, 0f, TileSide.Back ); } else { - DrawXFace( block, scale, TileSide.Left ); - DrawZFace( block, -scale, TileSide.Back ); - DrawYFace( block, scale * blockHeight, TileSide.Top ); + XQuad( block, scale, TileSide.Left ); + ZQuad( block, -scale, TileSide.Back ); + YQuad( block, scale * blockHeight, TileSide.Top ); } for( int i = 0; i < index; i++ ) @@ -65,7 +65,7 @@ namespace ClassicalSharp { } static Vector3 pos = Vector3.Zero; - static void DrawYFace( byte block, float y, int side ) { + static void YQuad( byte block, float y, int side ) { int texId = info.GetTextureLoc( block, side ); TextureRec rec = atlas.GetTexRec( texId ); FastColour col = colNormal; @@ -80,7 +80,7 @@ namespace ClassicalSharp { pos.Z - scale, rec.U2, rec.V1, col ); } - static void DrawZFace( byte block, float z, int side ) { + static void ZQuad( byte block, float z, int side ) { int texId = info.GetTextureLoc( block, side ); TextureRec rec = atlas.GetTexRec( texId ); if( blockHeight != 1 ) @@ -97,7 +97,7 @@ namespace ClassicalSharp { pos.Z - z, rec.U2, rec.V2, col ); } - static void DrawXFace( byte block, float x, int side ) { + static void XQuad( byte block, float x, int side ) { int texId = info.GetTextureLoc( block, side ); TextureRec rec = atlas.GetTexRec( texId ); if( blockHeight != 1 ) diff --git a/ClassicalSharp/Singleplayer/Physics.cs b/ClassicalSharp/Singleplayer/Physics.cs index a05162809..f81d8458c 100644 --- a/ClassicalSharp/Singleplayer/Physics.cs +++ b/ClassicalSharp/Singleplayer/Physics.cs @@ -320,7 +320,7 @@ namespace ClassicalSharp.Singleplayer { if( !map.IsValidPos( blockPos ) ) break; byte block = map.GetBlock( blockPos ); - intensity -= (hardness[block] / 5 + 0.3f) * stepLen; // TODO: proper block hardness table + intensity -= (hardness[block] / 5 + 0.3f) * stepLen; if( intensity > 0 && block != 0 ) { game.UpdateBlock( blockPos.X, blockPos.Y, blockPos.Z, 0 ); } diff --git a/readme.md b/readme.md index 36646483e..0845a6655 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,8 @@ ClassicalSharp is a custom Minecraft Classic client written in C# that works on both Windows and Linux. **It is not affiliated with (or supported by) Mojang AB, Minecraft, or Microsoft in any way.** -![screenshot_realb](https://cloud.githubusercontent.com/assets/6509348/10686634/c3a01074-79b1-11e5-816b-2e3a0d8ffeee.png) +![screenshot_n](https://cloud.githubusercontent.com/assets/6509348/10800494/288b4f00-7e06-11e5-8344-5df33625cc8b.png) + You can grab the latest stable binaries [here](https://github.com/UnknownShadow200/ClassicalSharp/releases).