Skip to content

Commit

Permalink
Added support for external links
Browse files Browse the repository at this point in the history
  • Loading branch information
hamptonmoore committed Jun 8, 2020
1 parent e3e6884 commit 1541df5
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
16 changes: 16 additions & 0 deletions _drafts/2020-1-28-entity-component-system.md
@@ -0,0 +1,16 @@
---
title: An introduction to Entity–component–systems
updated: 2020-6-8
---

Recently, I created the fourth version of my game GetSquared. GetSquared is a game I have been working on and off of for the past 3 years, with this being it's fourth finished version, seventh attempt.
Before this all of the other versions had online networking, but that was proving to be a real challenge, so for this version it was local single player only.

GetSquared version four was created using the Entity–component–system archecture.
The short and simple explaination is that ECS is an archecture in which the game entities are just UUIDs which get assigned to systems.
For instance "player" entity would get the Velocity system, MarkerSummoner, CharacterController2D system, etc.
Each system is meant to handle one thing in the game.
For instance the MarkerSummoner system handles summoning a marker when the user presses `space` to summon one, and the CharacterController2D handles converting player key presses into momentum to be applied to their velocity.
The velocity system turns uses the player's velocity to change the current position of the player.


7 changes: 7 additions & 0 deletions _posts/2020-1-28-GetSquaredv4.md
@@ -0,0 +1,7 @@
---
title: GetSquared Version Four
updated: 2020-1-28
sitemap: false
externalURL: https://gsv4.hampton.pw/client/index.html
---

13 changes: 11 additions & 2 deletions feed.xml
Expand Up @@ -13,8 +13,17 @@ layout: null
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% if post.externalURL %}
<link>{{ post.externalURL }}</link>
{% else %}
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}">{{ post.title }}</link>
{% endif %}
{% if post.externalURL %}
<guid isPermaLink="true">{{ post.externalURL }}</guid>
{% else %}
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% endif %}

</item>
{% endunless %}
{% endfor %}
Expand Down
5 changes: 5 additions & 0 deletions index.html
Expand Up @@ -23,7 +23,12 @@ <h3 class="code">{{ post.date | date: '%Y' }}</h3>
<span>{{ post.date | date: "%b %d" }}</span>
</div>
<div class="title">
{% if post.externalURL %}
<a href="{{ post.externalURL }}">{{ post.title }}</a>
{% else %}
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">{{ post.title }}</a>
{% endif %}

</div>
</li>
</ul>
Expand Down

0 comments on commit 1541df5

Please sign in to comment.