This file contains 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
import re | |
# Requires python 3 | |
# YYC-compiled GameMaker Studio games don't work with most GameMaker Studio asset extractors. | |
# However, GameMaker Studio just stores textures as raw PNGs, no matter the compilation type. | |
# This script works by searching for all PNG images in the data file. | |
# This could be the data.win, .data, or gamename.exe files. | |
pngs = [] |
This file contains 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/sh | |
# Copyright (c) 2014 Josef Patorpsty | |
# | |
# This software is provided 'as-is', without any express or implied | |
# warranty. In no event will the authors be held liable for any damages | |
# arising from the use of this software. | |
# | |
# Permission is granted to anyone to use this software for any purpose, | |
# including commercial applications, and to alter it and redistribute it |
This file contains 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
var normalize = Phaser.Point.normalize; | |
var zero = new Phaser.Point(0, 0); | |
class Joystick extends Phaser.Sprite { | |
constructor({x, y, holder, pin}) { | |
super(game, 0, 0, holder); | |
this.anchor.setTo(0.5, 0.5); | |
this.fixedToCamera = true; | |
this.cameraOffset.setTo(x, y); |
This file contains 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
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |