Skip to content

Instantly share code, notes, and snippets.

View YiyiZhang's full-sized avatar

Yiyi YiyiZhang

View GitHub Profile
@YiyiZhang
YiyiZhang / Basic_Game.lua
Created May 12, 2020 15:42 — forked from lukemerrett/Basic_Game.lua
Basic Pico-8 Game
in_progress = 0
start_end_game = 1
game_over = 2
left=0 right=1 up=2 down=3
valid_moves = {left,right,up,down}
function _init()
player = {}
player.x = flr(rnd(120))
@YiyiZhang
YiyiZhang / CatmullRom2D.cs
Created March 4, 2017 21:20 — forked from JEphron/CatmullRom2D.cs
Catmull-Rom Spline Implementation
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Encapsulates a Catmull Rom spline path
/// </summary>
/// todo: consider implementing the Centripedal Catmull Rom variation
public class CatmullRom2D
{