Skip to content

Instantly share code, notes, and snippets.

🖥️
Work

Ryan Tyler tyler6699

🖥️
Work
Block or report user

Report or block tyler6699

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ambientPixelShader.glsl
#ifdef GL_ES
#define LOWP lowp
precision mediump float;
#else
#define LOWP
#endif
varying LOWP vec4 vColor;
varying vec2 vTexCoord;
View vagrant.rb
cask 'vagrant' do
version '1.9.8'
sha256 '45472731bde1df0bf2e0e0cf1ee460e2851c920d8b7b8af939e41156515cf49c'
# hashicorp.com/vagrant was verified as official when first introduced to the cask
url "https://releases.hashicorp.com/vagrant/#{version}/vagrant_#{version}_x86_64.dmg"
appcast 'https://github.com/hashicorp/vagrant/releases.atom'
name 'Vagrant'
homepage 'https://www.vagrantup.com/'
@tyler6699
tyler6699 / Gruntfile.js
Created Aug 17, 2019
Grunt file and NPM package file for compressing and obfuscating JS13KB Game
View Gruntfile.js
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
mangle: {
toplevel: true,
eval: true,
keep_fnames: false,
@tyler6699
tyler6699 / audio.js
Created Aug 15, 2019
Simple audio clips for JS13K Game Jam
View audio.js
// NOISES
var NOISEFX=0;
var COINFX=1;
var JUMPFX=2;
var FALLFX=3;
// Sound
// https://xem.github.io/MiniSoundEditor/
var context = new AudioContext();
var o = null
View gist:aa0bdca55796553e42f2abc519f8132d
@Carelesslabs
A simple Grunt setup for JS13kGames
This gruntfile will take all javascript files in source folder "assets/js/*.js" and compress them into
a single file "dst/game.min.js". Storing you minified HTML file and images in the dst folder also allows you
to compress this one dst folder for submission.
If you want individual files then change "expand: false," to " expand: true,". The "ext: '.min.js'" setting will tag min.js onto
all of the separate files.
View double_walled_menu
╔═════════════════════╗
║ @CarelessLabs ║
╚═════════════════════╝
╔══════════╦══════════╗
║ ║ ║
╠══════════╩══════════╣
║ ║
╠══════════╦══════════╣
║ ║ ║
View dans maze
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title> Dans Maze </title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
View gist:47f6848a46370e8ac34fcb07dc62ed91
SELECT j.name JobName
, h.step_name StepName
, CAST(STR(h.run_date, 8, 0) AS DATETIME)
+ CAST(STUFF(STUFF(RIGHT('000000' + CAST (h.run_time AS VARCHAR(6)), 6),
5, 0, ':'), 3, 0, ':') AS DATETIME) AS StartDatetime
, DATEADD(SECOND,
( ( h.run_duration / 1000000 ) * 86400 )
+ ( ( ( h.run_duration - ( ( h.run_duration / 1000000 )
* 1000000 ) ) / 10000 ) * 3600 )
+ ( ( ( h.run_duration - ( ( h.run_duration / 10000 ) * 10000 ) )
View gist:58a00ba6e679990984f8b090558ac3b4
// SOURCE
// http://techblog.orangepixel.net/2015/07/shine-a-light-on-it/
// http://www.java-gaming.org/topics/2d-nuclear-throne-style-lighting-libgdx/38314/view.html
// VARS
FrameBuffer lightBuffer;
TextureRegion lightBufferRegion;
SpriteBatch light_batch;
// RENDER LOOP
@tyler6699
tyler6699 / gist:88e832e60a5dd27b3c9e9fdb33438a59
Created Jul 11, 2017
Calculate a vector relative to an objects postion and angle
View gist:88e832e60a5dd27b3c9e9fdb33438a59
public Vector2 calculatePosition(float angle, float distance, Vector2 centre) {
float radians = (float) Math.toRadians(angle);
float x = (float) ((Math.cos(radians) * distance) + centre.x);
float y = (float) ((Math.sin(radians) * distance) + centre.y);
return new Vector2(x, y);
}
You can’t perform that action at this time.