Skip to content

Instantly share code, notes, and snippets.

import drop.*;
SDrop drop;
StringList vertices;
ArrayList<StringList> facegroups;
StringList colors;
void setup() {
size(400, 400);
@Viza74
Viza74 / merge.sh
Created June 13, 2017 14:55
Multi file "build system" for TIC-80 (VS Code/OSX)
#!/bin/sh
echo "--- Merging files..."
cat ./build/mergelist
cat ./build/mergelist | xargs -J % cat % > $1.lua
echo "\n--- Finished"
echo "$2/$1.tic -code $1.lua"
../tic.app/Contents/MacOS/tic $2/$1.tic -code $2/$1.lua -sprites sprites.gif
@Viza74
Viza74 / lua.json
Last active January 25, 2021 19:07
TIC-80 api user snippets for Visual Studio Code
{
"TIC-80 print": {
"prefix": "print",
"body": [
"print(\"${1:text}\"${2:,${3:x},${4:y},${5:color}${6:,${7:fixed},${8:scale}}})",
"$0"
],
"description": "Print string with system font TIC-80"
},
//font - Print string with font defined in foreground sprites