Skip to content

Instantly share code, notes, and snippets.

View OhTerryTorres's full-sized avatar

Terry Torres OhTerryTorres

View GitHub Profile
@OhTerryTorres
OhTerryTorres / VolumeFadeOut.scpt
Created May 23, 2024 19:49
AppleScript to fade out volume
set minutesBeforeFadeOutBeginsPrompt to display dialog "Minutes before fade out begins?" default answer "1" with icon note buttons {"Cancel", "Continue"} default button "Continue"
set fadeOutIntervalPrompt to display dialog "Fade out interval? (in seconds)" default answer "10" with icon note buttons {"Cancel", "Continue"} default button "Continue"
set minutesBeforeFadeOutBegins to (text returned of minutesBeforeFadeOutBeginsPrompt) as number
set fadeOutInterval to (text returned of fadeOutIntervalPrompt) as number
set fadeOutStartCountdown to minutesBeforeFadeOutBegins * 60
set fadeOutStartProgress to 0
set progress total steps to fadeOutStartCountdown
#!/bin/bash
# Based on the Windows version by mrsilver76
# https://github.com/mrsilver76/itunes_playlist_exporter
# ASSUMPTIONS
# 1. You have a Plex server.
# 2. You have exported your playlists to a folder of .m3u files.
# 3. You can update configuration values below.
@OhTerryTorres
OhTerryTorres / SpriteKitLevelsByJSON.md
Last active July 14, 2023 15:16
Creating levels for a SpriteKit game using JSON

Making Levels in a SpriteKit game from JSON

I’m making a SpriteKit game for a wine shop in Boston’s North End. We want it to

  1. have an old-school, chunky, arcadey hack-and-slash feel
  2. properly convey that old-school feel using effortless touch controls
  3. have its levels built (and potentially updated after launch) using an external data file

I want to talk about how I plan on implementing that last one: level data from an external file.