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
| { | |
| "meta": { | |
| "title": "Connect", | |
| "artist": "ClariS", | |
| "genre": "J-Pop", | |
| "version": 1, | |
| "-sm-banner": "banner.png", | |
| "-sm-background": "background.png" | |
| }, | |
| "timing": { |
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
| #extension GL_OES_standard_derivatives : enable | |
| precision highp float; | |
| varying vec2 v_texCoord; | |
| uniform sampler2D texture0; | |
| const float distancethreshold = 0.5; | |
| float aastep(float threshold, float dist) | |
| { | |
| float afwidth = 0.5 * length(vec2(dFdx(dist), dFdy(dist))); | |
| return smoothstep(threshold - afwidth, threshold + afwidth, dist); |
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 merge(t1, t2) | |
| for k,v in pairs(t2) do | |
| if type(v) == "table" then | |
| if type(t1[k] or false) == "table" then | |
| tableMerge(t1[k] or {}, t2[k] or {}) | |
| else | |
| t1[k] = v | |
| end | |
| else | |
| t1[k] = v |
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/env python2 | |
| """ | |
| .SM rating fixer thingy! | |
| ======================== | |
| Usage: | |
| Just put the file in the folder with the things you need fixed and run it! | |
| You can also give it an argument on the command line to specify the path. |
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
| import math | |
| class Stats: | |
| def __init__(self, base_stats, aptitude): | |
| self._base_stats = dict(base_stats) | |
| self._aptitude = dict(aptitude) | |
| self.level(1) | |
| def __str__(self): | |
| stats = self._stats |
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
| return { | |
| -- loadstring with function calls disabled. Useful for config files. | |
| safe_load = function(data) | |
| local f = assert(loadstring("return (" .. data .. ")")) | |
| local count = 0 | |
| debug.sethook(function() | |
| count = count + 1 | |
| if count >= 3 then | |
| error "cannot call functions" | |
| end |
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
| -- | |
| This format is meant to be very easy to parse, flexible and deterministic. A | |
| section may only be defined once. If multiple are defined using the same | |
| identifier then only the first will be parsed. | |
| Sections are marked by lines beginning with -- <identifier>. Blank identifiers | |
| or ones that aren't searched for will be completely ignored and may contain | |
| anything. Spaces, Tabs, and Newlines (LF, CRLF) are ignored. | |
| Note: the version tag is _required_ to guarantee compatibility - if you don't |
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
| waveframe's .rs format | |
| ---------------------- | |
| Waveframe's implementation of the .rs format is nothing more than a specific | |
| definition of what Waveframe looks for. It may or may not match shakesoda's | |
| wishes for the format, though it tries to stay as close to the spec as possible. | |
| =={ Standard Sections }== | |
| These standard sections may include nonstandard elements. | |
| See each section's intro text for more information. |
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
| D-Pad Up 1 | |
| D-Pad Down 2 | |
| D-Pad Left 3 | |
| D-Pad Right 4 | |
| O 6 | |
| U 9 | |
| Y 10 | |
| A 7 |
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
| local _lfsgdi = love.filesystem.getDirectoryItems or love.filesystem.enumerate | |
| function love.filesystem.getDirectoryItems(dir, callback) | |
| if not callback then | |
| return _lfsgdi(dir) | |
| else | |
| local files = _lfsgdi(dir) | |
| for i, path in ipairs(files) do | |
| callback(path) | |
| end | |
| end |