Skip to content

Instantly share code, notes, and snippets.

@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.
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 / Win10UWP Spinner for terminal.txt
Created February 17, 2020 12:41
Windows 10 UWP style spinner animation for ASCII terminal
Keyframes only :
" . ",
". . ",
" . . ",
" . . . ",
". . ... ",
" . .... ",
" ..... ",
" ..... ",
" ..... ",
@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 / Shaker.js
Last active February 19, 2020 06:25
[RPG MV only] This is a plug-in that makes the basic screen shake of RPG Maker a real screen shake.
/*:
*
* @plugindesc This script gets the DOM of the canvas that renders the game and shakes the screen with css translate.
* @author Creta Park (Park Jong-Hyeok) (creta5164@gmail.com, https://creft.me/cretapark)
*
* @param Shake_strength.light
* @desc Set the default value for 'Shake_strength.light'.
* @default 2.5,45,0
*
* @param Shake_strength.normal
@Creta5164
Creta5164 / TouchViewer.cs
Created June 5, 2019 16:05
Showing touch on Unity editor view.
public class TouchViewer : MonoBehaviour
{
/// <summary>
/// Half-size of cross-hair
/// </summary>
public float size = 25;
/// <summary>
/// How longer lives trails and cross-hairs
/// </summary>
@Creta5164
Creta5164 / StringObfuscator.cs
Created May 4, 2019 02:50
An obfuscation class that uses the simplest way to prevent arbitrary modification of strings.
using System;
using System.Text;
public static class StringObfuscator
{
const int MAX = byte.MaxValue + 1;
public static byte[] Convert(string str) {
if (string.IsNullOrEmpty(str))
@Creta5164
Creta5164 / simple-monaco-editor-sample.html
Last active December 28, 2021 06:58
마이크로소프트의 IDE인 vscode에서 사용하는 코드 편집기를 웹에서 사용 가능한 monaco 에디터를 간결하게 시작하는 템플릿입니다.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>모나코 에디터 샘플</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/earlyaccess/nanumgothiccoding.css"/>
</head>
<body style="margin:0;">
<div id="monaco" style="height:100vh"></div>
@Creta5164
Creta5164 / 한글최소완성형+ASCII.txt
Created April 2, 2019 13:51
BMFont와 같은 도구를 위한 글자모음입니다.
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~…
ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎ
ㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ
ㄱㄲㄳㄴㄵㄶㄷㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅄㅅㅆㅇㅈㅊㅋㅌㅍㅎ
가각간갇갈갉갊감갑값갓갔강갖갗같갚갛개객갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫났낭낮낯낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫달닭닮닯닳담답닷닸당닺닻닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많맏말맑맒맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼묀묄묍묏묑묘묜묠묩묫무
@Creta5164
Creta5164 / RPGMVSave2Web.cs
Last active August 20, 2019 14:34
C#으로 RPG MV의 세이브 파일을 웹에 적용하는 코드를 만듭니다, 대충 만들었어요.
class Main {
const string Way = @"<프로젝트 경로>\save";
static void Main(string[] args) {
Console.WriteLine("세이브를 코드 실행으로 만듭니다.");
StringBuilder builder = new StringBuilder();
var files = Directory.GetFiles(Way);
Console.WriteLine($"파일 개수 : {files.Length}개");