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
| @ECHO OFF | |
| cd %~dp0 | |
| PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%~dpn0.ps1' %1 %2 %3 %4 %5 %6 %7 %8" | |
| @PAUSE |
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
| param ($name) | |
| Set-PSDebug -Trace 2 | |
| git clone --mirror https://github.com/BenMcLean/$name.git | |
| java -jar bfg.jar --delete-folders dist "$name.git" | |
| cd ./$name.git | |
| git push | |
| cd.. | |
| Remove-Item -Path "$name.git" -Recurse -Force |
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
| ref=(function(obj,key) | |
| return (function(...) | |
| local p={...} | |
| if select('#',...)==0 then | |
| return obj[key] | |
| else | |
| obj[key]=p[1] | |
| end | |
| end) | |
| end) |
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
| private void initialize() { | |
| Coord.expandPoolTo(WIDTH+3, HEIGHT+3); | |
| // Initialize the heightmap generator | |
| ModuleFractal heightFractal = new ModuleFractal (ModuleFractal.FractalType.FBM, | |
| ModuleBasisFunction.BasisType.GRADIENT, | |
| ModuleBasisFunction.InterpolationType.QUINTIC); | |
| heightFractal.setNumOctaves(terrainOctaves); | |
| heightFractal.setFrequency(terrainFrequency); | |
| heightFractal.setSeed(CommonRNG.getRng().between(0, Integer.MAX_VALUE)); | |
| ModuleFractal ridgedHeightFractal = new ModuleFractal (ModuleFractal.FractalType.RIDGEMULTI, |
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
| @echo off | |
| setLocal EnableDelayedExpansion | |
| :newgame | |
| cls | |
| echo TIC-TAC-TOE | |
| echo Written by Benjamin McLean | |
| echo. | |
| echo Controls: | |
| echo|set /p="7 | 8 | 9" | |
| echo. |
NewerOlder