From 111d1a77e02ae28bfb16b90a61915641a533aa55 Mon Sep 17 00:00:00 2001 From: yuanboz Date: Thu, 25 Jun 2020 00:04:18 -0400 Subject: [PATCH 1/3] replace the panel image to text. --- assets/Room0/tut_bg.png | Bin 0 -> 14015 bytes tagIntro.js | 85 ++++++++++++++++++++++++++++++++++++---- 2 files changed, 77 insertions(+), 8 deletions(-) create mode 100644 assets/Room0/tut_bg.png diff --git a/assets/Room0/tut_bg.png b/assets/Room0/tut_bg.png new file mode 100644 index 0000000000000000000000000000000000000000..9000c8de7789c341c78563d1337d4376f0df55dc GIT binary patch literal 14015 zcmeHtcT|*F@+cU`fQXVL2-7H_0u3}72?I@1qJV%T>81%b(9q=2fHQ-(WI@Sc34#Qh z0hAmJ1Q7uNr6o(wxyhm5{ZMCjcJ{Zs?|0r`?~Lbo`s3cZRdwrD)x8xS=xVFc9cMdE zLqkKSp^m&kLvtvShUS3$4@bbr2=ihX_&MgRZsJNqbK)%YpOz*eiIs-t@VdQ$v751$ zrVJYAC}d@gLt%ux9Gw9)4b4>rFJ~(>7URZ^!r0n7$-x#XYhm2>)^ac-aV=pjXJw3? zy}Az`qwk|_fcC+nrLAEK^4wRwWB>w3jGGm=m!pG|tBjW%Y#*--_=bkzFz$U2H>@1& zCx{@ov6e2kG7gX7mJkvaL<yH6SqdgF%B32*4Yl{hI6&U{ST;rpZ)^@AX+W0-)a0y zUK|~NC*kU*;sLhtO(6dg+SS0@83Vt8amBgg(HIpEz$Op08)q41JjTimhd03C9KIiv z?st~CMZr$E`L(Rj_D;|yF8#w24AROCBL{=dO;A`uP*lu76d@xbB_l2>C@dx;Ec_Kz z3ukR_G4tgYOv{v)t8TE+&4ceDaqws*9$#lW4NY+>BL3sOcI=YYcl z!hk!(KaOiCE9>HMHuer+!u5ul61RqmvV@4V1YllBWS?CvEg20bS2rssG)4m{2Ls{} zvbVREv9T7GmJqSA7DU)si3y5XOV|iXSqn=Eii(O!i%W`2Nn^ynZWpXa;?VAp5f zQ_{z{e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2gOjTy0zl+sx16F}>_ zV<^f|8T2S13$sLmUvy>|cS=!w9nl}VN|F8f^?Kkr{NABj)r 0) { @@ -232,7 +276,13 @@ Info Panels like these contain important information and lessons that help you p this.notebook.setDepth(100); this.help_menu.setDepth(100); - this.tut1.setDepth(99); + //this.tut1.setDepth(99); + this.tut2.setDepth(99); + this.tut3.setDepth(99); + this.tut4.setDepth(99); + this.tut5.setDepth(99); + this.tut6.setDepth(99); + this.tut_bg.setDepth(3); this.hole.setDepth(1); this.coinExplain.setDepth(2); this.countCoin.setDepth(0); @@ -249,7 +299,8 @@ Info Panels like these contain important information and lessons that help you p this.character_west.setScale(3); this.character_east.setScale(3); this.approachImg.setScale(0.4); - this.tut1.setScale(0.5); + //this.tut1.setScale(0.5); + this.tut_bg.setScale(0.55); this.coin0.setScale(0.5); this.coinHead.setScale(0.5); this.coinExplain.setScale(2.0); @@ -313,7 +364,13 @@ Info Panels like these contain important information and lessons that help you p this.E_KeyImg.y = this.character_north.y-100; this.E_KeyImg.alpha = 1.0; if (this.key_E.isDown) { - this.tut1.alpha = 1.0; + //this.tut1.alpha = 1.0; + this.tut2.alpha = 1.0; + this.tut3.alpha = 1.0; + this.tut4.alpha = 1.0; + this.tut5.alpha = 1.0; + this.tut6.alpha = 1.0; + this.tut_bg.alpha = 1.0; if(this.hole.alpha == 0.0) this.coin0.alpha = 1.0; // this.activityOneOpened = true; // this.hole.alpha = 1.0; @@ -356,7 +413,13 @@ Info Panels like these contain important information and lessons that help you p this.hideActivities(); this.E_KeyImg.alpha = 0.0; this.approachImg.alpha = 0.0; - this.tut1.alpha = 0.0; + //this.tut1.alpha = 0.0; + this.tut2.alpha = 0.0; + this.tut3.alpha = 0.0; + this.tut4.alpha = 0.0; + this.tut5.alpha = 0.0; + this.tut6.alpha = 0.0; + this.tut_bg.alpha = 0.0; this.coinExplain.alpha = 0.0; } } @@ -504,7 +567,13 @@ Info Panels like these contain important information and lessons that help you p this.character_west.alpha = 1.0; this.characterMoveable = true; this.help_menu.alpha = 0.0; - this.tut1.alpha = 0.0; + //this.tut1.alpha = 0.0; + this.tut2.alpha = 0.0; + this.tut3.alpha = 0.0; + this.tut4.alpha = 0.0; + this.tut5.alpha = 0.0; + this.tut6.alpha = 0.0; + this.tut_bg.alpha = 0.0; this.characterMoveable = true; this.movePlayer(); } From dcfa69998a8cb2600159bf5f4209789fa242dcdb Mon Sep 17 00:00:00 2001 From: yuanboz Date: Tue, 30 Jun 2020 15:25:28 -0400 Subject: [PATCH 2/3] apply the text line spacing but it's weird that the space between two lines do not change as the value change. --- tagIntro.js | 72 +++++++++++++++++------------------------------------ 1 file changed, 23 insertions(+), 49 deletions(-) diff --git a/tagIntro.js b/tagIntro.js index f6d092e..e232bb1 100644 --- a/tagIntro.js +++ b/tagIntro.js @@ -175,10 +175,8 @@ Info Panels like these contain important information and lessons that help you p this.load.image('profile','assets/character_south.png'); this.load.image('tut_bg','assets/Room0/tut_bg.png'); this.line1 = "AppTAG: APPstate's The Accounting Game"; - this.line2 = "Avatar Movement: A, W, S, D Help: D"; - this.line3 = "Object interaction: E Bookbag inventory: B"; - this.line4 = "Hide info popups: Q Room map: M"; - this.line5 = "Some objects/activities are invisible or \"locked\" until you interact\n with other objects in the proper order. So, walk up to things and\n interact with the E key."; + this.line2 = "Avatar Movement: A, W, S, D Help: D\nObject interaction: E Bookbag inventory: B\nHide info popups: Q Room map: M"; + this.line3 = "Some objects/activities are invisible or \"locked\" until you interact\n with other objects in the proper order. So, walk up to things and\n interact with the E key."; } createImages() { @@ -198,38 +196,34 @@ Info Panels like these contain important information and lessons that help you p this.activityLocked = this.add.image(768, 432, 'activityLocked'); this.help_menu = this.add.image(768, 432, 'help_menu'); this.tut_bg = this.add.image(780,440,'tut_bg'); - //this.tut1 = this.add.image(768, 432, 'tut1'); - this.tut2 = this.add.text(580, 330, this.line1, { + + /* author: @Zack + Single-line text and Mult-line text. + */ + this.tut1 = this.add.text(580, 330, this.line1, { font: "20px arial", color: "#202020", align: 'center', fontWeight:'bold', - }); - this.tut3 = this.add.text(540, 380, this.line2, { - font: "20px arial", - color: "#202020", - align: 'left', - fontWeight:'bold', - }); - this.tut4 = this.add.text(540, 410, this.line3, { - font: "20px arial", - color: "#202020", - align: 'left', - fontWeight:'bold', - }); - this.tut5 = this.add.text(540, 440, this.line4, { + }).setDepth(99); + + this.tut2 = this.add.text(540, 380, this.line2, { font: "20px arial", color: "#202020", align: 'left', fontWeight:'bold', - }); - this.tut6 = this.add.text(500, 490, this.line5, { + }).setDepth(99); + this.tut2.lineSpacing = 10; + + this.tut3 = this.add.text(500, 490, this.line3, { font: "20px arial", color: "#202020", align: 'center', fontWeight:'bold', maxLines: '3', - }); + }).setDepth(99); + this.tut3.lineSpacing = 10; + this.hole = this.add.image(768, 432, 'hole'); this.coinExplain = this.add.image(768, 432, 'coinExplain'); this.countCoin = this.add.image(40, 230, 'singleCoin'); @@ -243,12 +237,9 @@ Info Panels like these contain important information and lessons that help you p this.activityLocked.alpha = 0.0; this.approachImg.alpha = 0.0; this.help_menu.alpha = 0.0; - //this.tut1.alpha = 0.0; - this.tut2.alpha = 0.0; + this.tut1.alpha = 0.0; + this.tut2.alpha = 0.0; this.tut3.alpha = 0.0; - this.tut4.alpha = 0.0; - this.tut5.alpha = 0.0; - this.tut6.alpha = 0.0; this.tut_bg.alpha = 0.0; this.E_KeyImg.alpha = 0.0; this.hole.alpha = 0.0; @@ -273,15 +264,8 @@ Info Panels like these contain important information and lessons that help you p this.E_KeyImg.setDepth(49); this.approachImg.setDepth(48); this.map.setDepth(100); - this.notebook.setDepth(100); this.help_menu.setDepth(100); - //this.tut1.setDepth(99); - this.tut2.setDepth(99); - this.tut3.setDepth(99); - this.tut4.setDepth(99); - this.tut5.setDepth(99); - this.tut6.setDepth(99); this.tut_bg.setDepth(3); this.hole.setDepth(1); this.coinExplain.setDepth(2); @@ -299,7 +283,6 @@ Info Panels like these contain important information and lessons that help you p this.character_west.setScale(3); this.character_east.setScale(3); this.approachImg.setScale(0.4); - //this.tut1.setScale(0.5); this.tut_bg.setScale(0.55); this.coin0.setScale(0.5); this.coinHead.setScale(0.5); @@ -364,12 +347,9 @@ Info Panels like these contain important information and lessons that help you p this.E_KeyImg.y = this.character_north.y-100; this.E_KeyImg.alpha = 1.0; if (this.key_E.isDown) { - //this.tut1.alpha = 1.0; + this.tut1.alpha = 1.0; this.tut2.alpha = 1.0; this.tut3.alpha = 1.0; - this.tut4.alpha = 1.0; - this.tut5.alpha = 1.0; - this.tut6.alpha = 1.0; this.tut_bg.alpha = 1.0; if(this.hole.alpha == 0.0) this.coin0.alpha = 1.0; // this.activityOneOpened = true; @@ -413,12 +393,9 @@ Info Panels like these contain important information and lessons that help you p this.hideActivities(); this.E_KeyImg.alpha = 0.0; this.approachImg.alpha = 0.0; - //this.tut1.alpha = 0.0; + this.tut1.alpha = 0.0; this.tut2.alpha = 0.0; this.tut3.alpha = 0.0; - this.tut4.alpha = 0.0; - this.tut5.alpha = 0.0; - this.tut6.alpha = 0.0; this.tut_bg.alpha = 0.0; this.coinExplain.alpha = 0.0; } @@ -567,12 +544,9 @@ Info Panels like these contain important information and lessons that help you p this.character_west.alpha = 1.0; this.characterMoveable = true; this.help_menu.alpha = 0.0; - //this.tut1.alpha = 0.0; - this.tut2.alpha = 0.0; + this.tut1.alpha = 0.0; + this.tut2.alpha = 0.0; this.tut3.alpha = 0.0; - this.tut4.alpha = 0.0; - this.tut5.alpha = 0.0; - this.tut6.alpha = 0.0; this.tut_bg.alpha = 0.0; this.characterMoveable = true; this.movePlayer(); From b992bc8b33da3e3989c2d49031a9c4c6e4c7b276 Mon Sep 17 00:00:00 2001 From: yuanboz Date: Tue, 30 Jun 2020 15:25:35 -0400 Subject: [PATCH 3/3] apply the text line spacing but it's weird that the space between two lines do not change as the value change. --- tagIntro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tagIntro.js b/tagIntro.js index e232bb1..6085584 100644 --- a/tagIntro.js +++ b/tagIntro.js @@ -222,7 +222,7 @@ Info Panels like these contain important information and lessons that help you p fontWeight:'bold', maxLines: '3', }).setDepth(99); - this.tut3.lineSpacing = 10; + this.tut3.lineSpacing = 20; this.hole = this.add.image(768, 432, 'hole'); this.coinExplain = this.add.image(768, 432, 'coinExplain');