Skip to content

Instantly share code, notes, and snippets.

@Starpelly
Starpelly / RaylibImGui.bf
Created August 6, 2023 23:39
raylib-beef + ImGui impl
using RaylibBeef;
using ImGui;
using System.Collections;
using System;
class RaylibImGui
{
static ImGui.Context* context;
static RaylibBeef.Texture fontTexture;
We couldn’t find that file to show.
@Starpelly
Starpelly / Oscillator.cs
Created May 7, 2022 08:06
Oscillioscope in Unity using the Shapes plugin. (Can also be used with the default Line Renderer)
// Created by Starpelly, based on the FL STUDIO oscillator
using UnityEngine;
using Shapes;
public class Oscillator : MonoBehaviour
{
public int lengthOfLineRenderer = 16384;
public float thickness;
public float strength;
private Polyline polyline;
@Starpelly
Starpelly / SimpleSquashStretch.cs
Last active November 20, 2023 13:30
Simple Squash Stretch, can be used for pretty much anything. (Celeste-like effect)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SimpleSquashStretch : MonoBehaviour {
public Vector3 wallSquash = new Vector3(1.66f, 0.7f, 0.1f);
public Sprite m_SpriteRenderer;
void Start()
@Starpelly
Starpelly / Conductor.cs
Last active August 7, 2021 12:20
Simple metronome for Rhythm Games
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class Conductor : MonoBehaviour
{
//Song beats per minute
//This is determined by the song you're trying to sync up to
public float songBpm;