This file contains hidden or 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
# Text from the game "Fallow" | |
All the text and dialog from the game Fallow from Ada Rook, 2021. | |
Roughly sorted per location and according to the game timeline. Includes only the game story, does not include the out of bounds areas. | |
Warning: spoilers (by definition). | |
## Intro |
This file contains hidden or 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 python3 | |
# Mara Huldra 2024 | |
# SPDX-License-Identifier: MIT | |
''' | |
Print and colorize "dream stream" from dreams-of-an-electric-mind.webflow.io into the active terminal. | |
''' | |
import argparse | |
import datetime | |
from html.parser import HTMLParser | |
import os |
This file contains hidden or 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
# Godot screenshot handler. | |
# Part of "Xenomusa" (C) Mara Huldra 2022-2023 | |
# SPDX-License-Identifier: MIT | |
# | |
# To configure in project settings: | |
# - Add script as autoload. | |
# - Assign a key (say, F12) to action "screenshot". | |
extends Node | |
# Screenshot target setup. |
This file contains hidden or 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
# Rexpaint .xp loader, updated for Godot 4. | |
# Part of "Xenomusa" (C) Mara Huldra 2022 | |
# Based on rex-is-godot by RisingThumb. | |
# SPDX-License-Identifier: MIT | |
extends Object # DO NOT INSTANTIATE | |
class_name RexPaint | |
## Offset into image pixel for glyph. | |
const OFS_GLYPH := 0 | |
## Offset into image pixel for foreground color. |
This file contains hidden or 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
# Tile data instancing plugin for consistent tile configurations. | |
# Part of "Xenomusa" (C) Mara Huldra 2022 | |
# SPDX-License-Identifier: MIT | |
@tool | |
extends EditorPlugin | |
# Avaiable tileset templates | |
enum TemplateType { | |
TERRAIN = 0, # 7x7 terrain template | |
WALL = 1, # 4x4 wall template |
This file contains hidden or 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 python3 | |
# (C) Mara Huldra 2022 | |
# SPDX-License-Identifier: MIT | |
''' | |
Parser for XBin file (ANSI/ASCII/PETSCII art grid). | |
Convert to unicode and print it out. | |
''' | |
import itertools | |
import struct | |
import sys |
This file contains hidden or 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 | |
# Install and build dependencies for mkxp for running the game Fallow by Ada Rook. | |
# Script by Mara Huldra 2021. | |
# SPDX-License-Identifier: MIT | |
# Tested on Ubuntu 20.04 and Debian. | |
set -e | |
PREFIX="${PWD}/fallow-install" | |
BUILDDIR="${PWD}/fallow-build" | |
FALLOWHOME="${HOME}/.steam/debian-installation/steamapps/common/Fallow" | |
PAR=1 |
This file contains hidden or 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
''' | |
RISC-V assembler. | |
''' | |
# Mara Huldra 2021, based on riscv-assembler by Kaya Celebi | |
# SPDX-License-Identifier: MIT | |
from collections import namedtuple | |
__all__ = ['Assembler'] | |
class UnknownInstruction(Exception): |
This file contains hidden or 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
''' | |
Font conversion utility (rexpaint). | |
''' | |
# Mara Huldra 2021 :: SPDX-License-Identifier: MIT | |
from collections import namedtuple | |
from PIL import Image, ImageFont, ImageDraw | |
# Hardcoded text and background color RGBA, this matches rexpaint's existing fonts | |
FG_COLOR = (255, 255, 255, 255) |
NewerOlder