From 34bd1d7415116277017b2d97e3584b27200510dc Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 31 Jan 2016 19:06:30 +0000 Subject: [PATCH] Added page for attack on blocks game --- project/pages/urls/__init__.py | 2 +- project/pages/urls/college.py | 7 +++++++ project/pages/views/__init__.py | 2 +- project/pages/views/college.py | 5 +++++ project/urls.py | 1 + templates/projects/attack-on-blocks.md | 18 ++++++++++++++++++ 6 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 project/pages/urls/college.py create mode 100644 project/pages/views/college.py create mode 100644 templates/projects/attack-on-blocks.md diff --git a/project/pages/urls/__init__.py b/project/pages/urls/__init__.py index 996541b..07d5d1c 100644 --- a/project/pages/urls/__init__.py +++ b/project/pages/urls/__init__.py @@ -1 +1 @@ -from . import about, core, projects, robotics +from . import about, college, core, projects, robotics diff --git a/project/pages/urls/college.py b/project/pages/urls/college.py new file mode 100644 index 0000000..defb933 --- /dev/null +++ b/project/pages/urls/college.py @@ -0,0 +1,7 @@ +from django.conf.urls import url +from project.pages.views import college + + +urlpatterns = [ + url(r'^attack-on-blocks/$', college.AttackOnBlocksView.as_view(), name='attack-on-blocks'), +] diff --git a/project/pages/views/__init__.py b/project/pages/views/__init__.py index 996541b..07d5d1c 100644 --- a/project/pages/views/__init__.py +++ b/project/pages/views/__init__.py @@ -1 +1 @@ -from . import about, core, projects, robotics +from . import about, college, core, projects, robotics diff --git a/project/pages/views/college.py b/project/pages/views/college.py new file mode 100644 index 0000000..48e7343 --- /dev/null +++ b/project/pages/views/college.py @@ -0,0 +1,5 @@ +from project.common.views import MarkdownView + + +class AttackOnBlocksView(MarkdownView): + markdown = 'projects/attack-on-blocks.md' diff --git a/project/urls.py b/project/urls.py index d2719f2..ed5390f 100644 --- a/project/urls.py +++ b/project/urls.py @@ -8,6 +8,7 @@ urlpatterns = [ url(r'^404/', Custom404View.as_view(), name="404"), url(r'^no-js/', NoJavascriptView.as_view(), name="no-js"), url(r'^about/', include('project.pages.urls.about', namespace='about')), + url(r'^college/', include('project.pages.urls.college', namespace='colldge')), url(r'^core/', include('project.pages.urls.core', namespace='core')), url(r'^projects/', include('project.pages.urls.projects', namespace='projects')), url(r'^robotics/', include('project.pages.urls.robotics', namespace='robotics')), diff --git a/templates/projects/attack-on-blocks.md b/templates/projects/attack-on-blocks.md new file mode 100644 index 0000000..17496e5 --- /dev/null +++ b/templates/projects/attack-on-blocks.md @@ -0,0 +1,18 @@ +# Attack on Blocks + +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! + + +
+

+ Download Attack on Blocks + View on Github +

+