Skip to content

Instantly share code, notes, and snippets.

@darkwave
darkwave / EdiacaraBiota.pde
Last active August 29, 2015 14:08
IndieVault Jam prototype
import fisica.*;
FWorld world;
FPoly poly;
PShape level;
FPoly target;
PImage splash;
float angle = 0;
boolean go, goLeft, goRight, started;
@darkwave
darkwave / Libreria3D.pde
Last active August 29, 2015 14:08
Simple 3D engine under GPL v3
import remixlab.proscene.*;
import remixlab.dandelion.geom.Quat;
import remixlab.dandelion.core.InteractiveFrame;
import remixlab.dandelion.geom.Vec;
HashMap<String, PShape> cachedShapes = new HashMap<String, PShape>();
class Game extends Scene {
boolean keyboardEnabled = true;
@darkwave
darkwave / EsempioElement.pde
Created October 11, 2014 10:14
Esempio Element
import remixlab.proscene.*;
Scene scene;
Element elemento1, elemento2, elemento3;
void setup() {
size(displayWidth, displayHeight, P3D);
scene = new Scene(this);
elemento1 = new Element(0, 0, 0);
elemento2 = new Element(100, 0, 0);
elemento3 = new Element(0, 0, 100);
@darkwave
darkwave / ElementalHttpServer.java
Last active August 29, 2015 14:05
Scratch Helper using Processing prototype
import java.io.File;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.URL;
import java.net.URLDecoder;
import java.nio.charset.Charset;
import java.security.KeyStore;
import java.util.Locale;
@darkwave
darkwave / Game.pde
Created August 3, 2014 09:47
Prototype for a game engine based on JSON and Reflection using Processing
import java.lang.reflect.*;
import java.util.Map;
import java.util.Map.Entry;
int availableIndex = 0;
int generateID() {
return availableIndex++;
}
@darkwave
darkwave / SpaceShooter.pde
Created July 4, 2014 19:26
WIP Simple Space Shooter made with Processing
Game game;
Player player;
String[] imagesFilenames = new String[] {
"ufoRed.png", "ufoGreen.png", "ufoBlue.png",
"meteorGrey_tiny2.png", "meteorGrey_tiny1.png", "meteorGrey_small2.png", "meteorGrey_small1.png", "meteorGrey_med2.png", "meteorGrey_med1.png", "meteorGrey_big4.png", "meteorGrey_big3.png", "meteorGrey_big2.png", "meteorGrey_big1.png", "meteorBrown_tiny2.png", "meteorBrown_tiny1.png", "meteorBrown_small2.png", "meteorBrown_small1.png", "meteorBrown_med3.png", "meteorBrown_med1.png", "meteorBrown_big4.png", "meteorBrown_big3.png", "meteorBrown_big2.png", "meteorBrown_big1.png",
};
String playerSkin = "playerShip1_blue.png";
void setup() {
size(800, 600, P2D);
@darkwave
darkwave / Animation3D.pde
Created November 11, 2013 07:56
GarbagePatchState Augmented Reality prototype made using ARsenico Licensed under GPL v. 3
class Animation3D {
ArrayList psystems;
Animation3D() {
psystems = new ArrayList();
//for(int i = 0; i < 30; i++)
float offset = -120;
@darkwave
darkwave / test.json
Last active December 26, 2015 18:39
An experimental "scene format" using json
[
{
"sceneName" : "Merlino",
"elements" :
[
{
"id": "merlin",
"scale": 1,
"transform": {
"posY": 16.31540298461914,
@darkwave
darkwave / ProtocolAlpha.pde
Last active December 25, 2015 10:38
Asylum Jam 2013 in Rome "Protocol 23 Module 64" game entry
import processing.video.*;
import remixlab.proscene.*;
Scene scene;
FPACameraProfile wProfile;
PShape rocket;
PShader toon;
ArrayList<VideoLog> logs = new ArrayList<VideoLog>();
@darkwave
darkwave / Circle.pde
Created October 1, 2013 18:27
Full source code of Spaghetti Coder's Eat and Play for the Game Jam IndieSpeedRun 2013. PBox2D Library by Daniel Shiffman needed.
class Circle {
float radius;
Body body;
BodyType bodyType;
PImage ballImage;
PImage ballReflexImage;
Circle(float x, float y, float radius) {
this(x, y, radius, true, 1.0);