Folding
Folding is a way to display your rendered FoldingText content on the web.
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.
Usage
Include "folding.js" and "folding.css". Folding.js exports one function foldIt
. To use it you can either pass it a node list foldIt(document.getElementsByClassName('post-content'))
, a single element foldIt(document.getElementById('fold-this'))
or simply call foldIt()
to have it process all elements with the class “folding”.
// 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'));
Milestone A
In which we learn to navigate and interact with the world.
- Viewport scrolling @frontend
- Implement sprite culling @frontend
- Re-add interactives (units & other clickable stuff)
Frontend.todo
- Viewport scrolling @done
- Implement sprite culling @done
- Re-add interactives (units & other clickable stuff) @done
Gameplay.todo
- Re-add unit movement @done
Milestone B
In which two or more people can take turns to interact with the world.
Gameplay.todo
- Multiple players @done
- Implement turns @done
- Add unit ownership @done
- Only allow interaction with own units
- Only allow interaction with own units @done
- Find random starting positions Find random starting positions Find random starting positions Find random starting positions @done
- Track movement points @done
- Don't allow movement into mountains and sea
Milestone C
In which said people start beating the crap out of each other (a natual progression of events).
Terrain generation.todo
- Work out the hills-forest & terrain-features relationship
Gameplay.todo
- Melee @combat
- Ranged @combat
- Defensive & offensive terrain bonuses @combat
- Bonus: Animated projectiles @combat
- Bonus: Animated melee combat (bumping+fade out a la Civ I & dust) @combat
Milestone D
In which constructive things also can be done.
Gameplay.todo
- Worker can build roads
- ... and camps - protocities
- Must be 8 squares apart
- Production based on population & terrain @economy
- Food based on population & terrain @economy
- Growth based on food @economy
- Construct buildings
- Buildings enables the construction of additional & units
- There must be a cap on the number of camps that can be built @economy
- Unit cap based on the number of camps @economy
- Defensive bonus in camps @combat
- Reduced movement cost for travelling along roads
- Bonus: camps evolve to villages and can support more units