Skip to content

Instantly share code, notes, and snippets.

View JEphron's full-sized avatar

Jordan Ephron JEphron

  • here and there
View GitHub Profile
@JEphron
JEphron / processing_camera.pde
Created December 10, 2015 02:25
An example of a following camera in procesisng
Camera2D cam;
Player player;
ArrayList<PVector> backgroundItems = new ArrayList<PVector>();
void setup() {
size(500, 500);
cam = new Camera2D(0, 0);
player = new Player(width/2, height/2);
for (int i = 0; i < 100; i++) {
backgroundItems.add(new PVector(random(-width, width*2), random(-height, height*2)));
@JEphron
JEphron / OptrexDisplay.ino
Created July 6, 2015 23:05
Some code for an Optrex PWB-16205b 2 line LCD character display
// tested with the PWB-16205b
// manual for the display: http://users.ece.utexas.edu/~valvano/Datasheets/LCDOptrex.pdf
int _rs = 12;
int _enable = 11;
int _d4 = 2;
int _d5 = 3;
int _d6 = 4;
int _d7 = 5;
@JEphron
JEphron / screeps.js
Created November 22, 2014 01:57
blah
var _ = require("lodash");
var harvestController = require("harvester");
var buildController = require("builder");
var guardController = require("guard");
var healerController = require("healer");
var spawnController = require("spawner");
var data = require("data");
// control creeps