This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Colors = { | |
RESET = {1,1,1,1}, | |
WHITE = {1,1,1}, | |
BLACK = {0,0,0}, | |
RED = {1,0,0}, | |
GREEN = {0,1,0}, | |
BLUE = {0,0,1}, | |
} | |
local setup_args = function(args, tween) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Secret Code Parser - change strings into secret codes defined! | |
--Created by Brandon Blanker Lim-it @flamendless | |
local str_sample = arg[1] or "Hi, my name is Brandon" | |
--this is the JEJEMON trend code | |
local secret_code = { | |
a = {"4","ha","ah"}, | |
i = "1", | |
e = "3", | |
o = "0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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 | |
LOVE_NAME = game.love | |
BUILD_DIR = build | |
OUTPUT_DIR = ${BUILD_DIR}/output | |
RELEASE_DIR = ${BUILD_DIR}/release | |
NAME = purrr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# script for Linux (WSL-compatible) dev workflow | |
# Brandon Blanker Lim-it @flamendless | |
set -euf -o pipefail | |
source .env | |
PROJ="" | |
GOOS="linux" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import platform | |
import argparse | |
from enum import Enum | |
from zipfile import ZipFile | |
from typing import Dict, Callable, List | |
GAME_NAME: str = "NAME" | |
IDENTITY: str = "IDENT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pycodestyle] | |
max-line-length = 96 | |
ignore = E302,E252,W504,E128,E129,E261,E124 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function run() | |
{ | |
echo "Running build.sh" | |
if [ $(uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip') ]; then | |
echo "This is Windows WSL!" | |
./build_win.sh run | |
else | |
echo "This is Linux" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test1() | |
local imgdata = love.image.newImageData("avatar.png") | |
local format = imgdata:getFormat() | |
local filename = "pack" | |
if love.filesystem.getInfo(filename) then | |
love.filesystem.remove(filename) | |
end | |
local file = love.filesystem.newFile(filename, "w") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- these have to be sorted by longest first | |
local keywords = { | |
"function", | |
"then", | |
"end", | |
"if", | |
} | |
local symbols = { |
NewerOlder