Skip to content

Instantly share code, notes, and snippets.

@tzamora
tzamora / gist:5328656
Last active December 15, 2015 21:49
OnControllerColliderHit CharacterController physics con rigidbodies
public float pushPower = 2.0f;
public float weight = 6.0f;
//
// push rigidbodies
//
void OnControllerColliderHit (ControllerColliderHit hit)
{
Rigidbody body = hit.collider.attachedRigidbody;
@tzamora
tzamora / gist:5445748
Last active December 16, 2015 13:59
Puntos de combate
Estilo de arte y direccion grafica
- frames
- colores
- estilo flat
- pixelaje
- efectos especiales (particulas)
- fuentes
Gameplay
Yo Arbitro
//Invertir el color de los botones (el fondo blanco es el de los botones seleccionados). Esto aplica también para los iconos en las otras vistas
//Hacer que el popup de confirmación de la incidencia aparezca a la par del jugador
//Habilitar el botón de "Sí" en la confirmación (simplemente cierra el popup)
Desmarcar el jugador cuando se cierra el popup "fue una pinga programarlo"
//Texto "Cerrar" va con la "c" en minúscula. Esto aplica para las otras vistas
//El color del marcador (flechita verde arriba del jugador) va en rojo. Esto aplica para las otras vistas (es decir, el marcador va en el color que representa cada modo: rojo para el árbitro, verde para el entrenador, morado para el aficionado, amarillo para el jugador y verde oscuro para las incidencias)
Yo Aficionado
  • a task list item
  • list syntax required
  • normal formatting, @mentions, #1234 refs
  • incomplete
  • completed
//
// Remove all env references in the server.js file
// So change the original file from this:
//
var http = require('http');
var connect = require('connect');
var colors = require('colors');
module.exports = function (debug) {
@tzamora
tzamora / gist:2a481c4b03e7fda722e9
Last active August 29, 2015 14:05
HS test document
wagerType: function() {
if (!_.isUndefined(wagerType) && wagerType.length > 1) {
return wagerType.charAt(0).toUpperCase() + wagerType.substring(1).toLowerCase();
} else {
return '';
}
},
currentSelection: function() {
return currentSelection;
}
$rootScope.$on('clearCustomerSession', function() {
$scope.betSlips = gsAPI.getBetSlips();
delete $localStorage.currentCustomer;
gsAPI.logoutCustomer();
$state.go('app.dashboard-lookup');
// $scope.$apply();
});
I found this comment in the latests post of the Unity official blog. I feel that is a good and important critic about Unity that everyone should read.
here:
http://blogs.unity3d.com/2014/12/23/calling-all-vr-enthusiasts-target-the-oculus-rift-with-unity-free
Commment made by EDGARR (whoever you are)
"In fact, nothing has changed in Unity in recent versions, I’m referring to bugs, not new features.
The heightmap bug, that reversed him, someone checked or repaired? No, it seems that the area of the heightmap
there, is forgotten.
@tzamora
tzamora / introrx.md
Last active August 29, 2015 14:12 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.