Skip to content

Instantly share code, notes, and snippets.

View python-b5's full-sized avatar

python-b5 python-b5

View GitHub Profile
enum event_states {
waiting,
running,
finished
}
// Creates a new cutscene.
function cutscene_init() {
return instance_create_layer(0, 0, "system", obj_cutscene);
}

Battle system

Undertale Wildfire's battle system is significantly different from Undertale's, and not just in the gameplay sense. Unlike the original game, I have tried my best to make Undertale Wildfire's battle system as easy to understand and work with as possible. Of course, since it is a complicated system, there is still a learning curve, but I aim with this document to make it seem slightly less intimidating. I promise (or hope, at least) that once you get used to it, this system will make creating encounters both quick and relatively painless.

@python-b5
python-b5 / minesweeper.py
Created December 18, 2024 18:02
terminal-minesweeper
# terminal-minesweeper
# by python-b5
#
# A small implementation of Minesweeper in the terminal.
# Imports
import datetime
import json
import math

UTW text system

Undertale Wildfire has a custom text system to allow for special formatting. To draw text with this system, use the draw_formatted_text() function, as follows:

draw_formatted_text(x, y, font, char_spacing, line_spacing, text)

  • x and y: The position to draw the text at. The text alignment in GameMaker is always set to fa_left and fa_top when using this function.
  • font: The font to draw characters with.
  • char_spacing: The number of pixels from the start of each character to the start of the next one (even proportional fonts will be drawn as monospaced with this function - this is how the base dialogue font is drawn!).
  • line_spacing: The number of pixels from the top of each line to the top of the next one.
  • text: The text to draw.
@python-b5
python-b5 / tas_tools.py
Created January 13, 2022 20:51
Scratch TAS importer/exporter
# Scratch TAS importer/exporter
# by python-b5
#
# Imports and exports runs from _TAS_'s Scratch TAS games.
# Import run
def import_run(run):
inputs = []
number = ""
@python-b5
python-b5 / Speedy Square.py
Last active December 17, 2016 21:38
A chat simulation where Speedy Square hacks in. Sort of a electronic story. speedysquare-hack-v.4.2.8 uses Turtle. Prints and time.sleep were used too. A sequel will be made soon. **NO, THE SEQUEL WILL NOT COME SOON. THIS ISN'T REALLY A GOOD PROGRAM.**
print("CODE SERVER v7.8.3 OWNER: APPLESAUCE")
import time
time.sleep(3)
print("SPEEDY SQUARE LOGGED IN")
time.sleep(2)
print("WARNING: SPEEDY SQUARE ATTEMPING TO MODIFY SYSTEM CODE")
time.sleep(3)
print("SYSTEM MODIFY *** EDITED BY <ADMIN> SPEEDY SQUARE")
time.sleep(2)
print("SYSTEM HALT *** NEW SYSTEM LOADED")