Skip to content

Commit 53cb514

Browse files
committed
coding question section fixed
added the animation and code images to the questioning so it is completed and looks visually nice
1 parent c2775dc commit 53cb514

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed
-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: 31 additions & 9 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,22 @@ 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
653+
show python_pocket_happy at right
637654
p "\"Well I think I have some idea about this one.\""
638655
p "\"The first thing I see is that this might be an infinite loop.\""
639656
p "\"Because we iterate x times, but x keeps increasing.\""
640657
p "\"But, maybe that loop range only references x one time.\""
641658
p "\"What do you think C++?\""
642659
p "\"You seem to know everything...\""
643-
660+
show cpp_talk at left
644661
c "\"Uhm, well actually I am not too sure.\""
645662
c "\"I was thinking it would be infinite as well.\""
646663
c "\"But I am really not sure.\""
@@ -677,9 +694,12 @@ label w0_d2_AfterLunch:
677694
js "\"But then afterwards, that value won’t change.\""
678695
js "\"At the same time I am just guessing.\""
679696
js "\"You make a decision, [mc].\""
680-
697+
hide python_pocket_happy
698+
hide cpp_talk
699+
pause 2.0
681700
menu w0_d2_mcdecision:
682701
"ERROR":
702+
hide question_2 with dissolve
683703
#techScore -= 1
684704
mc "\"Okay I think that this will result in an error.\""
685705
mc "\"I don’t think it will know to only reference X once, at the start of the loop.\""
@@ -716,6 +736,7 @@ label w0_d2_AfterLunch:
716736
p "\"It’s okay we didn’t know either.\""
717737
p "\"If we did we would have said something.\""
718738
"4567":
739+
hide question_2 with dissolve
719740
#techScore -= 1
720741
hide js_normal
721742
show js_smirk # might be a good idea to move this forward one?
@@ -761,6 +782,7 @@ label w0_d2_AfterLunch:
761782
p "\"If we did we would have said something.\""
762783

763784
"5678":
785+
hide question_2 with dissolve
764786
#techScore += 1
765787
hide js_normal
766788
show js_smirk # read line 660

0 commit comments

Comments
 (0)