This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Patch the installed Kilo Code VS Code extension to fix the chat auto-scroll | |
| "can't detach from the latest message" bug. | |
| .DESCRIPTION | |
| Two minimal fixes are applied to the minified webview bundles: | |
| 1. Wheel-up input now records an interaction timestamp so handleScroll's | |
| near-bottom re-attach cannot immediately undo the pause. | |
| 2. The near-bottom re-attach branch no longer clears userScrolled while the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Client (Debug)", | |
| "type": "coreclr", | |
| "request": "launch", | |
| "preLaunchTask": "build-client-debug", | |
| "program": "${workspaceFolder}/Build/Debug/HardClient.exe", | |
| "args": [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using HardDev.Engine.Experiment.Types; | |
| using HardDev.Engine.Experiment.Voxel.BlockImpl; | |
| using HardDev.Engine.Experiment.Voxel.Directions; | |
| using UnityEngine; | |
| namespace HardDev.Engine.Experiment.Voxel.ChunkImpl | |
| { | |
| public static class MergedFaceMeshBuilder | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Code ported from https://0fps.net/2012/06/30/meshing-in-a-minecraft-game/ | |
| // Note this implemenetation does not support different block types or block normals | |
| // The original author describes how to do this here: https://0fps.net/2012/07/07/meshing-minecraft-part-2/ | |
| const int CHUNK_SIZE = 32; | |
| // These variables store the location of the chunk in the world, e.g. (0,0,0), (32,0,0), (64,0,0) |