Skip to content

Instantly share code, notes, and snippets.

View subsoap's full-sized avatar
😎
Game developing

Brian subsoap

😎
Game developing
View GitHub Profile
@aglitchman
aglitchman / defold_ie11_support.html
Last active April 16, 2020 10:17
Defold recently dropped support of Internet Explorer 11 for HTML5 builds. If you want to run your game on IE11 then add this code to your engine_template.html right after the <body> tag. Tested on Defold 1.2.167. Changelog: 2020-04-16 - Added "resume" implementation for AudioContext for Edge ≤18, Chrome <41, Firefox <40 browsers.
<script id="old-browser-support">
if (!(navigator.getGamepads || navigator.webkitGetGamepads)) {
navigator.getGamepads = function() { return []; };
}
if (!(window.AudioContext || window.webkitAudioContext)) {
window.AudioContext = function() {
this.sampleRate = 44100;
this.destination = 0;
this.currentTime = 0;
this.state = "running";
@dapetcu21
dapetcu21 / style-guide.md
Created April 27, 2018 14:28
Interrogation Style Guide

Lua style guide

Linting

This project makes use of [Luacheck] for catching common mistakes. Install it and configure it for your text editor.

Editor configuration

We recommend [Atom] for editing Lua code along with the following packages:

  • [linter-luacheck]: [Luacheck] integration
@britzl
britzl / bundle.sh
Last active December 10, 2020 13:45
Script to build and bundle a Defold project for multiple platforms
#!/bin/bash
title=$(less game.project | grep "^title = " | cut -d "=" -f2 | sed -e 's/^[[:space:]]*//')
title_no_space=$(echo -e "${title}" | tr -d '[[:space:]]')
echo "Project: ${title}"
if [ ! -f bob.jar ]
then
echo "Unable to find bob.jar. Download it from d.defold.com."
exit 1
@tinabeans
tinabeans / template.html
Last active February 13, 2024 09:18
A super-barebones single-column responsive email template, assuming a max-width of 540px. Read about it on the Fog Creek blog.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@media only screen and (min-device-width: 541px) {
.content {