HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<h1>Gaming: What Not To Do in a Story</h1>
<div class="heading"><h3>(╯°□°)╯︵ ┻━┻</h3></div>
<p>I would call myself a gamer as somebody who as played a variety of games. Without a doubt, some are more well done than others in many ways, however you see it. Today though, I am going to talk about an important element in a lot of games: story. This is a huge factor in some awesome games, such as Danganronpa or OneShot. The problem is some games' stories are incredibly rushed or even become trash for reasons I will talk about today. Be aware, I'm no expert, and I will not cover this in depth, but this is more a personal opinion of what could cripple a story.</p>
<div class="heading"><h3>\ (•◡•) /</h3></div>
<h2>The Protagonist</h2>
<p>Writing a good protagonist in a game is really hard in about anything. The thing is, if you can pull off a really good one, the game is that much better.
<p>For a protagonist, I have usually have three main complaints.</p>
<ul>
<li>The protagonist is a self insert customable, so you don't really get a true personality out of them. (That's about 50% of the protagonists.)</li>
<li>The character is their own character, but the epitome of genereric and has little development.</li>
<li>The protagonist has the <em>worst</em> of the main three terrible fates; they're a Mary Sue/Gary Stu.</p>
</ul>
<p>Now you may ask, "Geez, Kiri, why do you care so much about a good protagonist?" I know that's what some of you are thinking. You see, a good protagonist makes a game so much better. Think if you were playing Pokemon, but instead of a semi-mute child that just stood there and threw Pokeballs for you, they actually have a distinct personality. They would talk to others and have an opinion. You would see their struggles and reactions to events. Wouldn't that be intersting?</p>
<p>All in all, my advice is this little sentence. "The protagonist is the most important character." If your character isn't likeable or interesting, I recommend maybe trying something new or taking a risk with it.
<div class="heading"><h3>(ノ≧∇≦)ノ ミ ┸━┸</h3></div>
<h2>Characters</h2>
<p>I just stressed how potentially amazing a good protagonist is in a game, but the characters are also <strong>VERY</strong> important in story heavy games. Look, let's be honest. If the protagonist is the only intersting character in anything, chances are, the game won't be very interesting. My least favorite trends in characters are the following.
<ol>
<li>They're stereotyped/cliche. Look. We've seen these so much. Like that guy who has a tragic backstory but doesn't have the time to saying anything, classic hotheads with little development, the smart guy/girl who doesn't do much more than being the smart guy/girl, or that pathetic healer lady. <strong>Bleh.</strong></li>
<li>They only have one little quirk or skill that makes them intersting. Like one hit wonders almost. Such as, "Hey, they can shoot a bow." Or, "Hey, they like to sing." Be honest. If a character lost just one trait about themselves, would they still be intersting? If not, they still might be unfinished.</li>
<li><mark1>THERE IS LITTLE TO NO DEVELOPMENT.</mark1> Look, I know this is #3, but I'm making an emphasis on this because I hate characters that never development. Sure, it's not as bad as having a poor character in the first place, but by barely. The difference is a grain of sand, barely there.
</li>
</ol>
<p>I'm no expert on characters, so feel free to look at resources online on how to create a good character, but many people on the internet do! (That sounds so wrong when I say it outloud.) I personally found <a href="https://www.gamedesigning.org/learn/character-design/">this guide</a> short but to the point on how to make a great character. (I'm sorry about the picture used on that website, but I can't do anything about it.)</p>
<div class="heading"><h3>(ノಠ益ಠ)ノ彡┻━┻</h3></div>
<h2>The Conflict and Motivations</h2>
<p>Well, you got good characters? Good for you! Now, why are they the main characters in the game in the first place? Why are they there? Why do they strive to their goal? Motivation and conflict should be the answer to this question. Look at some awesome protagonists from other games.</p>
<ul>
<li>Take Hajime Hinata from Danganronpa 2. Sure, it did seem like he was a reskin of Makoto Naegi at first, but as the game goes on, you see he has very different opinions than the previous protag. It intersting to witness his opinions on how he sees himself, and his actions in the last trial are understandable. I won't spoil it, but I'll just say it was a blast.</li>
<li>Another good example would be </li>
</ul>
h1 {
color: rgb(70,50,85);
font-family: sans-serif;
}
h3 {
background-color:rgb(189,155,209)
}
.heading {
width: 100%;
text-align: center;
}
body {
background-color: rgb(140,200,250);
font-family: arial;
font-size: 18px;
}
mark1 {
background-color: yellow;
color: rgb(40,40,40);
font-weight: bold;
font-family: serif;
}
Also see: Tab Triggers