I wanted to build a table for my brother's treehouse that could collapse and not take up space when he wasn't using it. This is what I ended up with.
Step 1: Materials
Some 2x4s and plywood.
Also, if you don't already have them, some hinges and metal latches.