1360s

I had lots of fun doing this homework, I didn’t have to much difficulty doing this. The reason being is that I saw some references and tutorials on how to do this and some prior knowledge as well. But if I had to say what was the most difficult thing to me was keeping track of codes and confuse them with each other which would have created errors if I did. As a running gag I added a pixelated alolan exeggutor in the game.

int x, y, w, h, speedX, speedY;
int pX, pY, pW, pH, pS;
int pXDelta, pYDelta;
boolean up, down;
boolean upDelta, downDelta;
int score = 0;
int scoreDelta = 0;
int winScore = 10;
PImage pixel;
PImage pixelE;

void setup() {
size(1360, 700);

textSize(50);

x = width/2;
y = height/2;
w = 50;
h = 50;
speedX = 10;
speedY = 10;

rectMode(CENTER);
pX = 50;
pY = height/2;
pW = 30;
pH = 100;
pS = 30;

pXDelta = width - 50;
pYDelta = height/2;

pixel = loadImage (“Pixel.gif”);
pixelE = loadImage (“Upsidedown.png”);
}

void draw() {
imageMode (CORNER);
image (pixel, 0, 0, width, height);
image (pixelE, 585, -210);

fill(0, random(0, 255), 255);
stroke(0, 0, 255);
strokeWeight(random(0, 10));
ellipse(x, y, w, h);

fill(255);
rect(pX, pY, pW, pH);
rect(pXDelta, pYDelta, pW, pH);

fill(255);
text(score, 100, 50);
text(scoreDelta, width - 100, 50);

if(x > width - w/2) {
setup();
speedX = -speedX;
score = score + 1;
}

else if(x < 0 + w/2) {
speedX = -speedX;
setup();
scoreDelta = scoreDelta + 1;
}

if(y > height - h/2) {
speedY = -speedY;
}

else if (y < 0 + h/2) {
speedY = -speedY;
}
if (x - w/2 < pX + pW/2 &&
y - h/2 < pY + pH/2 &&
y - h/2 > pY - pH/2) {
if(speedX < 0) {
speedX = - speedX;
}
}
else if (x + w/2 > pXDelta - pW/2 &&
y - h/2 < pYDelta + pH/2 &&
y - h/2 > pYDelta - pH/2) {
if(speedX > 0) {
speedX = - speedX;
}
if(score == winScore) {
}
if(scoreDelta == winScore) {
}
}

x = x + speedX;
y = y + speedY;
}

void keyPressed() {
if(key == ‘w’ || key == 'W’) {
up = true;
}
if(key == ’s’ || key == ’S’) {
down = true;
}
if(keyCode == UP) {
upDelta = true;
}
if(keyCode == DOWN) {
downDelta = true;
}
if(up) {
pY = pY + pS;
}
if(down) {
pY = pY - pS;
}
if(upDelta) {
pYDelta = pYDelta + pS;
}
if(downDelta) {
pYDelta = pYDelta - pS;
}
if(pY - pH/2 < 0) {
pY = pY + pS;
}
if(pY + pH/2 > height) {
pY = pY - pS;
}
if(pYDelta - pH/2 < 0) {
pYDelta = pYDelta + pS;
}
if(pYDelta + pH/2 > height) {
pYDelta = pYDelta - pS;
}
}

void keyReleased() {
if(key == 'w’ || key == 'W’) {
up = false;
}
if(key == ’s’ || key == ’S’) {
down = false;
}
if(keyCode == UP) {
upDelta = false;
}
if(keyCode == DOWN) {
downDelta = false;
}
}

Denmark's Physical Age Throughout the Ages

Spain : England : Russia : America : Prussia : Liechtenstein

Requested

———————

Born Around the Years 700 - 850

860 to 1000

Physically 3 - 8

1100 - 1360

Physically 9 - 13

1400 – 1814

Physically 14 - 17

1820 - 1950

Physically 18 - 20

1960+

21+ ( Basically looks the same )

( Halloween outfit )

————

Enjoy! o7o

Whenever I can find the time, I read history books and the classics so as to avoid idle living. I constantly remind myself that the world is so vast and state affairs so important that I cannot succumb to laziness and complacency for even a moment. Once one has succumbed to laziness and complacency, everything will become stagnant.
—  the Emperor Yongle, Zhu Di (1360 - 1424)