-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cdf1fa
commit e008207
Showing
7 changed files
with
239 additions
and
3 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
activities/20240518_slutpresentation/second/malek/Malek/ERROR_666/Chapters_information.pde
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
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); | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
activities/20240518_slutpresentation/second/malek/Malek/ERROR_666/ERROR_666.pde
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
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); //<>// | ||
} | ||
} | ||
|
||
|
||
|
||
|
50 changes: 50 additions & 0 deletions
50
activities/20240518_slutpresentation/second/malek/Malek/ERROR_666/Menu.pde
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
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); | ||
} | ||
} | ||
} |
Binary file added
BIN
+1.43 KB
activities/20240518_slutpresentation/second/malek/Malek/ERROR_666/Meny.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+563 KB
activities/20240518_slutpresentation/second/malek/Malek/ERROR_666/window.tif
Binary file not shown.
100 changes: 100 additions & 0 deletions
100
activities/20240518_slutpresentation/second/malek/Malek/ERROR_666/words.txt
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
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 |