oyvind-stromsvik / spelunky

31 stars 4 forks source link

If you attack gold or gems you get an exception because their EntityHealth component is not setup properly #40

Open oyvind-stromsvik opened 2 years ago

oyvind-stromsvik commented 2 years ago

A side effect of my "all entities have health, physics and graphics" approach. Still feel this makes sense though. Just need to expand on the health component. Gold and gems shouldn't be able to be "killed", but they should still be able to be crushed etc. and the health component can probably control all of this.