Skip to content

Instantly share code, notes, and snippets.

@Creta5164
Creta5164 / OpenInVSCode.cs
Last active June 2, 2024 06:49
Adds the ability to open with VSCode to the right-click menu to Godot's file system dock.
#if TOOLS
using System.IO;
using System.Linq;
using Godot;
using static Godot.GD;
namespace CretaPark.GodotTools;
[Tool]
@Creta5164
Creta5164 / RenderingEffectGrayScale.cs
Created January 4, 2024 16:13
Grayscale effect example prepared in Godot engine PR #80214 Code ported from GDScript to C#.
using static Godot.GD;
using static Godot.RenderingDevice;
namespace Godot.Demo.CompositeEffect;
/// <summary>
/// This is a very simple effects demo that takes our color values and writes
/// back gray scale values.
/// </summary>
/// <remarks>
@Creta5164
Creta5164 / discord-streamkit-overlay-voice-reactive-image-ko.css
Last active April 23, 2023 07:59
streamkit.discord.com/overlay 용 음성에 반응하는 이미지 CSS
/* streamkit.discord.com/overlay 용 음성에 반응하는 이미지 CSS */
/* Voice Widget 탭으로 이동한 후, 서버와 음성 채널을 지정한 다음 URL을 복사하세요. */
/* 수정한 이 : Crete Park */
/* 원본 CSS : https://retroheart.net/blog/2022/04/adding-discord-voice-reactive-images-to-obs/ */
:root {
/* 애니메이션 바운스 동작의 최대 높이 */
--bounce-height: 20px;
@Creta5164
Creta5164 / discord-streamkit-overlay-voice-reactive-image-en.css
Last active April 23, 2023 07:55
Voice reactive image css for streamkit.discord.com/overlay
/* Voice reactive image css for streamkit.discord.com/overlay */
/* Go to voice widget tab, and specify server and voice channel then copy url. */
/* Modified by Crete Park */
/* Original CSS : https://retroheart.net/blog/2022/04/adding-discord-voice-reactive-images-to-obs/ */
:root {
/* Animated bounce movement's maximum height. */
--bounce-height: 20px;
@Creta5164
Creta5164 / Gamepad binding names.txt
Created January 11, 2022 12:17
Gamepad binding name collection that used in Unity's Input System.
buttonSouth
buttonNorth
buttonEast
buttonWest
start
select
leftTrigger
rightTrigger
leftShoulder
rightShoulder
@Creta5164
Creta5164 / Keyboard binding names.txt
Created January 11, 2022 11:16
Keyboard binding name collection that used in Unity's Input System.
0
1
2
3
4
5
6
7
8
9
@Creta5164
Creta5164 / video-game-controllers.md
Created October 28, 2021 08:26
현세대 컨트롤러를 기능 별로 간단하게 정리했습니다.

table
클릭하면 크게 볼 수 있습니다.

[1] [Nintendo Switch Pro 컨트롤러][1]
[2] [버튼 강조 아이콘의 모습][2]
[3] [Switch의 D패드 강조 아이콘의 모습][3]
[4] [Switch의 스틱 클릭 아이콘의 모습][4]
[5] [Joy-Con 양손잡기][5]
[6] [Joy-Con 가로잡기][6]
[7] [Xbox 컨트롤러와 시리즈 X 컨트롤러][7]

@Creta5164
Creta5164 / RefactorCookies.cs
Last active May 2, 2021 12:54
Automated macro to remove sprites from deprecated field in point type 2D lights. (URP 11.0.0^)
using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityEngine.Experimental.Rendering.Universal;
public static class RefactorCookies {
[MenuItem("Tools/RefactorAllCookies")]
public static void RefactorAll() {
@Creta5164
Creta5164 / CsvManager.gml
Last active December 26, 2020 04:55
새 gml 스펙을 살펴봤습니다! I just discovered new gml spec!
function CsvManager(lang) constructor {
//@desc 언어를 다시 불러옵니다.
//@param {string} lang (optional) 다시 불러올 언어 (기본값 = "ko")
static ReloadLanguage = function(lang) {
if (lang == undefined)
lang = "ko";
var path = "lang/" + lang + "/weapons.csv";
@Creta5164
Creta5164 / StringObfuscator.gml
Last active July 25, 2020 21:15
An obfuscation class that uses the simplest way to prevent arbitrary modification of strings.
//StringObfuscator.gmlclass
//This is port of my .NET version of StringObfuscator.cs
//https://gist.github.com/Creta5164/7efb69bb9414a556169a5c8782923a67
//-----------------------------------------------------------------------------
/// @function StringObfuscator_Convert(textData)
/// @description Make string to obfuscated binary.
/// @param {string} textData String data that convert obfuscated binary.