So this has been dead for awhile, I ran into some issues that frustrated me so I basically called it quits for awhile. I started from scratch about two days ago and thought I would share my progress. I feel like I'm starting to get close although it is not completely finished yet and I have more work to do and probably a lot of code to streamline but this is what I have so far.
https://dl.dropboxusercontent.com/u/729 ... index.html
CONTROLS
A,D - LEFT AND RIGHT
SPACEBAR - JUMPS
TAB - OPEN INVENTORY/CRAFT MENU
MOUSE WHEEL - SCROLLS CRAFT MENU
LEFT CLICK INV ITEM - ALLOWS YOU TO SORT YOUR INVENTORY
LEFT CLICK BACKGROUND - ALLOWS YOU TO DROP AN INVENTORY ITEM INTO THE WORLD
Basically if you have played Terraria the controls should be second nature.