So is this an actual new code base or is it using Bitcoin code somehow?
Meaning did they recode from scratch?
Totally distinct code, not a bitcoin code, though it borrows some ideas from bitcoin (the concept of a proof-of-work block chain with a p2p network primarily). It originally surfaced as bytecoin, but that was premined to death and lacking a coherent development team, so the Monero team recognized the potential and adopted it.