This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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); | 
NewerOlder