Skip to content

Commit 9e67250

Browse files
committed
Initial code import. Woo!
0 parents  commit 9e67250

File tree

140 files changed

+949
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+949
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/_site/*
2+
/.stakx-cache/*
3+
/_data/privacy.yaml
4+
/_data/piwik.yaml

_config.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
target: _site
2+
3+
data:
4+
- _data
5+
6+
pageviews:
7+
- _pages
8+
9+
debug: false
10+
11+
productName: BZFlag

_data/motd.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"title":"BZFlag 2.4.8 released",
4+
"description":"BZFlag 2.4.8 is now available. Download now!",
5+
"author":"BZFlag Developers",
6+
"pubDate":"Mon Oct 17, 2016 20:00:03 UTC",
7+
"version":"0.0"
8+
}
9+
]

_data/piwik.yaml.template

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cookieDomain: "*.example.com"
2+
domains:
3+
- "*.example.com"
4+
baseURL: ://example.com/piwik/
5+
siteID: 1006

_data/privacy.yaml.template

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
operator:
2+
name:
3+
email:

_layouts/layout.twig

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>BZFlag - {{ this.title }}</title>
6+
<link rel="stylesheet" href="/css/style.css" />
7+
{% block head %}{% endblock %}
8+
<script src="/js/modernizr-custom.js"></script>
9+
</head>
10+
<body>
11+
<div id="nav">
12+
<ul>
13+
<li><a href="/">Home</a></li>
14+
<li><a href="/media">Media</a></li>
15+
<li><a href="/downloads">Downloads</a></li>
16+
<li><a href="http://wiki.bzflag.org/Getting_Started">Getting Started</a></li>
17+
<li><a href="http://forums.bzflag.org/">Forums</a></li>
18+
<li><a href="http://wiki.bzflag.org/">Wiki</a></li>
19+
<li><a href="/help">Help</a></li>
20+
</ul>
21+
</div>
22+
{% block precontent %}{% endblock %}
23+
<div id="content"{% if this.section %} class="{{ this.section }}"{% endif %}>
24+
<div id="logo"></div>
25+
<h1>{{ this.title }}</h1>
26+
{% block content %}{% endblock %}
27+
</div>
28+
<div id="footer">Copyright &copy; 2017 Scott Wichser. [ <a href="/credits">Credits</a> | <a href="/privacy">Privacy Policy</a> ]</div>
29+
{% block scripts %}{% endblock %}
30+
31+
{% if data.piwik %}
32+
33+
<!-- Piwik -->
34+
<script type="text/javascript">
35+
var _paq = _paq || [];
36+
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
37+
_paq.push(["setCookieDomain", "{{ data.piwik.cookieDomain }}"]);
38+
_paq.push(["setDomains", ["{{ data.piwik.domains|join("\", \"") }}"]]);
39+
_paq.push(["trackPageView"]);
40+
_paq.push(["enableLinkTracking"]);
41+
42+
(function() {
43+
var u=(("https:" == document.location.protocol) ? "https" : "http") + "{{ data.piwik.baseURL }}";
44+
_paq.push(["setTrackerUrl", u+"piwik.php"]);
45+
_paq.push(["setSiteId", "{{ data.piwik.siteID }}"]);
46+
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
47+
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
48+
})();
49+
</script>
50+
<!-- End Piwik Code -->
51+
52+
{% endif %}
53+
54+
</body>
55+
</html>

_pages/credits.html.twig

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Credits
3+
section: credits
4+
permalink: /credits.html
5+
---
6+
7+
{% extends "_layouts/layout.twig" %}
8+
9+
{% block content %}
10+
<div>This website uses various third-party resources. These are documented here.</div>
11+
12+
<h2>Graphics</h2>
13+
14+
<ul>
15+
<li>The BZFlag logo (the red tank icon) is copyright Tim Riker and licensed under the LGPL.</li>
16+
<li><a href="http://subtlepatterns.com/?p=944">Iron Grip</a> by <a href="http://www.tonykinard.net/">Tony Kinard</a> - <a href="http://creativecommons.org/licenses/by/3.0/">CC-BY 3.0 Unported</a> License</li>
17+
<li><a href="http://subtlepatterns.com/?p=319">Random Grey Variations</a> by <a href="http://www.mentalwarddesign.com/">Stefan Aleksić</a> - <a href="http://creativecommons.org/licenses/by/3.0/">CC-BY 3.0 Unported</a> License</li>
18+
<li>Source code icon from <a href="http://www.icon-king.com/projects/nuvola/">Nuvola</a> - LGPL 2.1 License</li>
19+
<li>Mac OSX icon from <a href="http://everaldo.com/crystal/">Crystal Project</a> - LGPL 2.1 License</li>
20+
<li>Windows icon from <a href="http://openiconlibrary.sourceforge.net/">Open Icon Library</a> - Public Domain</li>
21+
<li>Operating system logos are copyright their respective owners.</li>
22+
</ul>
23+
24+
<h2>JavaScript</h2>
25+
26+
<ul>
27+
<li><a href="http://mootools.net/">MooTools</a> - MIT License</li>
28+
<li><a href="http://ryanflorence.com/slideshow/">MooTools SlideShow</a> - MIT License</li>
29+
<li><a href="http://mootools.net/forge/p/loop">Loop</a> - MIT License</li>
30+
<li><a href="http://reghellin.com/milkbox/">Milkbox</a> - MIT License</li>
31+
<li><a href="http://www.modernizr.com">Modernizr</a> - MIT and BSD License</li>
32+
</ul>
33+
{% endblock %}

_pages/downloads.html.twig

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
title: Downloads
3+
section: downloads
4+
5+
platforms:
6+
windows:
7+
logo: windows.png
8+
title: Windows
9+
osx:
10+
logo: osx.png
11+
title: macOS
12+
source:
13+
logo: source.png
14+
title: Source Code
15+
16+
releases:
17+
stable:
18+
title: Latest Stable Release
19+
version: 2.4.8
20+
date: "2016-10-10"
21+
downloads:
22+
windows:
23+
url: https://download.bzflag.org/bzflag/windows/2.4.8/bzflag-2.4.8.exe
24+
platform: windows
25+
description: Windows XP SP3 and up
26+
osx:
27+
url: https://download.bzflag.org/bzflag/osx/2.4.8/BZFlag-2.4.8-macOS.zip
28+
platform: osx
29+
description: 10.7+ Intel only
30+
source:
31+
url: https://download.bzflag.org/bzflag/source/2.4.8/
32+
platform: source
33+
---
34+
35+
{% extends "_layouts/layout.twig" %}
36+
37+
{% block head %}
38+
<link rel="stylesheet" href="/css/download.css" />
39+
{% endblock %}
40+
41+
{% block content %}
42+
43+
{% for release in this.releases %}
44+
<h2>{{ release.title }} ({{ release.date }})</h2>
45+
{% if release.description is defined %}
46+
<div>{{ release.description }}</div>
47+
{% endif %}
48+
49+
{% for download in release.downloads %}
50+
<a href="{{ download.url }}" class="download">
51+
<img src="/images/download/{{ this.platforms[download.platform].logo }}" width="128" height="128" />
52+
<span class="os">{{ this.platforms[download.platform].title }}</span>
53+
{% if download.version is defined %}
54+
<span class="version">Version {{ download.version }}</span>
55+
{% elseif release.version is defined %}
56+
<span class="version">Version {{ release.version }}</span>
57+
{% endif %}
58+
59+
{% if download.description is defined %}
60+
<span class="desc">{{ download.description }}</span>
61+
{% endif %}
62+
</a>
63+
{% endfor %}
64+
65+
{% endfor %}
66+
67+
<div>BZFlag is licensed under the <a href="https://raw.githubusercontent.com/BZFlag-Dev/bzflag/2.4/COPYING">LGPL 2.1 and MPL 2.0</a> and is free to use/distribute/modify as long as the terms of the license are followed.</div>
68+
69+
<div>The source code repository is available on GitHub for <a href="https://github.com/BZFlag-Dev/bzflag">BZFlag</a> and our <a href="https://github.com/BZFlag-Dev">related sub-projects</a>.</div>
70+
{% endblock %}

_pages/help.html.twig

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: Help
3+
section: help
4+
permalink: /help.html
5+
---
6+
7+
{% extends "_layouts/layout.twig" %}
8+
9+
{% block content %}
10+
<div>
11+
There are lots of ways to get help with BZFlag! Many of these are also useful if you want to help contribute to the game in some way.
12+
</div>
13+
14+
<h2>Quick Start</h2>
15+
16+
<div>
17+
New to the game and want to get started quickly? Check out our <a href="http://wiki.bzflag.org/Getting_Started">Quick Start Guide</a>!
18+
</div>
19+
20+
<h2>IRC</h2>
21+
22+
<div>
23+
BZFlag has the following IRC channels on Freenode (irc.freenode.net):
24+
<ul>
25+
<li>#BZFlag (development and support) - <a href="http://webchat.freenode.net?channels=bzflag">Launch Web IRC Client</a></li>
26+
<li>#BZFlag-chat (general player talk) - <a href="http://webchat.freenode.net?channels=bzflag-chat">Launch Web IRC Client</a></li>
27+
</ul>
28+
</div>
29+
30+
<h2>Web Forums</h2>
31+
32+
<div>
33+
BZFlag hosts a <a href="http://forums.bzflag.org/">forum</a> for registered users. This also serves as a <a href="http://wiki.bzflag.org/Global_Registration">player registration system</a> for the game.
34+
</div>
35+
36+
<h2>Common Support Issues</h2>
37+
38+
<div>
39+
The <a href="http://wiki.bzflag.org/Common_Support_Issues">Common Support Issues</a> page lists a number of the common problems with the game, and their resolutions.
40+
</div>
41+
42+
<h2>Documentation</h2>
43+
44+
<div>
45+
The game is documented via a series of manual pages (or man pages).
46+
</div>
47+
48+
<div>
49+
On Microsoft Windows the manual pages are in HTML format, and are available from the start menu.
50+
</div>
51+
52+
<div>
53+
On Linux and other Unix-like operating systems, they are installed by default and can be accessed by using the man command and one of the following pages:
54+
<ul>
55+
<li>bzflag</li>
56+
<li>bzfs</li>
57+
<li>bzadmin</li>
58+
<li>bzw</li>
59+
</li>
60+
</div>
61+
62+
<h2>Further Support</h2>
63+
64+
<div>
65+
If none of these methods provide a resolution to your problem, the project maintains a <a href="https://github.com/BZFlag-Dev/bzflag/issues">issue tracker on GitHub</a> where an issue can be opened.
66+
</div>
67+
{% endblock %}

_pages/index.html.twig

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: Home
3+
section: home
4+
permalink: /index.html
5+
---
6+
7+
{% extends "_layouts/layout.twig" %}
8+
9+
{% block head %}
10+
<link rel="stylesheet" href="/css/home.css" />
11+
{% endblock %}
12+
13+
{% block precontent %}
14+
<div id="slideshow">
15+
<div id="slide1"><div class="caption"><span>Free Online Multiplayer Action!</span></div></div>
16+
<div id="slide2" style="display:none;"><div class="caption"><span>Open Source - Free as in speech</span></div></div>
17+
<div id="slide3" style="display:none;"><div class="caption"><span>Competitive League Play</span></div></div>
18+
<div id="slide4" style="display:none;"><div class="caption"><span>Low system requirements</span></div></div>
19+
<div id="slide5" style="display:none;"><div class="caption"><span>A clean retro feel</span></div></div>
20+
<div id="slide6" style="display:none;"><div class="caption"><span>It's a bird, it's a plane! No, it's a flying tank!</span></div></div>
21+
</div>
22+
{% endblock %}
23+
24+
{% block content %}
25+
<div>BZFlag is a free online multiplayer 3D tank battle game. The name originates from "Battle Zone Capture The Flag". It runs on Windows, Mac OSX, Linux, BSD, and other platforms. It was one of the most popular games ever on Silicon Graphics machines and continues to be developed and improved to this day.</div>
26+
<h2>About the project</h2>
27+
<div>
28+
BZFlag is developed by a team of volunteers that work on fixing bugs, adding features, and generally enhancing the gameplay experience. The game is coded primarily in C/C++ and uses OpenGL for cross-platform graphics. Check out the <a href="http://wiki.bzflag.org/Project_History">project history</a> for more information.
29+
</div>
30+
31+
<h2>Get Involved</h2>
32+
<div>
33+
Found a bug, a missing feature, or just something you think should be improved? Get involved and help make BZFlag even better! Because we are open-source, everyone can help contribute to the game. You don't even have to be a programmer to help out. You could work on writing/improving <a href="http://wiki.bzflag.org/">wiki</a> pages, write documentation, etc. Check out the <a href="/help">help</a> page for more information!
34+
</div>
35+
{% endblock %}
36+
37+
{% block scripts %}
38+
<script src="/js/mootools-core-1.6.0-compressed.js"></script>
39+
<script src="/js/slideshow-loop-min.js"></script>
40+
<script>
41+
window.addEvent('domready', function() {
42+
$$('#slideshow > *').setStyle('display', '');
43+
var slideshow = new SlideShow('slideshow', {
44+
transition: 'pushLeft',
45+
delay: 8000,
46+
duration: 800,
47+
autoplay: true
48+
});
49+
});
50+
</script>
51+
{% endblock %}

0 commit comments

Comments
 (0)