Skip to content

Instantly share code, notes, and snippets.

@Creta5164
Creta5164 / BGModifier.js
Last active October 29, 2019 11:56
[RPG MV only] This plug-in is for projects with fixed game resolution, You can customize the letterbox.
/*:
*
* @plugindesc This plug-in specifies the background image through the style of the body tag.
* @author Creta Park (http://creft.me/cretapark)
*
* @param Default path
* @desc Default top path to select pictures
* @default img/pictures
*
* @param Default file extension name
@Creta5164
Creta5164 / Win10UWP Spinner for terminal.txt
Created February 17, 2020 12:41
Windows 10 UWP style spinner animation for ASCII terminal
Keyframes only :
" . ",
". . ",
" . . ",
" . . . ",
". . ... ",
" . .... ",
" ..... ",
" ..... ",
" ..... ",
public static class CurveFieldExtensions {
public static readonly MethodInfo M_ShowCurveEditor
= typeof(CurveField).GetMethod("ShowCurveEditor", BindingFlags.NonPublic | BindingFlags.Instance);
public static void ShowCurveEditor(this CurveField self)
=> M_ShowCurveEditor.Invoke(self, null);
}
@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.
@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 / 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 / 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 / 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 / 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 / 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;