Skip to content

Instantly share code, notes, and snippets.

View Sheepolution's full-sized avatar

Sheepolution Sheepolution

View GitHub Profile
@Sheepolution
Sheepolution / main.lua
Last active May 7, 2025 09:32
Basic Luasteam P2P example
local server = true -- Change to false for the client
local connectionId
local pollGroup
Steam = require "luasteam"
Steam.init()
-- We call this to let Steam know that we want to use the networking sockets API.
-- Which probably won't do much in this example, but it can save you a delay.
@Sheepolution
Sheepolution / game.txt
Created December 15, 2023 15:17
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[2784,"0",2,"f",143,"0",3,"f",12,"0",2,"f",14,"0",1,"f",131,"0",6,"f",7,"0",2,"f",1,"0",8,"f",1,"0",3,"f",6,"0",6,"f",123,"0",1,"f",8,"0",1,"f",2,"0",11,"f",6,"0",2,"f",2,"0",1,"f",125,"0",1,"f",23,"0",3,"f",2,"0",1,"f",5,"0",2,"f",122,"0",1,"f",22,"0",5,"f",1,"0",1,"f",7,"0",1,"f",120,"0",4,"f",19,"0",2,"f",14,"0",1,"f",118,"0",2,"f",4,"0",3,"f",13,"0",3,"f",15,"0",1,"f",128,"0",2,"f",8,"0",3,"f",3,"0",3,"f",11,"0",1,"f",138,"0",1,"f",2,"0",4,"f",13,"0",1,"f",138,"0",4,"f",16,"0",1,"f",12,"0",4,"f",142,"0",1,"f",6,"0",7,"f",4,"0",2,"f",139,"0",1,"f",1,"0",6,"f",152,"0",2,"f",903,"0",8,"f",105,"0",8,"d",38,"0",10,"f",84,"0",9,"d",10,"0",11,"d",35,"0",12,"f",82,"0",11,"d",9,"0",12,"d",33,"0",13,"f",81,"0",12,"d",9,"0",12,"d",32,"0",14,"f",80,"0",13,"d",9,"0",13,"d",30,"0",22,"f",72,"0",13,"d",11,"0",12,"d",30,"0",26,"f",68,"0",9,"d",18,"0",9,"d",29,"0",29,"f",66,"0",7,"d",22,"0",7,"d",29,"0",30,"f",65,"0",7,"d",24,"0",5,"d",28,"0",21,"f",3,"0",8,"f",64,"0",6,"d",7,"
@Sheepolution
Sheepolution / game.txt
Created December 15, 2023 10:06
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"],[16000,"0"]],"hyperlinks":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]]}
@Sheepolution
Sheepolution / game.txt
Created December 13, 2023 17:18
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[3160,"0",3,"c",156,"0",5,"c",155,"0",5,"c",147,"0",13,"c",144,"0",17,"c",142,"0",19,"c",140,"0",21,"c",138,"0",23,"c",136,"0",9,"c",3,"0",12,"c",135,"0",7,"c",5,"0",14,"c",133,"0",7,"c",6,"0",6,"c",2,"0",6,"c",132,"0",7,"c",7,"0",5,"c",4,"0",5,"c",132,"0",6,"c",7,"0",6,"c",4,"0",5,"c",131,"0",6,"c",8,"0",6,"c",4,"0",5,"c",131,"0",6,"c",8,"0",5,"c",5,"0",5,"c",130,"0",6,"c",9,"0",5,"c",5,"0",5,"c",130,"0",6,"c",9,"0",5,"c",5,"0",5,"c",129,"0",6,"c",10,"0",5,"c",5,"0",5,"c",129,"0",6,"c",11,"0",3,"c",5,"0",6,"c",129,"0",5,"c",20,"0",6,"c",129,"0",5,"c",19,"0",6,"c",130,"0",5,"c",19,"0",6,"c",129,"0",6,"c",18,"0",6,"c",130,"0",6,"c",18,"0",6,"c",130,"0",5,"c",18,"0",6,"c",131,"0",5,"c",18,"0",6,"c",131,"0",5,"c",17,"0",6,"c",132,"0",6,"c",16,"0",6,"c",132,"0",6,"c",14,"0",7,"c",134,"0",6,"c",11,"0",9,"c",134,"0",7,"c",8,"0",10,"c",136,"0",10,"c",2,"0",11,"c",137,"0",22,"c",139,"0",19,"c",142,"0",16,"c",146,"0",12,"c",152,"0",6,"c",625,"0",3,"c",156,"0",5,"c",155,"0",
@Sheepolution
Sheepolution / game.txt
Created December 13, 2023 17:17
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[3160,"0",3,"c",156,"0",5,"c",155,"0",5,"c",147,"0",13,"c",144,"0",17,"c",142,"0",19,"c",140,"0",21,"c",138,"0",23,"c",136,"0",9,"c",3,"0",12,"c",135,"0",7,"c",5,"0",14,"c",133,"0",7,"c",6,"0",6,"c",2,"0",6,"c",132,"0",7,"c",7,"0",5,"c",4,"0",5,"c",132,"0",6,"c",7,"0",6,"c",4,"0",5,"c",131,"0",6,"c",8,"0",6,"c",4,"0",5,"c",131,"0",6,"c",8,"0",5,"c",5,"0",5,"c",130,"0",6,"c",9,"0",5,"c",5,"0",5,"c",130,"0",6,"c",9,"0",5,"c",5,"0",5,"c",129,"0",6,"c",10,"0",5,"c",5,"0",5,"c",129,"0",6,"c",11,"0",3,"c",5,"0",6,"c",129,"0",5,"c",20,"0",6,"c",129,"0",5,"c",19,"0",6,"c",130,"0",5,"c",19,"0",6,"c",129,"0",6,"c",18,"0",6,"c",130,"0",6,"c",18,"0",6,"c",130,"0",5,"c",18,"0",6,"c",131,"0",5,"c",18,"0",6,"c",131,"0",5,"c",17,"0",6,"c",132,"0",6,"c",16,"0",6,"c",132,"0",6,"c",14,"0",7,"c",134,"0",6,"c",11,"0",9,"c",134,"0",7,"c",8,"0",10,"c",136,"0",10,"c",2,"0",11,"c",137,"0",22,"c",139,"0",19,"c",142,"0",16,"c",146,"0",12,"c",152,"0",6,"c",625,"0",3,"c",156,"0",5,"c",155,"0",
@Sheepolution
Sheepolution / gamera.js
Last active June 14, 2022 13:41
gamera.lua converted to JavaScript. Original: https://github.com/kikito/gamera
// gamera.js
// Based on gamera.lua v1.0.1 by Enrique García Cota, converted to JavaScript by Sheepolution
// Copyright (c) 2018 Enrique García Cota
// 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:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
@Sheepolution
Sheepolution / flux.js
Created May 20, 2022 22:01
rxi's flux in JavaScript
const getFlux = function () {
var flux = { _version: '0.1.5' };
var tween = getTween();
flux.list = [];
flux.objects = [];
flux.tweens = {};
flux.easing = { linear: function (p) { return p; } };
var easing = {
@Sheepolution
Sheepolution / love-build.bat
Last active April 19, 2021 20:10
LÖVE Build script
@echo off
cls
echo Building!
set "gameName=%1"
set "gameNameLower=%2"
set "companyName=%3"
if "!gameName!"=="" (
@Sheepolution
Sheepolution / Darkness.hx
Created September 23, 2020 09:48
Class to use with HaxeFlixel for creating lighting by masks.
import flixel.FlxBasic;
import flixel.FlxCamera;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.system.FlxAssets.FlxShader;
import flixel.util.FlxColor;
import openfl.display.BlendMode;
import openfl.filters.ShaderFilter;
class Darkness extends FlxBasic {
@Sheepolution
Sheepolution / DarknessAdvanced.hx
Last active September 23, 2020 15:02
Class to use with HaxeFlixel for creating lighting by masks. This advanced version allows the use of alpha, but is very slow.
import flixel.FlxBasic;
import flixel.FlxCamera;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.system.FlxAssets.FlxShader;
import flixel.util.FlxColor;
import openfl.display.BlendMode;
import openfl.filters.ShaderFilter;
import openfl.geom.Matrix;