Skip to content

Instantly share code, notes, and snippets.

View justcore69's full-sized avatar
👀
Looking for ideas

Andrey justcore69

👀
Looking for ideas
  • Moscow, Russia
  • 14:16 (UTC +03:00)
View GitHub Profile
@justcore69
justcore69 / PawnerAI.cs
Created December 5, 2024 21:43
AI for a chess-like game "Pawner Likes Fingers"
using System.Collections.Generic;
using UnityEngine;
// The game is available in browser
// https://justcore.itch.io/pawner-likes-fingers
public class PawnerAI : MonoBehaviour
{
public class PossibleTurn
{
@justcore69
justcore69 / dec_to_base.py
Created March 18, 2024 03:05
Python function for converting decimal numbers to numbers of any base
# maximum base - 36
def dec_to_base(a, b):
sym='0123456789abcdefghijklmnopqrstuvwxyz'
s=''
while a > 0:
s += sym[a%b]
a//=b
s=s[::-1]
return s
@justcore69
justcore69 / ShadowCaster2DCreator.cs
Created October 11, 2023 14:37
ShadowCaster2D Auto creator for tilemaps by Invertex
using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering.Universal;
#if UNITY_EDITOR
@justcore69
justcore69 / FullscreenShaderFeature.cs
Created August 7, 2023 21:04
Scriptable Renderer Feature that applies a material to a whole screen
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
public class FullscreenShaderFeature : ScriptableRendererFeature
{
[SerializeField]
private Material material;
class CustomRenderPass : ScriptableRenderPass