Skip to content

Instantly share code, notes, and snippets.

View thacuber2a03's full-sized avatar
🧊
cube

ThaCuber thacuber2a03

🧊
cube
View GitHub Profile
@thacuber2a03
thacuber2a03 / easel.h
Last active December 2, 2024 22:52
a header-only tweening library for C compatible with C89
#ifndef EASEL_H
#define EASEL_H
/*
** easel.h -- a tweening library compatible with ANSI/C89
** by @thacuber2a03, public domain, or https://unlicense.org where unapplicable
** release 30-10-2024 (dd-mm-yyyy)
*/
#include <string.h>
-- an implementation of the Uxn VM in Lua, written by @thacuber2a03
-- compatible with 5.1 and JIT
-- thanks to @soxfox42 for helping on stack issues with the keep flag
-- and other things
local unpack = table.unpack or unpack
local ram, dev = {}, {}
local wst, rst = {kidx=1,idx=1}, {kidx=1,idx=1}
@thacuber2a03
thacuber2a03 / nothing-ls.lua
Last active July 17, 2024 03:12
the nothing language server
-- NOTE: to TC of the future
-- if you attempt to make an actual language server, *please* read the specification
-- https://microsoft.github.io/language-server-protocol/specifications/specification-current
-- here's a sample server so you can read along too, in case you ever forget how it's done
--
-- NOTE: for everyone else
-- the nothing language server: a (really buggy) language server that does nothing
-- this thing is public domain (we're talking https://unlicense.org/)
--
-- NOTE: for both
picotron cartridge // www.picotron.net
version 2
:: gfx/0.gfx
b64$LS1bW3BvZCxjcmVhdGVkPSIyMDI0LTA0LTA3IDE0OjU5OjUxIixtb2RpZmllZD0iMjAyNC0w
NC0xMSAwMTo0NDoxMyIscmV2aXNpb249MzUxN11dbHo0AG0AAAAFMQAA8xR7WzBdPXtibXA9cHh1
AEMgEBAE8PAsZmxhZ3M9MCxwYW5feAgAz3k9MCx6b29tPTh9LDEA------------------------
----------------------------------------51BtPTh9fQ==
:: gfx/.info.pod
b64$LS1bW3BvZCxjcmVhdGVkPSIyMDI0LTA0LTA3IDE0OjU5OjQwIixzdG9yZWQ9IjIwMjQtMDQt
--- striped animated interactive wallpaper
--- @thacuber2a03
local bg, fg -- set in _update
local spacing = 9 -- should hardcode?
local width, height = 480, 270
local position = 0
local velocity = 3
local maxVelocity = 0.2
@thacuber2a03
thacuber2a03 / pdgamestate.lua
Last active February 19, 2024 23:15
a modified version of hump.gamestate that works with the Playdate
--[[
Copyright (c) 2010-2013 Matthias Richter
2024 @thacuber2a03
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:
@thacuber2a03
thacuber2a03 / readme.txt
Created August 14, 2023 22:02
Untitled PuzzleScript Script
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@thacuber2a03
thacuber2a03 / readme.txt
Created August 14, 2023 16:01
wallcat (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@thacuber2a03
thacuber2a03 / readme.txt
Created August 14, 2023 15:53
wallcat (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@thacuber2a03
thacuber2a03 / readme.txt
Created August 14, 2023 15:31
wallcat (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html