Skip to content

Commit 3f3ba24

Browse files
authored
Merge pull request #184 from RyderKeeny/main
coding question section made
2 parents c2775dc + 29b277d commit 3f3ba24

File tree

5 files changed

+41
-20
lines changed

5 files changed

+41
-20
lines changed
7.98 KB
Loading
15.7 KB
Loading
-268 KB
Binary file not shown.

BytesOfLove/game/script.rpy

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ default bsl_rep = 50
106106

107107
#background characters with no impact
108108
#this needs to be changed to the final character image for the advisor
109-
image advisor = "SideCharacters/advisor_tempImage.png"
109+
image advisor = "SideCharacters/Breakout_leader_1.png"
110+
image advisor_talking = "SideCharacters/Breakout_leader_2.png"
110111

111112

112113
# Backgrounds
@@ -173,8 +174,8 @@ image vending_machine = "backgrounds/vending-machine.PNG"
173174

174175

175176

176-
177-
177+
image question_1 = "codingImages/coding_question_1.png"
178+
image question_2 = "codingImages/coding_question_2.png"
178179

179180

180181

BytesOfLove/game/scripts/orientation/w0_d2.rpy

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,19 @@ label w0_d2_AfterLunch:
418418
hide js_talk
419419
show js_normal at left
420420

421+
window hide
422+
show question_1 with dissolve:
423+
xalign 0.5
424+
yalign 0.05
425+
xysize (1500, 800) # Wait for the player to press a key (e.g. space).
426+
427+
window show
428+
"continue to answer"
429+
421430
menu w0_d2_q1answer:
422-
#
431+
423432
"15":
433+
hide question_1 with dissolve
424434
#techscore -
425435
mc "\"I think it’s 15 because 3 times 5 is 15.\""
426436
mc "\"It’s as simple as that, let’s not overthink this.\""
@@ -454,6 +464,7 @@ label w0_d2_AfterLunch:
454464
hide cpp_handhip_talk
455465
show cpp_handhip_normal
456466
"'15'":
467+
hide question_1 with dissolve
457468
#tech score -
458469
mc "\"I think it's ‘15’ because 3 times 5 is 15.\""
459470
mc "\"But since the 5 has quotes around it, the answer will have quotes around it too.\""
@@ -488,6 +499,7 @@ label w0_d2_AfterLunch:
488499
hide cpp_handhip_talk
489500
show cpp_handhip_normal
490501
"'33333'":
502+
hide question_1 with dissolve
491503
#tech score -
492504
mc "\"I think it’s ‘33333’ because the 5 has quotes around it and the 3 is just a normal number.\""
493505
mc "\"So something weird will have to happen.\""
@@ -525,6 +537,7 @@ label w0_d2_AfterLunch:
525537
hide cpp_handhip_talk
526538
show cpp_handhip_normal
527539
"'555'":
540+
hide question_1 with dissolve
528541
# tech score+ (CORRECT ANSWER)
529542
mc "\"Okay, wait. I think I actually know this one.\""
530543
mc "\"Since the 5 has quotations around it, the variables won’t just multiply normally.\""
@@ -576,6 +589,7 @@ label w0_d2_AfterLunch:
576589
show js_normal at left
577590

578591
"ERROR":
592+
hide question_1 with dissolve
579593
#tech score -
580594
mc "\"I think it's going to be an error.\""
581595
mc "\"There’s no way you can multiply a number by a string.\""
@@ -628,19 +642,21 @@ label w0_d2_AfterLunch:
628642
bsl "\"What does the following Python code print?\""
629643
hide bsl_talk
630644

631-
#DISPLAY:
632-
#x = 4
633-
#for i in range(x):
634-
#x += 1
635-
#print(x, end=‘’)
636-
645+
window hide
646+
show question_2 with dissolve:
647+
xalign 0.5
648+
yalign 0.05
649+
xysize (1500, 800) # Wait for the player to press a key (e.g. space).
650+
651+
window show
652+
pause 2.0
637653
p "\"Well I think I have some idea about this one.\""
638654
p "\"The first thing I see is that this might be an infinite loop.\""
639655
p "\"Because we iterate x times, but x keeps increasing.\""
640656
p "\"But, maybe that loop range only references x one time.\""
641657
p "\"What do you think C++?\""
642658
p "\"You seem to know everything...\""
643-
659+
644660
c "\"Uhm, well actually I am not too sure.\""
645661
c "\"I was thinking it would be infinite as well.\""
646662
c "\"But I am really not sure.\""
@@ -665,9 +681,7 @@ label w0_d2_AfterLunch:
665681
c "\"You guys didn't know the answer either.\""
666682
hide cpp_talk
667683

668-
show cpp_normal at left
669-
hide python_pocket
670-
show python_pocket_happy at right
684+
671685
p "\"Alright, well, do we have any ideas?\""
672686
p "\"JavaScript? What are you thinking?\""
673687

@@ -678,8 +692,10 @@ label w0_d2_AfterLunch:
678692
js "\"At the same time I am just guessing.\""
679693
js "\"You make a decision, [mc].\""
680694

695+
pause 2.0
681696
menu w0_d2_mcdecision:
682697
"ERROR":
698+
hide question_2 with dissolve
683699
#techScore -= 1
684700
mc "\"Okay I think that this will result in an error.\""
685701
mc "\"I don’t think it will know to only reference X once, at the start of the loop.\""
@@ -716,6 +732,7 @@ label w0_d2_AfterLunch:
716732
p "\"It’s okay we didn’t know either.\""
717733
p "\"If we did we would have said something.\""
718734
"4567":
735+
hide question_2 with dissolve
719736
#techScore -= 1
720737
hide js_normal
721738
show js_smirk # might be a good idea to move this forward one?
@@ -761,9 +778,10 @@ label w0_d2_AfterLunch:
761778
p "\"If we did we would have said something.\""
762779

763780
"5678":
781+
hide question_2 with dissolve
764782
#techScore += 1
765783
hide js_normal
766-
show js_smirk # read line 660
784+
show js_smirk at left # read line 660
767785
mc "\"I agree with JavaScript, this won’t be an error.\""
768786
mc "\"So first it will increment x.\""
769787
mc "\"Then it will print out 5, then 6, then 7, then 8.\""
@@ -775,15 +793,17 @@ label w0_d2_AfterLunch:
775793
c "\"Whatever happens, happens, it’s just a game.\""
776794

777795
hide js_smirk
778-
show js_normal
779-
hide cpp_normal
780-
show cpp_talk at left
796+
show js_normal at left
797+
hide cpp_talk
798+
781799
c "\"I disagree, but I’m not confident enough to say that I am right.\""
782800
c "\"I say let’s trust your intuition, [mc].\""
783801
c "\"Whatever happens, happens, it’s just a game.\""
784802
hide cpp_talk
785-
hide js_normal
786-
hide python_pocket
803+
hide js_normal
804+
hide python_pocket
805+
hide python_normal
806+
hide cpp_handhip_normal
787807
show bsl_talk
788808
bsl "\"Alright, time’s up!\""
789809
bsl "\"Everyone, write your answers down and hold them up.\""

0 commit comments

Comments
 (0)