{"id":32,"date":"2023-07-12T14:03:55","date_gmt":"2023-07-12T18:03:55","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/?post_type=chapter&#038;p=32"},"modified":"2023-07-12T14:03:55","modified_gmt":"2023-07-12T18:03:55","slug":"make-your-game-look-great","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/chapter\/make-your-game-look-great\/","title":{"raw":"Make Your Game Look Great!","rendered":"Make Your Game Look Great!"},"content":{"raw":"So how do you alter the appearance of your story, how do you make it look nice? The answer is with CSS coding! Twine publishes to html files which means you can simply play them in the web and it also means anything you can do on the web you can do in Twine! I think it's important to know that every webpage you ever open on the web is styled with CSS. This means if you Google how to do something with CSS there will be way more recourses then you will ever need. We're not going to go into depth learning CSS here as that would be a course on it's own but we are going to provide you with some basic code so you change the looks of your game!\r\n\r\nTo edit your Twine story\u2019s CSS, click on the Story menu item in the top menu bar then click # Stylesheet in the menu bar below. This will load a screen that is just an empty CSS file.\r\n\r\n<img class=\"center aligncenter\" src=\"http:\/\/syllabus.trubox.ca\/wp-content\/uploads\/sites\/794\/2022\/10\/editstyles2.jpg\" alt=\"Twine Story menu\" \/>\r\n\r\nTo change the background color of you game enter the following CSS code\r\n\r\n<code>tw-story {<\/code>\r\n<code>background-color: white;<\/code>\r\n<code>color: #424949;<\/code>\r\n<code>font-family: Ariel,Impact,Helvetica,sans-serif;<\/code>\r\n<code>font-size: 115%;<\/code>\r\n<code>}<\/code>\r\n\r\nTo change the color of linked text and to change the color that displays when you hover over linked text enter the following code\r\n\r\n<code>tw-link {<\/code>\r\n<code>color: #1434A4;<\/code>\r\n<code>}<\/code>\r\n<code>tw-link:hover {<\/code>\r\n<code>color: #6F8FAF;<\/code>\r\n<code>text-decoration: none;<\/code>\r\n<code>border-bottom: 4px solid #6F8FAF;<\/code>\r\n<code>}<\/code>\r\n\r\nI want my images to be centered on the page, if you do to then enter the following code. We will go over how to add the \"class\" center when we go over how to add images to your game!\r\n\r\n<code>.center {<\/code>\r\n<code>display: block;<\/code>\r\n<code>margin-left: auto;<\/code>\r\n<code>margin-right: auto;<\/code>\r\n<code>}<\/code>\r\n\r\nYour story's stylesheet should look something like the one we made for this game below.\r\n\r\n<img class=\"center aligncenter\" src=\"http:\/\/syllabus.trubox.ca\/wp-content\/uploads\/sites\/794\/2022\/10\/stylesheet2.jpg\" alt=\"This story's CSS stylesheet shows how to change the background color, hyperlinked tex and how to center images\" \/>\r\n\r\nGOOGLE FONTS\r\n\r\nYou can change the primary font for your story in CSS. Google fonts has a visual guide to fonts to help you choose what to use.\r\n\r\n<a href=\"https:\/\/fonts.google.com\/\">https:\/\/fonts.google.com\/<\/a>\r\n\r\nHEX CODES COLOUR PICKER\r\n\r\nYou can use this site to find and customize your Twine colour pallet using CSS or in Twine.\r\n<a href=\"https:\/\/htmlcolorcodes.com\/\">https:\/\/htmlcolorcodes.com\/<\/a>\r\n\r\n---\r\n\r\nWhat would you like to do next?","rendered":"<p>So how do you alter the appearance of your story, how do you make it look nice? The answer is with CSS coding! Twine publishes to html files which means you can simply play them in the web and it also means anything you can do on the web you can do in Twine! I think it&#8217;s important to know that every webpage you ever open on the web is styled with CSS. This means if you Google how to do something with CSS there will be way more recourses then you will ever need. We&#8217;re not going to go into depth learning CSS here as that would be a course on it&#8217;s own but we are going to provide you with some basic code so you change the looks of your game!<\/p>\n<p>To edit your Twine story\u2019s CSS, click on the Story menu item in the top menu bar then click # Stylesheet in the menu bar below. This will load a screen that is just an empty CSS file.<\/p>\n<p><img decoding=\"async\" class=\"center aligncenter\" src=\"http:\/\/syllabus.trubox.ca\/wp-content\/uploads\/sites\/794\/2022\/10\/editstyles2.jpg\" alt=\"Twine Story menu\" \/><\/p>\n<p>To change the background color of you game enter the following CSS code<\/p>\n<p><code>tw-story {<\/code><br \/>\n<code>background-color: white;<\/code><br \/>\n<code>color: #424949;<\/code><br \/>\n<code>font-family: Ariel,Impact,Helvetica,sans-serif;<\/code><br \/>\n<code>font-size: 115%;<\/code><br \/>\n<code>}<\/code><\/p>\n<p>To change the color of linked text and to change the color that displays when you hover over linked text enter the following code<\/p>\n<p><code>tw-link {<\/code><br \/>\n<code>color: #1434A4;<\/code><br \/>\n<code>}<\/code><br \/>\n<code>tw-link:hover {<\/code><br \/>\n<code>color: #6F8FAF;<\/code><br \/>\n<code>text-decoration: none;<\/code><br \/>\n<code>border-bottom: 4px solid #6F8FAF;<\/code><br \/>\n<code>}<\/code><\/p>\n<p>I want my images to be centered on the page, if you do to then enter the following code. We will go over how to add the &#8220;class&#8221; center when we go over how to add images to your game!<\/p>\n<p><code>.center {<\/code><br \/>\n<code>display: block;<\/code><br \/>\n<code>margin-left: auto;<\/code><br \/>\n<code>margin-right: auto;<\/code><br \/>\n<code>}<\/code><\/p>\n<p>Your story&#8217;s stylesheet should look something like the one we made for this game below.<\/p>\n<p><img decoding=\"async\" class=\"center aligncenter\" src=\"http:\/\/syllabus.trubox.ca\/wp-content\/uploads\/sites\/794\/2022\/10\/stylesheet2.jpg\" alt=\"This story's CSS stylesheet shows how to change the background color, hyperlinked tex and how to center images\" \/><\/p>\n<p>GOOGLE FONTS<\/p>\n<p>You can change the primary font for your story in CSS. Google fonts has a visual guide to fonts to help you choose what to use.<\/p>\n<p><a href=\"https:\/\/fonts.google.com\/\">https:\/\/fonts.google.com\/<\/a><\/p>\n<p>HEX CODES COLOUR PICKER<\/p>\n<p>You can use this site to find and customize your Twine colour pallet using CSS or in Twine.<br \/>\n<a href=\"https:\/\/htmlcolorcodes.com\/\">https:\/\/htmlcolorcodes.com\/<\/a><\/p>\n<p>&#8212;<\/p>\n<p>What would you like to do next?<\/p>\n","protected":false},"author":724,"menu_order":3,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-32","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/pressbooks\/v2\/chapters\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/wp\/v2\/users\/724"}],"version-history":[{"count":1,"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/pressbooks\/v2\/chapters\/32\/revisions"}],"predecessor-version":[{"id":33,"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/pressbooks\/v2\/chapters\/32\/revisions\/33"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/pressbooks\/v2\/chapters\/32\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/pressbooks\/v2\/chapter-type?post=32"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/wp\/v2\/contributor?post=32"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/letsplaytwinetru\/wp-json\/wp\/v2\/license?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}