Skip to content

Instantly share code, notes, and snippets.

View nightm4re94's full-sized avatar

Matthias nightm4re94

View GitHub Profile
@nightm4re94
nightm4re94 / blenderCityImporter.py
Last active November 29, 2024 22:26
A Blender script to import cities created with Watabou's Medieval Fantasy City Generator
import bpy
import json
import math
import random
from shapely.geometry import Polygon, Point
# Load JSON data
with open("D:/Downloads/nightfair.json", "r") as f:
city_data = json.load(f)
@nightm4re94
nightm4re94 / spriteInfoGenerator.ps1
Created August 18, 2024 15:46
LITIENGINE sprite info generator
# This PowerShell script will help you generate sprite info files for LITIENGINE.
# Define the path to the folder containing the images
$folderPath = "."
# Define the path to the output text file
$outputFilePath = "sprites.info"
Get-ChildItem -Recurse $folderPath -Include "*.jpg","*.png","*.bmp" | % {
$image = [System.Drawing.Image]::FromFile($_.FullName)
[PSCustomObject]@{
@nightm4re94
nightm4re94 / versioning.gradle
Last active March 15, 2023 17:14
Gradle semantic versioning
tasks.named("printGitSemVer") {
group = "versioning"
description = "Prints the Gradle project version resolved from git tags."
}
tasks.register("incrementMajorVersion") {
group = "versioning"
doLast {
String newTag