forked from opengaming/osgameclones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
183 lines (155 loc) · 6.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="author" content="Vsevolod Solovyov">
<meta name="keywords" content="open source, game, clone, remake, remakes">
<meta name="description" content="List of open source clones of popular old-school games.">
<meta name="application-name" content="OS Game Clones">
<meta name="application-url" content="http://osgameclones.com/">
<link rel="stylesheet" href="static/main.css">
<title>Open Source Game Clones</title>
</head>
<body>
<header><h1>Open Source Game Clones</h1></header>
<article>
<p>
This site tries to
gather <a href="http://en.wikipedia.org/wiki/Open_source">open-source</a>
reimplementations of great old games in one place. If you think that
something is missing from the list - please go to
our <a href="http://github.com/piranha/osgameclones/">Github
repository</a> and create an issue or even a pull request!
</p>
<p>
Since all these projects are open-source you can help them and make this
world a better place. Or at least you can play something to appreciate the
effort people put in them.
</p>
<p>
Similar resources: check
out <a href="http://freegamer.blogspot.com/">Free Gamer</a>, a blog
dedicated to open source game news, and <a href="https://bronevichok.ru/ttygames/">Unix ASCII games</a>, a list of opensource text-based games.
</p>
<p class="new">All games that were added in last month are highlighted like this.</p>
</article>
<div>
<input id="filter" type="text" placeholder="Type to filter by name or information">
</div>
{% macro render_name(name, idx, mode) %}
{%- if name is string -%}
{% set wiki = name %}
{%- else -%}
{% set name, wiki = name %}
{%- endif -%}
{%- if wiki[:6] in ["http:/", "https:"] -%}
{% set wikilink = wiki %}
{%- else -%}
{% set wikilink = "http://en.wikipedia.org/wiki/" + wiki %}
{%- endif -%}
<dt {% if not idx %}id="{{ show_id(name, mode) }}"{% endif -%} class="searchable">
<a href="{{ wikilink }}">{{ name }}</a>
{% if not idx %}<a href="#{{ show_id(name, mode) }}" class="hash">#</a>{% endif %}
</dt>
{% endmacro %}
{% macro show_id(name, mode) -%}
{{ name | lower | replace(' ', '-') }}-{{mode}}
{%- endmacro %}
{% macro render_tag(tag_class, tag_names, tag_props) %}
{%- if tag_names is string -%}
{% set tag_names = [tag_names] %}
{%- endif -%}
{%- for tag_name in tag_names -%}
<span class="tag {{ tag_class | lower }} tag-{{ tag_name | lower | replace(' ', '-') }}"
data-name="{{ tag_name | replace(' ', '-') | lower | replace(' ', '-') }}">
{{- tag_name -}}
{%- if tag_props -%}<span class="tag-badge">{{ tag_props }}</span>{%- endif -%}
</span>
{%- endfor -%}
{% endmacro %}
{% macro show_keywords(game, names) -%}
{{ game.name | lower | e -}}{{ ' ' -}}
{{ game.tags | join(' ') -}}{{ ' ' -}}
{{ game.info | lower | e -}}{{ ' ' -}}
{% for n in names -%}
{% if n is not string -%}
{% for i in n -%}
{{ i | lower | e -}}{{ ' ' -}}
{% endfor -%}
{% else -%}
{{ n | lower | e -}}
{% endif -%}
{% endfor -%}
{%- endmacro %}
{% macro render(names, items, mode) %}
{% for name in names %}
{{ render_name(name, loop.index0, mode) }}
{% endfor %}
{% for game in items %}
<dd class="searchable {% if game.new %}new{% endif %}"
data-parent="
{%- if names.0 is string -%}
{% set name = names.0 %}
{%- else -%}
{% set name = names.0.0 %}
{%- endif -%}
{{ show_id(name, mode) }}"
data-tags="{{ game.tags | join(' ') }}"
data-index="{{ show_keywords(game, names) }}">
<span class="{% if 'media' in game %}toggler{% else %}notoggler{% endif %}">▶</span>
{%- if 'url' in game %}<a href="{{ game['url'] }}">{% endif %}{{ game['name'] }}{%- if 'url' in game %}</a>{% endif %}
{%- if 'repo' in game %} (<a href="{{ game['repo'] }}">repo</a>){%- endif -%}
{{ render_tag('status', game['status'] | title) }}
{{ render_tag('license', game['license']) }}
{{ render_tag('lang', game['lang']) }}
{{ render_tag('framework', game['framework']) }}
{%- if 'info' in game %}<div>{{ game['info'] }}</div>{% endif %}
<script type="text/screenshots">
{% for item in game.get('media', []) %}
{% if 'raw' in item %}{{ item['raw'] }}{% endif %}
{% if 'image' in item -%}
<a {%- if 'url' in item %} href="{{ item['url'] }}" {%- endif %}><img src="{{ item['image'] }}"></a>
{%- endif %}
{% endfor %}
</script>
</dd>
{% endfor %}
{% endmacro %}
<section class="tag-group">
<h4>Languages</h4>
{% for tag, tag_props in site.lang.iteritems() %}
{{ render_tag('lang', tag, tag_props['tag_count']) }}
{% endfor %}
</section>
<h2>List of complete clones</h2>
<article>Some of these games aren't reimplementations but evolution of original ones, which were eventually open sourced.</article>
<dl>
{% for names, items in site.clones %}
{{ render(names, items, 'clones') }}
{% endfor %}
</dl>
<h2>Inspired by original game series</h2>
<dl>
{% for names, items in site.reimplementations %}
{{ render(names, items, 'inspired') }}
{% endfor %}
</dl>
<footer>© 2011-2016
<a href="mailto:vsevolod.solovyov@gmail.com">Vsevolod Solovyov</a>,
<a href="mailto:alexander@solovyov.net">Alexander Solovyov</a>,
<a href="https://github.com/piranha/osgameclones/graphs/contributors">and other contributors.</a>
</footer>
<style id="filter-style"></style>
<style id="tag-style"></style>
<script type="text/javascript" src="static/main.js"></script>
<script type="text/javascript">
var _gaq = [['_setAccount', 'UA-23716824-1'], ['_trackPageview']];
setTimeout("_gaq.push(['_trackEvent', '15_seconds', 'read'])", 15000);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>