Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
public class NetworkInterpolatedTransform : MonoBehaviour
{
public double interpolationBackTime = 0.1;
internal struct State
{
internal double timestamp;
@poemdexter
poemdexter / gist:6379872
Created August 29, 2013 15:49
JSON error from crystal reports webreporting.jar
[8/29/13 10:16:25:277 CDT] 0000004a SystemOut O 10:16:25,277 ERROR [JSONParameter] Unable to set the ancestors
com.businessobjects.report.web.json.JSONException: JSONObject["ancestors"] is not a JSONArray.
at com.businessobjects.report.web.json.JSONObject.getJSONArray(JSONObject.java:456)
at com.businessobjects.report.web.shared.JSONParameter.getDiscreteValueFromJSON(JSONParameter.java:740)
at com.businessobjects.report.web.shared.JSONParameter.getValueFromJSON(JSONParameter.java:679)
at com.businessobjects.report.web.shared.JSONParameter.jsonToDefaultFieldValues(JSONParameter.java:657)
at com.businessobjects.report.web.shared.JSONParameter.getDefaultValues(JSONParameter.java:544)
at com.businessobjects.report.web.shared.JSONParameter.toParameterField(JSONParameter.java:942)
at com.businessobjects.report.web.shared.ParametersHelper.jsonToFields(ParametersHelper.java:309)
at com.businessobjects.report.web.state.ViewerState.restoreCommonState(ViewerState.java:2852)
@poemdexter
poemdexter / gist:6348653
Created August 27, 2013 01:19
indie speed run info

You are team captain of: The Disaster Muffins You have 1 Credits

Your team has been formed, and you've stocked the pantry with energy drinks, coffee, and potato chips. You're AC is set to a free-wheelin' 72 degrees, and your favorite pair of socks just came out of the drier. Suddenly, you're struck with the warm, familiar tingle of battle. That may have just been the static build up in your socks, but one thing is certain: you're ready for this. It's time to begin.

Your Theme:

The 2013 Indie Speed Run Begins in September. Come back then to start. In the mean time, you can modify your team and player profiles using the links above.

public class Game
{
public Sheep theSheepInGame;
public void Init()
{
theSheepInGame = new Sheep();
}
public void Update()
public class Player : Mobs
{
public Player() : base()
{
name = "Forer";
MaxHP = 40;
CurHP = 40;
MaxMP = 10;
CurMP = 10;
Damage = 3;
class RPGBattlePage
{
void ResolveAttack(Mob attacker, Mob target)
{
//fights happen here
AddMessage("oh mob did a thing");
// more fight logic happen here
AddMessage("mob totally died");
}
public static class MovesManager
{
public enum Moves
{
Attack,
Wobble
}
public void PerformMove(Mob caster, Mob target, Moves move)
{
@poemdexter
poemdexter / proof.cs
Created June 19, 2013 01:42
music in unity proof of concept
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(AudioSource))]
public class SoundPOC : MonoBehaviour
{
FContainer container;
CBox greenbox;
bool started = false;
@poemdexter
poemdexter / replay.ahk
Created February 11, 2013 15:17
autohotkey script for replay viewing in dota 2
; gain focus of dota 2 window
MouseClick, left, 1000, 100
; wait 1 second
Sleep, 1000
Loop {
; click view replay button
MouseClick, left, 380, 460
; wait 16 seconds for game to load
Sleep, 16000
@poemdexter
poemdexter / gist:3805021
Created September 29, 2012 19:32
0.0.8a Changelog
09.29.12
1. Added animation to spider and bat.
2. Added manual way to change frame of animation.
3. Spider now waits half second before jumping again.