These are some of the codes we'll need to implement the geography game -
For images:
PImage b;
b = loadImage("laDefense.jpg");
image(b, 0, 0);
For background behind the map:
PImage b;
b = loadImage("laDefense.jpg");
background(b);
Another for particular shapes we intend to input:
PShape s;
s = loadShape("bot.svg");
smooth();
shape(s, 10, 10, 80, 80);// Loading a shape when using setup() and draw()
PShape s;
void setup() {
s = loadShape("bot.svg");
smooth();
noLoop();
}
void draw() {
shape(s, 10, 10, 80, 80);
}
Off course we will need alot more...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment