Skip to content

Instantly share code, notes, and snippets.

@adrsch
adrsch / PlayerController.cs
Created October 25, 2023 19:59
PlayerController, messy
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
/*
* PARTS OF THIS FILE ARE MODIFICATIONS OF QUAKE 3 CODE UNDER THE FOLLOWING:
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
@adrsch
adrsch / svg-distorted-grid.js
Last active August 27, 2020 21:05
Generate distorted grid SVG
// Use svgPath and bezierCommand from https://medium.com/@francoisromain/smooth-a-svg-path-with-cubic-bezier-curves-e37b49d46c74
import { svgPath, bezierCommand } from './svgPath';
import { makeNoise2D } from 'open-simplex-noise';
const chance = require('chance').Chance();
// Creates a grid specified as a list of lines, with each line a list of coordinate pairs
// Each line is made up of points spaced as given
const grid = ({
width,