Skip to content

Instantly share code, notes, and snippets.

View selfsame's full-sized avatar

Joseph Parker selfsame

View GitHub Profile
This file has been truncated, but you can view the full file.
[;9x9 input patterns
[0x000001010 0x000001011 0x000001100]
[0x000001010 0x000001011 0x000001101]
[0x000001010 0x000001011 0x000001110]
[0x000001010 0x000001011 0x000001111]
[0x000001010 0x000001011 0x000010011]
[0x000001010 0x000001011 0x000010100]
[0x000001010 0x000001011 0x000010101]
[0x000001010 0x000001011 0x000010110]
(ns game.core
(:use
arcadia.core
arcadia.linear
tween.core
hard.core
hard.input
pdfn.core))
(declare fire-bullet make-level)
(ns game.core
(:use
arcadia.core
arcadia.linear
tween.core
hard.core
hard.input))
(declare fire-bullet)
(ns game.core
(:use
arcadia.core
arcadia.linear
tween.core
hard.core
hard.input))
(def orbit-height 2.0)
Broadcaster jplur_ : let me know if the font size is too small
Broadcaster jplur_ : hmm something is being lazy
Broadcaster jplur_ : oh nevermind it's not deleting the object before I find the new one
Broadcaster jplur_ : back in 5
Broadcaster jplur_ : okie
Broadcaster jplur_ : so I want the ship to fly around the sphere
Broadcaster jplur_ : sorry quick promotional gif
Broadcaster jplur_ : oh yeah gizmo ray is a direction not a second position
Broadcaster jplur_ : hmm
Broadcaster jplur_ : something like..
using UnityEngine;
using clojure.lang;
using System;
using System.Collections;
using System.Collections.Generic;
public class TimeLine : IEnumerator{
public object[] fns;
int idx = -1;
public IFn predicate = null;
(defn anim [^UnityEngine.Material m ^UnityEngine.GameObject o]
(lazy-timeline (cycle [
(wait (+ (rand) 0.1))
(tween {:material-color (UnityEngine.Color. (?f) (?f) (?f))} m 0.5 {:in :pow3})
(tween
{:local {
:scale (Vector3. 2.0 2.0 2.0)
:position (v3+ (.position (.transform o))
(Vector3. 0.0 2.0 0.0))}} o 1.0 {:in :pow5})
(wait (+ (rand) 0.1))
tween.core=> (ppexpand
(tween
{:light {
:range (float (rand 50))
:color (color (rand-vec 1.0 1.0 1.0))}}
(the lamp) 0.5 :pow4))
(let [this25673 (the lamp)
cursor (*TweenCursor false Time/time 0.5 0.0 0.0)
Pair50179 (*Pair-single (float 0) (float (rand 50)))
tween.core=> (ppexpand (tween {:position (->v3 0 1 0) :local-scale (->v3 1.6)}))
(fn [this21403 duration]
(let [cursor (TweenCursor. false Time/time 0.0)
val24239 (.position (.transform this21403))
val24240 (.localScale (.transform this21403))
tar24241 (->v3 0 1 0)
tar24242 (->v3 1.6)]
(fn []
(when-not (.initiated cursor)
(ns tween.core
(:import Vector3
[UnityEngine Resources]
MonoBehaviour IEnumerator WaitForSeconds Time)
(:require [clojure.walk :as walk]
;[clojure.pprint :as pprint]
;[pdfn.core :refer [ppexpand]]
)
(:use
arcadia.core