Filing taxes in two states

What's the difference between filing a tax return in both California and New York in one year, vs just new york? Will I make less money if I file in two states? Like if I live in California and work in New York will I make less money? Also if I technically qualify as homeless, would that be better for taxes? Thank you so much for your help, you're incredible!!