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.core.PApplet; | |
public class MainApp extends PApplet{ | |
public static void main(String[] args) | |
{ | |
PApplet.main("MainApp", args); | |
} | |
public void settings() |
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.core.PApplet; | |
import processing.core.PImage; | |
import java.awt.*; | |
PImage orig; | |
int scaledown = 1; | |
public void settings() | |
{ | |
fullScreen(); | |
orig = screenshot(); |
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.awt.*; | |
PImage orig; | |
int scaledown = 2; | |
public void settings() | |
{ | |
orig = screenshot(); | |
// orig = loadImage("C:\\Projects\\Sand\\ohno.jpg"); | |
if(orig.width == 1920 && orig.height == 1080){ | |
fullScreen(); | |
scaledown = 1; |
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.core.PApplet; | |
import processing.core.PImage; | |
import java.awt.*; | |
PImage orig; | |
int scaledown = 1; //only used for huge pictures | |
int effectScale = 2; | |
float gravity = 0.5f; //values from 0 to 1 | |
int screenWidth = 1920; |
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.awt.*; | |
private PImage orig; | |
private int effScl = 3; //effect scale used heaping pixels into groups to ease processor's burden | |
private float yForce = 0.95f; //values from 0 to 1 | |
private float xForce = 0.95f; //values from 0 to 1 | |
public void settings() | |
{ | |
fullScreen(); |
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.awt.*; | |
PImage orig; | |
public void settings() { | |
int scl = 85; //percent of the screen size (comment this and uncomment fullscreen for 100) | |
size(round((1920/100)*scl), round((1080/100)*scl)); | |
// fullScreen(); | |
orig = screenshot(); | |
} |
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.core.PApplet; | |
import processing.core.PImage; | |
import processing.core.PVector; | |
import java.awt.*; | |
PImage orig; | |
FlowField flowField; | |
Piece[] pieces; | |
//int windowScale = 120; //dimensions of sketch window as percent of screen size (just go fullscreen for 100) |
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
public static void main(String[] args) { | |
PApplet.main("MainApp"); | |
} | |
private Cave cave; | |
private Player player; | |
private boolean gameover = false; | |
private boolean inputLocked = 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
import android.app.Activity; | |
import android.content.Context; | |
import android.os.Vibrator; | |
private Tunnel tunnel; | |
private Player player; | |
private MonsterManager monsterManager; | |
private int startGameFrame = 0; | |
private int framesElapsed = 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
int signature = 90; | |
int[] ruleset = new int[]{0,1,0,1,1,0,1,0}; | |
void setup(){ | |
fullScreen(); | |
} | |
void draw(){ | |
if(frameCount%60==0){ |