Skip to content

Instantly share code, notes, and snippets.

@haolly
haolly / custom_game_engines_small_study.md
Created February 3, 2021 12:14 — forked from raysan5/custom_game_engines_small_study.md
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

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 or Unity for their games (or that's what lot of people think) because d

@haolly
haolly / remap-capslock-to-control-win10.md
Created January 19, 2021 06:15 — forked from joshschmelzle/remap-capslock-to-control-win10.md
Remap Caps Lock to Control on Windows 10

Create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

or use PowerShell (run as Admin)

@haolly
haolly / Animal.lua
Created November 9, 2020 04:02 — forked from paulmoore/Animal.lua
A simple Class implementation in Lua for Object-Oriented Programming.
--- Animal.lua
--
-- A simple example of a base class usng the classes library.
--
-- @author PaulMoore
--
-- Copyright (C) 2011 by Strange Ideas Software
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
@haolly
haolly / PyramidGenerator.cs
Created June 16, 2020 07:34 — forked from grifdail/PyramidGenerator.cs
Editor tool to generate Pyramid and Cone in unity. Save this script in an Editor Folder and it will create a new menu option in Assets/Create; You can chose the number of side and between hard and soft edge.
using UnityEngine;
using UnityEditor;
using System.Collections;
public class PyramidGenerator : ScriptableWizard
{
public int size = 4;
public bool flat = true;
@haolly
haolly / UnityGuidRegenerator.cs
Created March 27, 2020 09:13 — forked from ZimM-LostPolygon/UnityGuidRegenerator.cs
Unity asset GUIDs regenerator
// Drop into Assets/Editor, use "Tools/Regenerate asset GUIDs"
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using UnityEditor;
namespace UnityGuidRegenerator {
public class UnityGuidRegeneratorMenu {
@haolly
haolly / FocusOnPivot.cs
Created October 7, 2019 04:05
Unity UI easy pivot view
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class FocusOnPivot : MonoBehaviour {
[MenuItem("Edit/Focus on Selected Pivot %g")]
static void Focus()
{
@haolly
haolly / msys.reg
Created September 20, 2019 13:34 — forked from kfxhjz/msys.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\msys2_shell]
@="Open MSYS2 here"
"Icon"="\"D:\\msys64\\msys2.ico\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\msys2_shell\command]
@="D:\\msys64\\msys2_shell.cmd -mingw -here"
[HKEY_CLASSES_ROOT\Folder\shell\msys2_shell]
@haolly
haolly / youtube-dl.conf
Created September 8, 2019 17:42
youtube-dl config for me on widows10 that works
# Lines starting with # are comments
# Always extract audio
-x
# Do not copy the mtime
--no-mtime
# Use this proxy
--proxy 127.0.0.1:1080
@haolly
haolly / breachcompilation.txt
Created August 25, 2019 18:55
1.4 billion password breach compilation wordlist
wordlist created from original 41G stash via:
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt
Then, compressed with:
7z a breachcompilation.txt.7z breachcompilation.txt
Size:
@haolly
haolly / NativeMeshTest.cs
Created May 18, 2019 15:35 — forked from LotteMakesStuff/NativeMeshTest.cs
[NativeCollections] How to copy a regular .C# array into a NativeArray suuuuuper quick using memcpy. its about as fast as its ever gunna get!
using Unity.Collections;
using Unity.Collections.LowLevel.Unsafe;
using Unity.Mathematics;
using UnityEngine;
public class NativeMeshTest : MonoBehaviour
{
private NativeArray<float3> vertexBuffer;
private Vector3[] vertexArray;