Skip to content

Commit

Permalink
Backup
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed May 18, 2024
1 parent 3cdf1fa commit e008207
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ float g = 0;
float b = 200;
float y = 0;
void setup ()
{size(500, 500);
{size(500,500);
background(3,3,3);
}
void draw()
{
y=y+1;
stroke(r,g,b);
fill(random(200,170));
fill(0,95,255);
quad(y,x,x,b,b,x,x,y);
x=x +zig;
quad(y,x,x,200,200,x,x,y);
x=x+ +zig;

if (x > zig + 450)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
void information()
{
rect(410, 20, 180, 80, 18);
rect(410, 110, 180, 80, 18);
rect(410, 200, 180, 80, 18);


//Coming Soon
if (mousePressed == true && mouseX > 20 && mouseY > 20 && mouseY < 20)
{
grej_klickat = true;
save("window.tif");
sekund_naer_klickat = millis();
} else
{
//; // nothing
}
if (grej_klickat == true && sekund_naer_klickat + 3000 < millis())
{
grej_klickat = false;
background(0);
bild = loadImage("window.tif");
}
if (grej_klickat == true)
{
textSize(40);

rect(width / 2 - 200, height / 2 - 100, 400, 200);
fill(255);
text("COmIng so0n", 200, 170);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
float [] xs; //<>//
float [] ys;
float [] rs;
String [] ord;
PImage bild;

boolean grej_klickat = false;
int sekund_naer_klickat = 1000000;
boolean is_game_running = false;

void setup()
{
information();
draw_menu();

background(0);
size(600, 320);
xs = new float[256];
ys = new float[256];
rs = new float[256];
ord = new String[100];
ord[0] = "PLAY";
ord[1] = "version_1.0.0";
ord[2] = "?";
for (int i=0; i<256; ++i)
{
xs[i] = 160;
ys[i] = 100;
rs[i] = 160;
}
saveStrings("words.txt", ord);
ord = loadStrings("words.txt");
}

void draw()
{
textSize(11);
text("version_1.0.0", 5, 315);

if (is_game_running == true) {
information();
textSize(40);
text(ord[1], 270, 265);

} else {
draw_menu();
text(ord[1], 270, 265); //<>//
}
}




Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
void draw_menu()
{
rect(410, 20, 180, 80, 18);
rect(410, 110, 180, 80, 18);
rect(410, 200, 180, 80, 18);
fill(0, 75, 0);
rect(230, 217, 130, 70, 108);
fill(255);
triangle (240, 260, 270, 250, 240, 235);

textSize(40);
text(ord[0], 270, 265);

{
for (int i=0; i<256; ++i)
{
xs[i] += random(-4, 4);
ys[i] += random(-4, 4);
rs[i] += random(-4, 4);
fill(rs[i]+10, 0, 0);
stroke(rs[i]+10, 0, 0);
ellipse(xs[i], ys[i], 10, 10);
}
stroke(0);
fill(255);
textSize(60);
text("E", 40, height / 2);
text("R", 80, height / 2);
text("R", 120, height / 2);
text("O", 160, height / 2);
text("R", 200, height / 2);

text("6", 260, height / 2);
text("6", 290, height / 2);
text("6", 320, height / 2);

textSize(20);
text("By: ShiftBlock", 80, 180);

PImage bild;
{
bild = loadImage("Meny.jpg");
image(bild, 5, 5);
}
if (mousePressed == true && mouseX > 230 && mouseY > 217 && mouseY < 217 + 70) {
is_game_running = true;
background(0);
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
PLAY
Adam ar galen
Svenskar ar galna
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null

0 comments on commit e008207

Please sign in to comment.