Start adding project articles
This commit is contained in:
parent
a3b9fe6171
commit
093c6042f0
4 changed files with 68 additions and 16 deletions
14
content/projects/attack-on-blocks.md
Normal file
14
content/projects/attack-on-blocks.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
title: Attack on blocks game
|
||||
template: projects
|
||||
slug: attack-on-blocks
|
||||
repo: https://github.com/RealOrangeOne/attack-on-blocks/
|
||||
download_link: https://github.com/RealOrangeOne/attack-on-blocks/archive/master.zip
|
||||
|
||||
Attack on Blocks is a space invaders style game that I wrote for my IT coursework, for the games development unit. We were allowed to make any game that we wanted, provided it could be done within the time limits, be very easy to play, and easily run on the college computer (which were pretty terrible). I had never written a game before, so I knew this was going to be a challenge.
|
||||
|
||||
I decided to write the game in Python, seeing as there were other people in the class that could help me bug report and test features, and because it was easy to run on the college computers. I used PyGame for the graphics library, even though I had never used it before, because it was really simple to use, and there was a lot of support and documentation online.
|
||||
|
||||
## Easter Eggs
|
||||
One of the key features of this take on space invaders (and unfortunately the thing I spent the most time on), is the easter eggs. There are a few dotted around the game, which make the game either much easier, or way more fun! At the moment, there are 3 main easter eggs, the first enabling the other 2. If you would like to know what they are, click the button below. If not, pay the game and try and find them, or search through the source to find them (it's not too hard through the source).
|
||||
|
||||
As you will see (If and when you find the easter eggs), most of them are completely useless, and completely unrelated to the game or anything else. The main reason they were put in was because I'm friends with people that pester to the point it's just easier to give in. Hence there are some really very odd ones!
|
|
@ -35,7 +35,8 @@ SOCIAL = social.generate()
|
|||
|
||||
DEFAULT_PAGINATION = False
|
||||
DELETE_OUTPUT_DIRECTORY = True
|
||||
|
||||
DEFAULT_DATE_FORMAT = '%c'
|
||||
DEFAULT_DATE = "fs"
|
||||
|
||||
PAGE_PATHS = ["pages"]
|
||||
PAGE_SAVE_AS = "{slug}/index.html"
|
||||
|
@ -49,34 +50,33 @@ EXTRA_PATH_METADATA = {
|
|||
"assets/favicon.ico": {"path": "favicon.ico"}
|
||||
}
|
||||
|
||||
ARTICLE_PATHS = ["articles"]
|
||||
ARTICLE_SAVE_AS = "blog/{slug}/index.html"
|
||||
ARTICLE_URL = "/blog/{slug}/"
|
||||
ARTICLE_SAVE_AS = "{category}/{slug}/index.html"
|
||||
ARTICLE_URL = "{category}/{slug}/"
|
||||
|
||||
TAG_URL = "blog/tag/{slug}/"
|
||||
TAG_SAVE_AS = "blog/tag/{slug}/index.html"
|
||||
|
||||
TAGS_URL = "blog/tags/"
|
||||
TAGS_SAVE_AS = "blog/tags/index.html"
|
||||
TAGS_URL = "tags/"
|
||||
TAGS_SAVE_AS = "tags/index.html"
|
||||
|
||||
AUTHOR_URL = "/blog/author/{slug}/"
|
||||
AUTHOR_SAVE_AS = "blog/author/{slug}/index.html"
|
||||
AUTHOR_URL = "author/{slug}/"
|
||||
AUTHOR_SAVE_AS = "author/{slug}/index.html"
|
||||
|
||||
AUTHORS_URL = "/blog/authors/"
|
||||
AUTHORS_SAVE_AS = "blog/authors/index.html"
|
||||
AUTHORS_URL = False
|
||||
AUTHORS_SAVE_AS = False
|
||||
|
||||
ARCHIVES_URL = "blog/archive/"
|
||||
ARCHIVES_SAVE_AS = "blog/archive/index.html"
|
||||
ARCHIVES_URL = False
|
||||
ARCHIVES_SAVE_AS = False
|
||||
|
||||
CATEGORY_SAVE_AS = False
|
||||
CATEGORY_SAVE_AS = "{slug}/index.html"
|
||||
CATEGORIES_SAVE_AS = False
|
||||
USE_FOLDER_AS_CATEGORY = True
|
||||
|
||||
PLUGIN_PATHS = ["pelican_plugins"]
|
||||
PLUGINS = ['sitemap']
|
||||
PLUGINS = ["sitemap", "filetime_from_git"]
|
||||
|
||||
SITEMAP = {
|
||||
'format': 'xml'
|
||||
"format": "xml"
|
||||
}
|
||||
|
||||
|
||||
# Extra context
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
colorama==0.3.6
|
||||
flake8==2.5.0
|
||||
gitpython==2.0.3
|
||||
markdown==2.6.6
|
||||
pelican==3.6.3
|
||||
|
|
37
theme/templates/projects.html
Normal file
37
theme/templates/projects.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block htmltitle %}
|
||||
{{ article.title }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="bg-primary">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 text-center">
|
||||
<h1 class="section-heading">{{ article.title }}</h1>
|
||||
<hr class="light">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section>
|
||||
<div class="container">
|
||||
<p class="text-right">
|
||||
Updated: {{ article.updated }}
|
||||
Date: {{ article.date }}
|
||||
</p>
|
||||
{{ article.content }}
|
||||
</div>
|
||||
</section>
|
||||
<div class="container text-center">
|
||||
<div class="btn-group">
|
||||
{% if article.download_link %}
|
||||
<a class="btn btn-primary btn-xl" href="{{ article.download_link }}" download="Attack-on-blocks.zip">Download {{ article.title }}</a>
|
||||
{% endif %}
|
||||
{% if article.repo %}
|
||||
<a class="btn btn-github btn-xl" href="{{ article.repo }}"><i class="fa fa-github fa-lg"></i> View on Github</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in a new issue