基础环境安装
sudo apt update -y &&sudo apt upgrade -y
sudo apt install curl tar wget lz4 jq build-essential git make -y
go 安装
基础环境安装
sudo apt update -y &&sudo apt upgrade -y
sudo apt install curl tar wget lz4 jq build-essential git make -y
go 安装
WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines
A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.
Nowadays lots of companies choose engines like [Unreal](https:
| 环境:shadowsocks、windows | |
| 本地ss端口设置(这里1080) | |
| cmd命令行:(不用socks5)(临时设置)(也可放置环境变量) | |
| set http_proxy=http://127.0.0.1:1080 | |
| set https_proxy=http://127.0.0.1:1080 | |
| ps:一定要用cmd命令行,千万别用powershell !!! | |
| 简易测试命令:curl https://www.google.com(别用ping) |
| #ifndef __MATRIX_INCLUDED__ | |
| #define __MATRIX_INCLUDED__ | |
| #define IDENTITY_MATRIX float4x4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1) | |
| float4x4 inverse(float4x4 m) { | |
| float n11 = m[0][0], n12 = m[1][0], n13 = m[2][0], n14 = m[3][0]; | |
| float n21 = m[0][1], n22 = m[1][1], n23 = m[2][1], n24 = m[3][1]; | |
| float n31 = m[0][2], n32 = m[1][2], n33 = m[2][2], n34 = m[3][2]; | |
| float n41 = m[0][3], n42 = m[1][3], n43 = m[2][3], n44 = m[3][3]; |
| /* From http://blog.nuclex-games.com/2012/06/how-to-create-directories-recursively-with-win32/ | |
| * Retrieved April 12, 2017 | |
| * Posted by user Cygon (http://blog.nuclex-games.com/author/cygon/) | |
| * | |
| * This code is free for the taking and you can use it however you want. | |
| * | |
| * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT | |
| * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
| * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
| * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| // MP Hooks © 2016 Mitchell Pell | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using System.Windows.Forms; | |
| namespace mp.hooks{ | |
| [Code] | |
| function IsX64: boolean; | |
| begin | |
| Result := Is64BitInstallMode and (ProcessorArchitecture = paX64); | |
| end; | |
| procedure Explode(var Dest: TArrayOfString; Text: String; Separator: String); | |
| var | |
| i, p: Integer; | |
| begin |
| echo "" | |
| echo " _oo0oo_" | |
| echo " o8888888o" | |
| echo " 88' . '88" | |
| echo " (| -_- |)" | |
| echo " 0\ = /0" | |
| echo " ___/\`---'\\___" | |
| echo " .' \\\\\\| |# '." | |
| echo " / \\\\\\||| : |||# \\" | |
| echo " / _||||| -:- |||||- \\" |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
| git init # 初始化本地git仓库(创建新仓库) | |
| git config --global user.name "xxx" # 配置用户名 | |
| git config --global user.email "[email protected]" # 配置邮件 | |
| git config --global color.ui true # git status等命令自动着色 | |
| git config --global color.status auto | |
| git config --global color.diff auto | |
| git config --global color.branch auto | |
| git config --global color.interactive auto | |
| git config --global --unset http.proxy # remove proxy configuration on git | |
| git clone git+ssh://[email protected]/VT.git # clone远程仓库 |