This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image, ImageFont, ImageDraw, ImageColor | |
SEPERATOR_COLOR = ImageColor.getrgb("#0000ffff") | |
GLYPHS = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:<[=>\\{]!|@~_\"`$%'()&}+*,-^#?/;" | |
SIZE = 12 | |
ANCHOR = "la" | |
FILL = "white" | |
FEATURES = "" | |
font = ImageFont.truetype("arial.ttf", SIZE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydub import AudioSegment | |
org = input("org file : ") | |
out = input("out file : ") | |
aud = AudioSegment.from_file(org) | |
channels = aud.split_to_mono() | |
for i in range(0, len(channels), 2): | |
l_sub_r = channels[i].overlay(channels[i + 1].invert_phase()) | |
r_sub_l = channels[i + 1].overlay(channels[i].invert_phase()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python sc.py <project.json> <scan.json> > text.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function selectRandomTarget() | |
{ | |
if (!partyCharacter[0].targetable && !partyCharacter[1].targetable && !partyCharacter[2].targetable) | |
return 3 | |
var _target = choose(0, 1, 2) | |
while (!partyCharacter[_target].targetable) | |
_target = choose(0, 1, 2) | |
return _target | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; --------------------------------------------------------------------------- | |
cpu 68000 | |
include "sonic3k.macrosetup.asm" ; include a few basic macros | |
include "sonic3k.macros.asm" ; include some simplifying macros and functions | |
include "sonic3k.constants.asm" ; include some constants | |
org 0 | |
; --------------------------------------------------------------------------- | |
strip_padding = 1 | |
Size_of_Snd_driver_guess = $1200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
lang_en = {} | |
with open("lang_en.json", "r", encoding="utf-8") as l_en_file: | |
lang_en = json.load(l_en_file) | |
lang_ja = {} | |
with open("lang_ja.json", "r", encoding="utf-8") as l_ja_file: | |
lang_ja = json.load(l_ja_file) | |
items = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2022 Dobby233Liu | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
# In jurisdictions that recognize copyright laws, the author or authors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Tool that helps decompiling a Ren'Py game. Early prototype.""" | |
import glob | |
import unrpyc | |
import unrpa | |
import os | |
import tarfile | |
import traceback | |
import shutil | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
random.seed() | |
lettertable = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz " | |
def rand_word(): | |
while True: | |
random.seed() | |
r = "" | |
len = random.randint(6, 12) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open("musiccmt.txt","r",encoding="shift-jis") as c: | |
cmt = c.readlines() | |
writemode=None | |
linen=0 | |
max=9 | |
total=0 | |
m3u8=open("musicroom.m3u8","w",encoding="utf-8") | |
m3u8.write("#EXTM3U\n") | |
str="" | |
for line in cmt: |