Hey, I'm sorry but I don't think I really feel like giving out the full source code for this, it was written super quickly since this game was made for a game jam and as such is not of very high quality, besides, I'm sure there's better things out there like tutorials which are specifically dedicated to this sort of game.