/MacTris

A Tetris clone using SpriteKit

Primary LanguageSwiftMIT LicenseMIT

MacTris

A simple Tetris clone using SpriteKit

Acknowledgements

Tetriminos

Music

Sound FX

Font

Controller Support

Disable Launchpad on select button:

defaults write com.apple.GameController bluetoothPrefsMenuLongPressAction -integer 0
defaults write com.apple.GameController bluetoothPrefsShareLongPressSystemGestureMode -integer -1

Todo

  1. Make RNG selectable (NES / 7BAG)
  2. Make keyRepeatShiftInitial configurable (NES: 16, Default: 6)

Build

  1. The first build might fail due to generation of the file Secrets.generated.swift.
  2. To supply a secret for archive builds, copy the file Secrets.xcconfig to Secrets.install.xcconfig and change it's content.

DMG

  1. brew install create-dmg
  2. copy MacTris.app into a source directory
  3. create-dmg --volname "MacTris Installer" --volicon source/MacTris.app/Contents/Resources/AppIcon.icns --background InstallerBackground.svg --window-pos 200 120 --window-size 840 400 --icon-size 100 --icon MacTris.app 200 160 --hide-extension MacTris.app --app-drop-link 640 155 "MacTris-Installer.dmg" source/