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
| /* | |
| * Load images into atlas so it can be drawn using `atlas.drawSprite()` | |
| * | |
| * Use imgloader.addImage(name, url) to add images you want to load | |
| * Use imgloader.combineImages() after adding all the images | |
| * Now you can use atlas.drawSprite(name, pos, size, rot, color) to draw the image | |
| */ | |
| if(!imgloader) { | |
| var imgloader = { |
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/node | |
| var net = require('net') | |
| var sock = net.connect(process.argv[3] || 5001, process.argv[2]) | |
| process.stdin.pipe(sock) | |
| sock.pipe(process.stdout) | |
| sock.on('connect', function () { |
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
| sim.numSpawns = 5; | |
| sim.numComPoints = 16; | |
| sim.mapScale = 3; | |
| types.SpawnPoint.prototype["static"] = false; | |
| sim.setRallyPoint = function(player, point) { | |
| if (!player) { | |
| return; | |
| } |
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
| // Generated by CoffeeScript 1.12.7 | |
| (function() { | |
| var offset, partSize, | |
| modulo = function(a, b) { return (+a % (b = +b) + b) % b; }; | |
| window.NxN = 100; | |
| window.SIZE = 20; | |
| window.validSpec = function(player, spec) { |
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
| /* | |
| * From version 0.51.1 the game already has this functionality | |
| */ |
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/sh | |
| #wait for internet | |
| while ! ping -q -w 1 -c 1 apod.nasa.gov > /dev/null; do sleep 5; done | |
| html=$(curl https://apod.nasa.gov/apod/astropix.html) | |
| yturl=$(grep -Eom1 "https://www.youtube.com/embed/[^\"]+" <<< "$html") | |
| if [ ! -z $yturl ]; then | |
| youtube-dl "$yturl" -o /tmp/apod | |
| name=$(echo /tmp/apod.* | cut -f 1 -d ' ') |
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
| /* | |
| * Loads all weapons in this gist, plus their images | |
| */ | |
| if(!window.partLoader_partsLoaded) { | |
| let imgloaderUrl = "https://gist.githubusercontent.com/Rio6/456ce90a98f38d74d095e7caf5a63f31/raw/"; // image loader | |
| let parts = [ | |
| "https://gist.githubusercontent.com/Rio6/51e853a5d8252a9a362c80e29f6c82d1/raw/energyBeam.js", // Leach beam | |
| "https://gist.githubusercontent.com/Rio6/51e853a5d8252a9a362c80e29f6c82d1/raw/jwdeWeapons.js", // Battle Cannon, Needle Gun |
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
| (function() { | |
| var ffaTypes = ["FFA", "IO", "Race"]; | |
| eval(onecup["import"]()); | |
| quickScorePlayer = function(player) { | |
| if (player.side === "dead") { | |
| return; | |
| } |
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
| /* | |
| * Super hackable team chat | |
| * | |
| * Put $ sign in front of your message and it will get encrypted | |
| * Only people who has this script and is on your team will be able to understand it | |
| */ | |
| if(!teamChat) { | |
| var teamChat = { | |
| network_end: RootConnection.prototype.send, |
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/sh | |
| # A script to record a screen area using ffmpeg | |
| while getopts hwso:: opts; do | |
| case $opts in | |
| h) | |
| echo "$0 [-w | -s] [-o dir]" | |
| exit | |
| ;; | |
| w) | |
| echo "Select win" |