Skip to content

Instantly share code, notes, and snippets.

View Sin-Gala's full-sized avatar
🥰
Creating

Galahane Rouillé-Poirel Sin-Gala

🥰
Creating
View GitHub Profile
@Sin-Gala
Sin-Gala / pronouns_choice.rpy
Created October 22, 2023 16:21
Pronouns choice system for Ren'py
label choose_pronouns_MC:
menu:
"What pronouns do you want to use?"
"He/Him":
python:
pronouns_MC = "He/Him"
pronoun_he = "He"
pronoun_himself = "Himself"
pronoun_him = "Him"
public T[] ConvertMultiArrayToSingleArray(T[,] multiArray)
{
int x = multiArray.GetLength(0);
int y = multiArray.GetLength(1);
T[] singleArray = new T[x * y];
int index = 0;
for (int i = 0; i < x; i++)
@Sin-Gala
Sin-Gala / ScreenOrientationCheck.cs
Created June 21, 2022 20:22
Screen and Orientation checks events for Unity
using System;
using UnityEngine;
public class ScreenOrientationCheck
{
public static event Action<ScreenOrientation> onOrientationChange;
public static ScreenOrientation lastOrientation;
[RuntimeInitializeOnLoadMethod]
private static void Init()
@Sin-Gala
Sin-Gala / angelNames.js
Last active May 25, 2022 08:17
Get the daily angel name
/*MIT License
Copyright (c) 2022 Galahane Rouillé-Poirel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: