Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using UnityEngine.Events;
[AddComponentMenu("Playground/Conditions/Condition Collision")]
[RequireComponent(typeof(Collider))]
public class ConditionCollision : ConditionBase
{
// This function will be called when something touches the trigger collider
void OnCollisionEnter(Collision collision)
damageDealt = 0
armor -= dmg
if armor <= 0
{
damageDealt = -armor
armor = 0
}
hp -= damageDealt
@jm
jm / games.md
Created April 23, 2018 21:52
Lot of SNES and NES games

SNES

  • Street Fighter Alpha 2
  • Shadowrun
  • Super Punch Out!!
  • Street Fighter 2: Turbo
  • Super Mario All Stars
  • Super Mario Kart
  • NBA Jam
@jm
jm / keybase.md
Created January 3, 2017 02:08
keybase.md

Keybase proof

I hereby claim:

  • I am jm on github.
  • I am jmcanally (https://keybase.io/jmcanally) on keybase.
  • I have a public key whose fingerprint is F853 3A02 8F59 1F72 582C F0A9 5507 B445 849A 08FA

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am jm on github.
* I am jmcanally (https://keybase.io/jmcanally) on keybase.
* I have a public key whose fingerprint is F853 3A02 8F59 1F72 582C F0A9 5507 B445 849A 08FA
To claim this, I am signing this object:
class Plugin
def self.plugins
@plugins ||= []
end
def self.inherited(klass)
@plugins ||= []
@plugins << klass
end
Number of files: 409
Total content size: 94.432945MB
Traceback (most recent call last):
File "test/harness", line 113, in <module>
main()
File "test/harness", line 110, in main
harness.run()
File "/Users/jeremymcanally/code/level3/test/lib/test_framework.py", line 106, in run
self.execute(test_cases_to_execute)
File "test/harness", line 74, in new_func
@jm
jm / wtf.txt
Created January 25, 2014 18:15
wtf
Starting master on port 9090
Jan 25, 2014 1:14:34 PM com.twitter.finagle.http.HttpMuxer$$anonfun$5 apply
INFO: HttpMuxer[/admin/metrics.json] = com.twitter.finagle.stats.MetricsExporter(<function1>)
Jan 25, 2014 1:14:35 PM com.twitter.finagle.Init$ apply
INFO: Finagle version 6.5.2 (rev=69027d3638f46795ac7f8cd9f44defc795c5d080) built at 20130723-110154
Cleaning up children
Killing child's pgid: 22315
Traceback (most recent call last):
File "test/harness", line 113, in <module>
main()
@jm
jm / toml.rb
Last active December 14, 2015 03:39
TOML. Because lol.
#######################
#
# THIS IS NOW A REAL GEM (and much improved...):
# https://github.com/jm/toml
#
#######################
require 'time'
@jm
jm / test.rb
Created December 23, 2012 17:12
# Test File
class Test
def test() puts 'test'; nil
end
LOL = "Hello"