This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.IntBuffer; | |
import java.nio.ByteOrder; | |
public class Buffer extends PGraphics3D | |
{ | |
protected int current_color = 0; | |
public Buffer(PApplet parent) | |
{ | |
setParent(parent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ThreeJSLoader { | |
PApplet parent; | |
ThreeJSLoader(PApplet _parent) { | |
parent = _parent; | |
} | |
boolean isBitSet(int value, int position ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A rectangular box | |
class Box { | |
// Instead of any of the usual variables, we will store a reference to a Box2D Body | |
Body body; | |
float w,h; | |
Box(float x, float y) { | |
this(x, y, 64, 64, false); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Element { | |
Body body; | |
float w, h; | |
String spriteFilename; | |
BodyType bodyType; | |
Element(float x, float y, float w, float h, String _spriteFilename, boolean obstacle) { | |
if (obstacle) | |
bodyType = BodyType.STATIC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.video.*; | |
import remixlab.proscene.*; | |
Scene scene; | |
FPACameraProfile wProfile; | |
PShape rocket; | |
PShader toon; | |
ArrayList<VideoLog> logs = new ArrayList<VideoLog>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"sceneName" : "Merlino", | |
"elements" : | |
[ | |
{ | |
"id": "merlin", | |
"scale": 1, | |
"transform": { | |
"posY": 16.31540298461914, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Animation3D { | |
ArrayList psystems; | |
Animation3D() { | |
psystems = new ArrayList(); | |
//for(int i = 0; i < 30; i++) | |
float offset = -120; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
OlderNewer