Skip to content

Instantly share code, notes, and snippets.

Focusing on Game Development and University

flamendless flamendless

Focusing on Game Development and University
View GitHub Profile
View pycodestyle
max-line-length = 96
ignore = E302,E252,W504,E128,E129,E261,E124
flamendless /
Last active June 26, 2022 13:52
WSL love setup
function run()
echo "Running"
if [ $(uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip') ]; then
echo "This is Windows WSL!"
./ run
echo "This is Linux"
View love2d-AdMob-Android-Instruction
Love to Android
(This guide is mainly for Windows Users. As for Linux/Mac OS users, this are fairly easy.)
Setting Up:
### Download the Following, place them in a convenient location like C:\AndroidDevelopment\
You will need the following:
Java Development Kit (JDK) Note: Download the one without Netbeans IDE.
View asset_bundler_love.lua
function test1()
local imgdata = love.image.newImageData("avatar.png")
local format = imgdata:getFormat()
local filename = "pack"
if love.filesystem.getInfo(filename) then
local file = love.filesystem.newFile(filename, "w")
View tokenizer.lua
-- these have to be sorted by longest first
local keywords = {
local symbols = {
package frequencytable;
public class FrequencyTable {
public static void main(String[] args) {
private static void test() {
for (int noteNumber = 0; noteNumber < 128; noteNumber++) {
package midisequenceextractor;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.sound.midi.InvalidMidiDataException;
import javax.sound.midi.MidiChannel;
flamendless / shockwave.glsl
Created March 8, 2019 14:45
from steveroll over @ discord
View shockwave.glsl
extern number minRadius = 0.05;
extern number maxRadius = 0.1;
extern number mul = 0.01;
extern vec2 center = vec2(0.5,0.5);
number dist(vec2 a, vec2 b){
return sqrt(pow(b.x-a.x,2)+pow(b.y-a.y,2));
flamendless / main.lua
Created November 13, 2018 00:32 — forked from 1bardesign/main.lua
View main.lua
example use
local recolour = require("recolour")
--we want to recolour this asset image
local to_recolour = love.image.newImageData("path/to/image.png")
--using this palette image
local palette = love.image.newImageData("path/to/palette.png")
flamendless / MakefileLoveAndroid
Last active November 8, 2018 13:51
Makefile for easier love development for android using apktool
View MakefileLoveAndroid
--usage: make build-android
--usage: make apk-release VERSION=0.1.3
--note: You must still edit the versionCode in AndroidManifest.xml
SHELL := /bin/zsh
ANDROID = PATH:/opt/android-sdk/build-tools/28.0.2
BUILD_DIR = build
NAME = purrr