-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
123 lines (93 loc) · 4.72 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
<!DOCTYPE html>
<html>
<head>
<title>Folding</title>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic|Open+Sans:700,400">
<link rel="stylesheet" href="example.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="folding.css" type="text/css" charset="utf-8" />
</head>
<body>
<section class="post-content folding">
<h1>Folding</h1>
<p>Folding is a way to display your rendered <a href="http://www.foldingtext.com">FoldingText</a> content on the web.</p>
<p>I’ve implemented what was the most important features for me: folding, tag filtering and todo lists. Feel free to fork & send pull requests if you want additional features.</p>
<h2 id="usage">Usage</h2>
<p>Include "folding.js" and "folding.css". Folding.js exports one function <code>foldIt</code>. To use it you can either pass it a node list <code>foldIt(document.getElementsByClassName('post-content'))</code>, a single element <code>foldIt(document.getElementById('fold-this'))</code> or simply call <code>foldIt()</code> to have it process all elements with the class “folding”.</p>
<pre><code>
// Process all elements with the class "folding".
foldIt();
// Process a single element
foldIt(document.getElementById('fold-this'));
// Process all elements in a node list.
foldIt(document.getElementsByClassName('post-content'));
</code></pre>
<h2 id="milestonea">Milestone A</h2>
<p id="p1">In which we learn to navigate and interact with the world.</p>
<ul id="ul1">
<li>Viewport scrolling @frontend</li>
<li>Implement sprite culling @frontend</li>
<li>Re-add interactives (units & other clickable stuff)</li>
</ul>
<h3 id="frontendtodo">Frontend.todo</h3>
<ul id="ul1">
<li>Viewport scrolling @done</li>
<li>Implement sprite culling @done</li>
<li>Re-add interactives (units & other clickable stuff) @done</li>
</ul>
<h3 id="gameplaytodo">Gameplay.todo</h3>
<ul id="ul2">
<li>Re-add unit movement @done</li>
</ul>
<h2 id="milestoneb" class="folding-collapsed">Milestone B</h2>
<p id="p2">In which two or more people can take turns to interact with the world.</p>
<h3 id="gameplaytodo">Gameplay.todo</h3>
<ul id="ul3">
<li>Multiple players @done</li>
<li>Implement turns @done</li>
<li>Add unit ownership @done
<ul><li>Only allow interaction with own units</li>
<li>Only allow interaction with own units @done</li></ul></li>
<li>Find random starting positions Find random starting positions Find random starting positions Find random starting positions @done</li>
<li>Track movement points @done</li>
<li>Don't allow movement into mountains and sea</li>
</ul>
<h2 id="milestonec">Milestone C</h2>
<p id="p3">In which said people start beating the crap out of each other (a natual progression of events).</p>
<h3 id="terraingenerationtodo">Terrain generation.todo</h3>
<ul id="ul4">
<li>Work out the hills-forest & terrain-features relationship</li>
</ul>
<h3 id="gameplaytodo">Gameplay.todo</h3>
<ul id="ul5">
<li>Melee @combat</li>
<li>Ranged @combat</li>
<li>Defensive & offensive terrain bonuses @combat</li>
<li>Bonus: Animated projectiles @combat</li>
<li>Bonus: Animated melee combat (bumping+fade out a la Civ I & dust) @combat</li>
</ul>
<h2 id="milestoned">Milestone D</h2>
<p id="p4">In which constructive things also can be done.</p>
<h3 id="gameplaytodo">Gameplay.todo</h3>
<ul id="ul6">
<li>Worker can build roads</li>
<li>... and camps - protocities
<ul><li>Must be 8 squares apart</li>
<li>Production based on population & terrain @economy</li>
<li>Food based on population & terrain @economy</li>
<li>Growth based on food @economy</li>
<li>Construct buildings</li>
<li>Buildings enables the construction of additional & units</li></ul></li>
<li>There must be a cap on the number of camps that can be built @economy</li>
<li>Unit cap based on the number of camps @economy</li>
<li>Defensive bonus in camps @combat</li>
<li>Reduced movement cost for travelling along roads</li>
<li>Bonus: camps evolve to villages and can support more units</li>
</ul>
</section>
<a href="https://github.com/hugowetterberg/folding"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
<script type="text/javascript" charset="utf-8" src="folding.js"></script>
<script type="text/javascript" charset="utf-8">
foldIt();
</script>
</body>
</html>