Skip to content

Instantly share code, notes, and snippets.

View Bradshaw's full-sized avatar
🚀
Lost in space

Gaeel Bradshaw-Rodriguez Bradshaw

🚀
Lost in space
View GitHub Profile
@Bradshaw
Bradshaw / gist:6489560
Last active December 22, 2015 14:59 — forked from hugodes/gist:6489552
-- Files are like functions in lua, except they're only meant to be calles once so you're better off doing what I suggested in my gist
local health = 100 -- This is local to the whole file
-- class wasn't useful
function getHealth()
return health -- This returns the value, so health is closed to the file, but can be "read" with this function
end
@Bradshaw
Bradshaw / 21102013
Created October 21, 2013 06:36
Some of the best fortunes that appear in my terminal, shared for those who do not have the privilege ;)
_______________________________________________________________________
/ "In Christianity neither morality nor religion come into contact with \
| reality at any point." |
\ -- Friedrich Nietzsche /
-----------------------------------------------------------------------
\
\
.::!!!!!!!:.
.!!!!!:. .:!!!!!!!!!!!!
~~~~!!!!!!. .:!!!!!!!!!UWWW$$$
@Bradshaw
Bradshaw / wilbrain.c
Created November 12, 2013 15:13
William's brain
int main(){
int worry;
worry = &worry;
return 0;
}
@Bradshaw
Bradshaw / Android compile error
Last active January 1, 2016 08:09
Error when trying to build default haxeflixel template project to anything other than Flash
Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\dev\EggAndSoldiers\eggandsoldiers\eggandsoldiers.hxproj" -ipc a32081bf-bb93-47c0-a34f-f04dfb8b7781 -version "3.0.0" -compiler "C:\HaxeToolkit\haxe" -notrace -library "C:\Program Files (x86)\FlashDevelop\Library" -target "android"
Building eggandsoldiers
haxelib run openfl build C:\dev\EggAndSoldiers\eggandsoldiers\Project.xml android
C:\HaxeToolkit\haxe\lib/openfl-native/1,1,4/flash/display/Stage.hx:935: characters 2-21 : haxe.#Timer has no field __checkTimers
C:\HaxeToolkit\haxe\lib/openfl-native/1,1,4/flash/display/Stage.hx:1062: characters 17-33 : haxe.#Timer has no field __nextWake
C:\HaxeToolkit\haxe\lib/openfl/1,2,1/openfl/Assets.hx:600: characters 10-24 : Cannot access private field __handle
C:\HaxeToolkit\haxe\lib/openfl/1,2,1/openfl/Assets.hx:600: characters 36-50 : Cannot access private field __handle
Build halted with errors (haxelib.exe).
Done(1)
@Bradshaw
Bradshaw / gist:8318379
Created January 8, 2014 15:20
Git logs
commit 9a26e2641164e715c390026cfe08200953a259f8
Author: Kevin Bradshaw <kevin@naturalpad.fr>
Date: Tue Dec 3 10:31:59 2013 +0100
I am a lazy coder and I forget to commit shit
commit 806330a85d62ba8a4d9255e65f8ce9eb9de53685
Author: Kevin Bradshaw <kevin@naturalpad.fr>
Date: Wed Nov 27 15:43:58 2013 +0100
@Bradshaw
Bradshaw / Gifify.cs
Last active February 27, 2017 18:43
Drop this into a UnityProject, attach it to a GameObject, customise the values if necessary, and then hold down the key you selected to capture images that you can gifify later.
using UnityEngine;
using System.Collections;
using System.IO;
/*
Gifify.cs
Author: Kevin "Gaeel" Bradshaw
Drop this into a UnityProject, attach it to a GameObject, customise the values if necessary, and then hold down the key you selected to capture images that you can gifify later.
@Bradshaw
Bradshaw / numberreview.md
Last active January 2, 2016 21:39
Opinion on the tweet: "Is there any value to reviews that are just "things happen, number out of number"? … http://tmblr.co/Zzj1hx13vkAIU " - @mammonmachine

Games reviews come in all different flavours, and having recently started to follow Cara Ellison's (@Carachan1) and Chris Priestman's (@CPriestman) reviews, I've also been subject to their ire at responses along the lines of "This isn't a real review, all you're doing is talking about things you thought about while playing."

Now I profoundly disagree with the "not a real review" standpoint. Besides, what is a REAL review? In these reviews, the writer gets to lay out the way they felt, the symbolism and the references they picked up, and generally their rather abstract opinion of the piece. This makes for entertaining and useful reading.

The usefulness of the reading isn't quite as pronounced or easily detectable than more by-the-numbers approaches to reviewing. Some reviewers prefer to keep their inner dialogue to themselves, and describe the game as a product. They'll talk about how low a match lasts, and that it makes for a good lunch-break game. That there are over 15 classes to pick from, each with thre

@Bradshaw
Bradshaw / JeuxDeCombat.md
Last active January 2, 2016 22:59
Une déscription de ce qui peut, objectivement, être considéré un jeu "de combat", afin de pouvoir faire une étude quantitative sur le concept.

Jeux de Combat

Un jeu de combat est un jeu où une des mécaniques de base, est une simulation de combat. Ceci va de Call of Duty avec ses fusillades qui forment le plus clair du jeu, jusqu'à Mario où on rebondit parfois sur des tortues mignonnes afin de se frayer un chemin.

Notions

On dit "combat" pour décrire le mécanisme de jeu, et non pas l'habillage narratif. Par éxemple, un jeu abstrait comme Geometry Wars où l'on tire des traits sur des formes géometriques qui poursuivent le joueur est un jeu "de combat", malgré le visuel et univers abstrait et non-violent.

@Bradshaw
Bradshaw / FuckYouOculus.cs
Last active January 3, 2016 03:39
Trust me, put this on the cameras (CameraLeft and CameraRight) ;)
using UnityEngine;
using System.Collections;
public class FuckYouOculus : MonoBehaviour {
public int actuallySetFarClippingPlaneTo = 10000;
void Update () {
gameObject.GetComponent<Camera>().farClipPlane = actuallySetFarClippingPlaneTo;
}
@Bradshaw
Bradshaw / git log
Created January 14, 2014 17:10
Flip flopping in code intelligence.
commit 51ec53fac81f7208c889dd86e3096eafe3b0d9b4
Author: Kevin Bradshaw <kevin@naturalpad.fr>
Date: Tue Jan 14 18:05:08 2014 +0100
Smart finite level generation
commit d6f625680811ddb23190ee099c36b7bc60a75a44
Author: Kevin Bradshaw <kevin@naturalpad.fr>
Date: Mon Jan 13 17:46:53 2014 +0100