Hello!
I have some code in Processing, when I press "Play" everything works like it should, but when I try to export an applet or application it shows white screen and nothing more. Do you know how to solve such a problem?
Here is the code:
void setup() {
size(1200, 600, P2D);
frameRate(30);
background(255, 248, 236);
castle = loadImage("castle.gif");
//img = loadImage("cannon.png");
//image(img, 5, height - img.height);
rectMode(CORNER);
ellipseMode(CENTER);
PFont font;
font = loadFont("a.vlw");
textFont(font);
fill(0);
stroke(0);
line(185 + 70 * 5, 0, 185 + 70 * 5, 40);
image(castle, 560, height - 100);
rect(560, height - 5, 80, 5);
text(castleLife, 575, 500);
ellipse(0, height, 16, 16);
}
//PImage img;
PImage castle;
float castleLife = 15;
int lowT = 650;
int highT = 740;
int g = 0;
int d =0;
int force = 0;
float angle = 90.0;
int hits = 0;
void draw() {