-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUMBC_LIFE.pde
2341 lines (2272 loc) · 77.9 KB
/
UMBC_LIFE.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
color backgroundColor; //variable used to store the background color
boolean playButtonVisible; //determines if the play button will be visible
boolean helpButtonVisible = false; //determines if the help button will be visible
boolean chooseMajor = false;
boolean results = false;
color backgroundColorResults;// for results page
//Determines if the major selecting buttons are visible
boolean compEngVisible = false;
boolean visualArtsVisible = false;
boolean psychologyVisible = false;
//Indicates whether or not the player has selected
boolean majorChosen = false;
//Indicates when period ends
boolean periodOver = false;
//Variables for stat bar characteristics
int barLen = 25;
int healthBarWidth = 450;
int moneyBarWidth = 450;
int gradesBarWidth = 450;
int happinessBarWidth = 450;
int barFill = 50;
//Variables for action button characteristics
int buttonLen = 125;
int buttonWidth = 200;
int buttonColor = #01040D;
//Determines the difficulty multiplier for stat changes depending on major.
float EZmultiplier;
float HARDmultipler;
//For detecting when an action is made so that a new question appears.
int questionNum = 0;
//Timeline Function, time period will change based on number of clicks
int currentPeriod = 0;
// boolean for showing results screen
boolean resultScreenVisible = false;
int periodNum = 0;
// Images
//Umbc Life logo Image
PImage umbc;
//Athlete Image
PImage anAthlete;
boolean athlete;
//syllabus Image
PImage syllbus;
boolean curriculum;
//Part Time Job Image
PImage job;
boolean partTime;
//Involvement Fest Image
PImage involvementFest;
boolean attendFest;
//Gym Image
PImage gym;
boolean attendgym;
//Soccer Image
PImage soccer;
boolean goToGame;
//Major Image
PImage major;
boolean yourMajor;
//running late Image
PImage late;
boolean runningLate;
//The Commons Image
PImage commons;
boolean participateInEvent;
//Major Assignment Image
PImage majorAssignment;
boolean doAssignment;
// studying for midterm
PImage midterm;
boolean studyMidTerm;
// buying merch
PImage merch;
boolean umbcMerch;
// true grits
PImage grits;
boolean trueGrits;
//Psychology Study Tactics
PImage psychone;
boolean psychStudy;
//Psychology Friends
PImage psychtwo;
boolean psychFriends;
//design research study psychology
PImage psychthree;
boolean designStudy;
//Comp Eng Code Debugging
PImage compone;
boolean codeDebug;
//Comp Eng code collab
PImage comptwo;
boolean codeCollab;
// Comp Coding help
PImage compthree;
boolean codeSearch;
//Visual Arts theatre
PImage artsone;
boolean visualArtsTheatre;
//Visual Arts choosing materials
PImage artstwo;
boolean choosingMaterials;
//Visual Arts Inspiration
PImage artsthree;
boolean findingInspo;
//umbc social gathering
PImage gathering;
boolean socialGathering;
//umbc fitness decision
PImage routine;
boolean fitnessRoutine;
// friend conflict
PImage conflict;
boolean friendConflict;
// deciding to buy new game
PImage game;
boolean newGame;
// balancing work and life
PImage work;
boolean workLife;
//psych NMI club
PImage psychfour;
boolean nmiClub;
//psych bad teacher
PImage psychfive;
boolean badTeacher;
// psych research opportunity
PImage psychsix;
boolean researchChance;
// comp e tired
PImage compfour;
boolean feelingTired;
// comp e robot
PImage compfive;
boolean robot;
// comp e software project
PImage compsix;
boolean software;
// arts starting over
PImage artsfour;
boolean startingOver;
// arts adding class
PImage artsfive;
boolean addClass;
// arts exhbition
PImage artssix;
boolean exhibition;
// career fair
PImage career;
boolean careerFair;
// cold day
PImage cold;
boolean coldDay;
// fortnite
PImage fortnite;
boolean skipClass;
// morning routine
PImage wake;
boolean wakingUp;
// campus invite
PImage invite;
boolean campusInvite;
// career club
PImage cclub;
boolean careerClub;
// new shoes
PImage shoes;
boolean newShoes;
// rainy day
PImage rainy;
boolean rainyDay;
// study decision
PImage decide;
boolean studyDecision;
// last minute study material
PImage timeout;
boolean timeOut;
// study break
PImage party;
boolean studyBreak;
// coffee decision
PImage coffee;
boolean coffeeDrink;
// finals sleep
PImage sleepy;
boolean extraRest;
// final grade
PImage stressed;
boolean finalGrade;
// void setup, includes all image files along with play button, size, and background color
void setup() {
size(710, 750);
backgroundColor = color(#000000); //sets the inital background color to black
playButtonVisible = true; //Show play button at start-up
anAthlete = loadImage("ATHLETIC.jpg");
syllbus = loadImage("syllabi.jpg");
job = loadImage("parttime.png");
involvementFest = loadImage("involvement.jpg");
gym = loadImage("planningweek.png");
soccer = loadImage("umbcsoccer.jpg");
major = loadImage("social.jpg");
late = loadImage("late.jpg");
commons = loadImage("commonslobby.jpg");
umbc = loadImage("umbclifee.png");
majorAssignment = loadImage("latenight.jpg");
midterm = loadImage("midterm.jpg");
merch = loadImage("umbcmerch.jpg");
grits = loadImage("truegrits.jpg");
psychone = loadImage("psychologystudy.jpg");
psychtwo = loadImage("psychfriends.jpg");
psychthree = loadImage("thinkgirl.jpg");
compone = loadImage("codedebug.png");
comptwo = loadImage("teamcode.jpg");
compthree = loadImage("forum.jpg");
artsone = loadImage("umbctheatre.jpg");
artstwo = loadImage("choosingmaterials.jpg");
artsthree = loadImage("findinginspo.jpg");
gathering = loadImage("gathering.jpg");
routine = loadImage("raccenter.jpg");
conflict = loadImage("conflict.jpg");
game = loadImage("newgame.jpg");
work = loadImage("worklife.jpg");
psychfour = loadImage("NMIclub.jpg");
psychfive = loadImage("badteacher.jpg");
psychsix = loadImage("researchchance.jpg");
compfour = loadImage("tired.jpg");
compfive = loadImage("robot.png");
compsix = loadImage("software.jpg");
artsfour = loadImage("startingover.jpg");
artsfive = loadImage("schedule.png");
artssix = loadImage("exhibition.jpg");
career = loadImage("careerfair.jpg");
cold = loadImage("coldday.jpg");
fortnite = loadImage("fortnite.jpg");
wake = loadImage("wakingup.jpg");
invite = loadImage("invite.jpg");
cclub = loadImage("careerclub.jpg");
shoes = loadImage("newshoes.jpg");
rainy = loadImage("Autumn Rainy Day.jpg");
decide = loadImage("Work smart.jpg");
timeout = loadImage("timeout.jpg");
party = loadImage("studybreak.jpg");
coffee = loadImage("coffee.jpg");
sleepy = loadImage("umbcdorm.jpg");
stressed = loadImage("stressed.jpg");
}
//draw function
void draw() {
println(mouseX, mouseY); //COME BACK HERE WHENEVER YOU NEED TO SEE MOUSE COORDS
background(backgroundColor);
playButton();
helpButton();
timeline();
resultScreen();
// when choosemajor is true, show major boxes
if (chooseMajor) {
drawWelcomeMessage();
drawMajorBoxes();
helpButton();
}// if major is chosen, these functions will appear
if (majorChosen) {
drawStats();
drawActionButtons();
}
if (psychologyVisible) {
drawPsychologyQuestions();
}
if (visualArtsVisible) {
drawVisualArtsQuestions();
}
if (compEngVisible) {
drawCompEngQuestions();
}
// for images to appear
if (athlete) {
drawAthlete();
}
if (curriculum) {
drawSyllbus();
}
if (partTime) {
drawJob();
}
if (attendFest) {
drawInvolvementFest();
}
if (attendgym) {
drawGym();
}
if (goToGame) {
drawSoccer();
}
if (yourMajor) {
drawMajor();
}
if (runningLate) {
drawRunning();
}
if (participateInEvent) {
drawCommons();
}
if (doAssignment) {
drawLateNight();
}
if (studyMidTerm) {
drawMidTerm();
}
if (umbcMerch) {
drawMerch();
}
if (trueGrits) {
drawGrits();
}
if (psychStudy) {
drawPsychStudy();
}
if (psychFriends) {
drawPsychFriends();
}
if (designStudy) {
drawDesignStudy();
}
if (codeDebug) {
drawCodeDebug();
}
if (codeCollab) {
drawCodeCollab();
}
if (codeSearch) {
drawCodeSearch();
}
if (visualArtsTheatre) {
drawVisualArtsTheatre();
}
if (choosingMaterials) {
drawChoosingMaterials();
}
if (findingInspo) {
drawFindingInspo();
}
if (socialGathering) {
drawSocialGathering();
}
if (fitnessRoutine) {
drawFitnessRoutine();
}
if (friendConflict) {
drawFriendConflict();
}
if (newGame) {
drawNewGame();
}
if (workLife) {
drawWorkLife();
}
if (nmiClub) {
drawNMIClub();
}
if (badTeacher) {
drawBadTeacher();
}
if (researchChance) {
drawResearchChance();
}
if (feelingTired) {
drawFeelingTired();
}
if (robot) {
drawRobot();
}
if (software) {
drawSoftware();
}
if (startingOver) {
drawStartingOver();
}
if (addClass) {
drawAddClass();
}
if (exhibition) {
drawExhibition();
}
if (careerFair) {
drawCareerFair();
}
if (coldDay) {
drawColdDay();
}
if (skipClass) {
drawSkipClass();
}
if (wakingUp) {
drawWakingUp();
}
if (campusInvite) {
drawCampusInvite();
}
if (careerClub) {
drawCareerClub();
}
if (newShoes) {
drawNewShoes();
}
if (rainyDay) {
drawRainyDay();
}
if (studyDecision) {
drawStudyDecision();
}
if (timeOut) {
drawTimeOut();
}
if (studyBreak) {
drawStudyBreak();
}
if (coffeeDrink) {
drawCoffeeDrink();
}
if (extraRest) {
drawExtraRest();
}
if (finalGrade) {
drawFinalGrade();
}
checkButtonClicks();
}
//timeline function, appears top right of screen
void timeline() {
fill(0);
textSize(16);
textAlign(RIGHT, TOP);
if (questionNum >= 1 && questionNum < 11) {
text("Timeline: Starting Week ", width - 10, 10);
} else if (questionNum >= 11 && questionNum < 21) {
text("Timeline: Midterms", width - 10, 10);
} else if (questionNum >= 21 && questionNum < 31) {
text("Timeline: End of Semester", width - 10, 10);
} else if (questionNum >= 31 && questionNum < 39) {
text("Timeline: Finals Week", width - 10, 10);
}
// once questionNum = 39, stats, choices, and images will dissapear
if (questionNum == 39) {
majorChosen = false;
}
}
// For two choices player can select from
void drawActionButtons() {
if (playButtonVisible == false) {
fill(buttonColor);
rect(75, 375, buttonWidth, buttonLen);
fill(buttonColor);
rect(435, 375, buttonWidth, buttonLen);
helpButton();
}
}
//MAJOR SPECIFIC QUESTIONS
void drawPsychologyQuestions() { //This draws a psychology question when it hits a certain question number
if (questionNum == 7) {
textSize(18);
textAlign(CENTER);
text("In your first week as a psychology major, you learn about the Psychology Club. What's your decision?", width / 2, 100);
fill(255, 255, 255);
textSize(18);
text("Join the Psychology Club to enhance your social life and potentially boost your happiness", 80, 385, 180, 230);
text("Focus on individual studies and skip joining the club to prioritize your grades", 450, 385, 175, 300);
}
if (questionNum == 14) {
textSize(18);
textAlign(CENTER);
text("I have been reading so much material from the psychology textbook and there's a lot to memorize.", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(18);
text("Learn different techniques to develop a study routine", 80, 400, 180, 230);
text("Ask other students how they study", 450, 400, 175, 300);
}
if (questionNum == 14) {
psychStudy = true;
} else {
psychStudy = false;
}
if (questionNum == 17) {
textSize(18);
textAlign(CENTER);
text("I started using my knowledge of psychology to analyze my friends. Should I tell them?", width / 2, 100);
fill(255, 255, 255);
text("Yes, however let them know it wasn't on purpose", 80, 400, 180, 230);
text("No, it doesn't matter", 450, 430, 175, 300);
}
if (questionNum == 17) {
psychFriends = true;
} else {
psychFriends = false;
}
if (questionNum == 18) {
textSize(18);
textAlign(CENTER);
text("You're tasked with conducting a psychology experiment. How do you approach designing the study?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Develop a detailed experimental design, considering variables and ethical considerations.", 80, 385, 180, 230);
text("Design the study on the fly; you prefer a more flexible approach to experimentation.", 450, 385, 175, 300);
}
if (questionNum == 18) {
designStudy = true;
} else {
designStudy = false;
}
if (questionNum == 24) {
textSize(18);
textAlign(CENTER);
text("There's an opportunity to join the National Society for Mental Illnesses (NSMI). What's your decision?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Join the group to interact with individuals who share your major", 80, 385, 180, 230);
text("Explore the opportunity to join NSMI and contribute to mental health initiatives", 450, 385, 175, 300);
}
if (questionNum == 24) {
nmiClub = true;
} else {
nmiClub = false;
}
if (questionNum == 25) {
textSize(18);
textAlign(CENTER);
text("You're a psychology major, and your current teacher isn't very effective. What's your decision regarding attending class?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Persist and attend class despite the challenges with the teacher", 80, 385, 180, 230);
text("Opt to review lecture notes later and use alternative learning resources", 450, 385, 175, 300);
}
if (questionNum == 25) {
badTeacher = true;
} else {
badTeacher = false;
}
if (questionNum == 26) {
textSize(18);
textAlign(CENTER);
text("As a psychology major, you're offered an opportunity to be a research assistant on a project. What's your decision?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Accept the opportunity and gain research experience in your field", 80, 385, 180, 230);
text("Decline the opportunity due to other commitments or preferences", 450, 385, 175, 300);
}
if (questionNum == 26) {
researchChance = true;
} else {
researchChance = false;
}
}
void drawCompEngQuestions() { //This draws a Comp ENG question when it hits a certain question number
if (questionNum == 7) {
textSize(18);
textAlign(CENTER);
text("It's your first week as a computer engineering student. There's an opportunity to attend a coding workshop. What's your decision?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(17);
text("Participate in the coding workshop to strengthen your programming skills and potentially improve your grades", 80, 385, 180, 230);
text("Prioritize your physical health and skip the workshop to ensure a balanced lifestyle", 450, 385, 175, 300);
}
if (questionNum == 14) {
textSize(18);
textAlign(CENTER);
text("You encounter a bug in your code. How do you approach troubleshooting and resolving the issue?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(17);
text("Systematically debug the code, use debugging tools, and analyze logs to identify and fix the root cause of the issue.", 80, 385, 180, 230);
text("Experiment with different solutions intuitively; you enjoy the challenge of discovering creative fixes for coding issues.", 450, 385, 175, 300);
}
if (questionNum == 14) {
codeDebug = true;
} else {
codeDebug = false;
}
if (questionNum == 17) {
textSize(18);
textAlign(CENTER);
text("You're part of a team working on a software project. How do you approach collaborating with team members on coding tasks?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(17);
text("Adopt version control systems, communicate effectively, and use collaborative coding platforms to ensure seamless teamwork.", 80, 385, 180, 230);
text("Work on individual tasks and merge code later; you believe in the importance of individual contributions to the project.", 450, 385, 175, 300);
}
if (questionNum == 17) {
codeCollab = true;
} else {
codeCollab = false;
}
if (questionNum == 18) {
textSize(18);
textAlign(CENTER);
text("When you need help with coding issues, where do you typically go first?", width / 2, 100);
fill(255, 255, 255);
textSize(20);
text("Search online forums and communities", 80, 420, 180, 230);
text("Ask a classmate or a professor for assistance", 450, 400, 175, 300);
}
if (questionNum == 18) {
codeSearch = true;
} else {
codeSearch = false;
}
if (questionNum == 24) {
textSize(18);
textAlign(CENTER);
text("You're feeling exhausted, but there's a crucial topic being covered in your ENES 101 lecture. What's your decision?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Push through the fatigue and attend the lecture for the important content", 80, 385, 180, 230);
text("Choose rest over attending the lecture and catch up on the material later", 450, 385, 175, 300);
}
if (questionNum == 24) {
feelingTired = true;
} else {
feelingTired = false;
}
if (questionNum == 25) {
textSize(18);
textAlign(CENTER);
text("As a computer engineering student, you have an upcoming exam and a robot competition to prepare for. What's your approach?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Focus on studying for the exam to ensure academic success", 80, 400, 180, 230);
text("Allocate time to both studying for the exam and preparing for the robot competition", 450, 385, 175, 300);
}
if (questionNum == 25) {
robot = true;
} else {
robot = false;
}
if (questionNum == 26) {
textSize(18);
textAlign(CENTER);
text("As a computer engineering student, you're given the opportunity to join a software project. What's your decision?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Accept the opportunity and contribute to the software project", 80, 385, 180, 230);
text("Decline the opportunity due to other commitments or preferences", 450, 385, 175, 300);
}
if (questionNum == 26) {
software = true;
} else {
software = false;
}
}
void drawVisualArtsQuestions() { //This draws a visual arts question when it hits a certain question number
if (questionNum == 7) {
textSize(12);
textAlign(CENTER);
text("It's your first week as a visual arts student. You have the opportunity to showcase your artwork in a student exhibition. What's your decision?", width / 2, 100);
fill(255, 255, 255);
textSize(15);
text("Participate in the student exhibition to gain exposure and potentially boost your happiness", 80, 385, 180, 230);
text("Prioritize your academic studies and skip the exhibition to focus on your grades", 450, 385, 175, 300);
}
if (questionNum == 14) {
textSize(18);
textAlign(CENTER);
text("There is a performance for your theater class and you're in it. Invite your friends and family to watch?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(18);
text("Yes", 175, 450);
text("No", 535, 450);
}
if (questionNum == 14) {
visualArtsTheatre = true;
} else {
visualArtsTheatre = false;
}
if (questionNum == 17) {
textSize(18);
textAlign(CENTER);
text("You have to choose materials for your upcoming project. How do you decide on the art supplies?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Research and experiment with different materials to find the best fit for your artistic vision.", 80, 385, 180, 230);
text("Go with your intuition; you enjoy the spontaneity of choosing materials on the spot.", 450, 385, 175, 300);
}
if (questionNum == 17) {
choosingMaterials = true;
} else {
choosingMaterials = false;
}
if (questionNum == 18) {
textSize(18);
textAlign(CENTER);
text("As a visual arts major, you need inspiration for your next project. How do you seek out creative inspiration?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(17.5);
text("Visit art galleries, museums, and explore different cultural events to immerse yourself in diverse artistic expressions.", 80, 385, 180, 230);
text("Allow inspiration to come organically; you prefer to find creativity in everyday experiences and personal reflections.", 450, 385, 175, 300);
}
if (questionNum == 18) {
findingInspo = true;
} else {
findingInspo = false;
}
if (questionNum == 24) {
textSize(18);
textAlign(CENTER);
text("You're a visual arts student working on an art project, but it's not turning out as expected. What's your decision?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Persist and try to improve the current project despite the challenges", 80, 385, 180, 230);
text("Contemplate starting over with a fresh perspective on the art project", 450, 385, 175, 300);
}
if (questionNum == 24) {
startingOver = true;
} else {
startingOver = false;
}
if (questionNum == 25) {
textSize(18);
textAlign(CENTER);
text("You're contemplating adding a new class to your schedule. What's your decision?", width / 2, 100);
fill(255, 255, 255);
textSize(20);
text("Go ahead and add the class to diversify your academic experience", 80, 385, 180, 230);
text("Hold off on adding the class to ensure a manageable workload", 450, 385, 175, 300);
}
if (questionNum == 25) {
addClass = true;
} else {
addClass = false;
}
if (questionNum == 26) {
textSize(18);
textAlign(CENTER);
text("As a visual arts major, you're invited to showcase your work in a local art exhibition. What's your decision?", 110, 70, 500, 300);
fill(255, 255, 255);
textSize(20);
text("Accept the invitation and present your artwork in the exhibition", 80, 385, 180, 230);
text("Decline the invitation due to other commitments or preferences", 450, 385, 175, 300);
}
if (questionNum == 26) {
exhibition = true;
} else {
exhibition = false;
}
}
void changeStats(int healthChange, int moneyChange, int gradesChange, int happinessChange) {
// Update the stat bars based on the specified changes
healthBarWidth += healthChange;
moneyBarWidth += moneyChange;
gradesBarWidth += gradesChange;
happinessBarWidth += happinessChange;
// Ensure that stat bars stay within the specified range
healthBarWidth = constrain(healthBarWidth, 20, 450);
moneyBarWidth = constrain(moneyBarWidth, 20, 450);
gradesBarWidth = constrain(gradesBarWidth, 20, 450);
happinessBarWidth = constrain(happinessBarWidth, 20, 450);
}
void checkButtonClicks() {
if (questionNum == 1) { //Checks which question to ask
askToBeAthlete(); //
} else if (questionNum == 2) {
readingSyllabus();
} else if (questionNum == 3) {
partTimeJob ();
} else if (questionNum == 4) {
involvementFest();
} else if (questionNum == 5) {
gymVsLibrary();
} else if (questionNum == 6) {
soccerMatch();
} else if (questionNum == 7) {
} else if (questionNum == 8) {
runningLate();
} else if (questionNum == 9) {
pickingGroupProject();
} else if (questionNum == 10) {
joinClubs();
} else if (questionNum == 11) {
midTermStudy();
} else if (questionNum == 12) {
extraMoneyDecision();
} else if (questionNum == 13) {
foodDecision();
} else if (questionNum == 15) {
socialDecision();
} else if (questionNum == 16) {
fitnessDecision();
} else if (questionNum == 19) {
friendConflict();
} else if (questionNum == 20) {
gamePurchaseDecision();
} else if (questionNum == 21) {
studyVsSocializing();
} else if (questionNum == 22) {
involvementFestDecision();
} else if (questionNum == 23) {
ColdDayLateForClass();
} else if (questionNum == 27) {
FortniteSeasonRelease();
} else if (questionNum == 28) {
MorningRoutineDecision();
} else if (questionNum == 29) {
CampusEventInvitation();
} else if (questionNum == 30) {
CareerClubVsFunClub();
} else if (questionNum == 31) {
WornOutGymShoesDecision();
} else if (questionNum == 32) {
RainyDayUmbrellaDecision();
} else if (questionNum == 33) {
EarlyMorningStudyDecision();
} else if (questionNum == 34) {
LastMinuteStudyMaterial();
} else if (questionNum == 35) {
FinalsWeekSocialEvent();
} else if (questionNum == 36) {
CoffeeToStayAwake();
} else if (questionNum == 37) {
FinalsWeekSleepSchedule();
} else if (questionNum == 38) {
UnexpectedMajorGrade();
}
helpButton();
}
// draws stat bars
void drawStats() {
if (playButtonVisible == false) {
//text('Health:', 50,
fill(255, 0, 0);
rect(150, 550, healthBarWidth, barLen);
text("Health:", 80, 570);
fill(#3DB752);
rect(150, 600, moneyBarWidth, barLen);
text("Money:", 80, 620);
fill(0, 0, 255);
rect(150, 650, gradesBarWidth, barLen);
text("Grades:", 80, 670);
fill(255, 0, 255);
rect(150, 700, happinessBarWidth, barLen);
text("Happiness:", 50, 720);
helpButton();
}
}
// this draws images
void drawAthlete() {
image(anAthlete, 105, 110, 500, 250);
}
void drawSyllbus() {
image(syllbus, 105, 110, 500, 250);
}
void drawJob() {
image(job, 105, 110, 500, 250);
}
void drawInvolvementFest() {
image(involvementFest, 105, 110, 500, 250);
}
void drawGym() {
image(gym, 105, 110, 500, 250);
}
void drawSoccer() {
image(soccer, 105, 110, 500, 250);
}
void drawMajor() {
image(major, 105, 110, 500, 250);
}
void drawRunning() {
image(late, 105, 110, 500, 250);
}
void drawCommons() {
image(commons, 105, 110, 500, 250);
}
void drawLateNight() {
image(majorAssignment, 105, 110, 500, 250);
}
void drawMidTerm() {
image(midterm, 105, 110, 500, 250);
}
void drawMerch() {
image(merch, 105, 110, 500, 250);
}
void drawGrits() {
image(grits, 105, 110, 500, 250);
}
void drawPsychStudy() {
image(psychone, 105, 110, 500, 250);
}
void drawPsychFriends() {
image(psychtwo, 105, 110, 500, 250);
}
void drawDesignStudy() {
image(psychthree, 105, 110, 500, 250);
}
void drawCodeDebug() {
image(compone, 105, 110, 500, 250);
}
void drawCodeCollab() {
image(comptwo, 105, 110, 500, 250);
}
void drawCodeSearch() {
image(compthree, 105, 110, 500, 250);
}
void drawVisualArtsTheatre() {
image(artsone, 105, 110, 500, 250);
}
void drawChoosingMaterials() {
image(artstwo, 105, 110, 500, 250);
}
void drawFindingInspo() {
image(artsthree, 105, 110, 500, 250);
}
void drawSocialGathering() {
image(gathering, 105, 110, 500, 250);
}
void drawFitnessRoutine() {
image(routine, 105, 110, 500, 250);
}
void drawFriendConflict() {
image(conflict, 105, 110, 500, 250);
}
void drawNewGame() {
image(game, 105, 110, 500, 250);
}
void drawWorkLife() {
image(work, 105, 110, 500, 250);
}
void drawNMIClub() {
image(psychfour, 105, 110, 500, 250);
}
void drawBadTeacher() {
image(psychfive, 105, 110, 500, 250);
}
void drawResearchChance() {
image(psychsix, 105, 110, 500, 250);
}
void drawFeelingTired() {
image(compfour, 105, 110, 500, 250);
}
void drawRobot() {
image(compfive, 105, 110, 500, 250);
}
void drawSoftware() {
image(compsix, 105, 110, 500, 250);
}
void drawStartingOver() {
image(artsfour, 105, 110, 500, 250);
}
void drawAddClass() {
image(artsfive, 105, 110, 500, 250);
}
void drawExhibition() {
image(artssix, 105, 110, 500, 250);
}
void drawCareerFair() {
image(career, 105, 110, 500, 250);
}
void drawColdDay() {
image(cold, 105, 110, 500, 250);
}
void drawSkipClass() {
image(fortnite, 105, 110, 500, 250);
}
void drawWakingUp() {
image(wake, 105, 110, 500, 250);
}
void drawCampusInvite() {
image(invite, 105, 110, 500, 250);
}
void drawCareerClub() {
image(cclub, 105, 110, 500, 250);
}
void drawNewShoes() {
image(shoes, 105, 110, 500, 250);
}
void drawRainyDay() {
image(rainy, 105, 110, 500, 250);
}
void drawStudyDecision() {
image(decide, 105, 110, 500, 250);
}
void drawTimeOut() {
image(timeout, 105, 110, 500, 250);