DemoProductions / shmup

3 stars 2 forks source link

Fix weapon rotation #130

Closed flip40 closed 8 years ago

flip40 commented 8 years ago

Fixed weapon rotation, will now always fire towards the front of the object. Enemies are now spawned facing 180y (to the left) instead of identity (i.e. the game object now faces the correct direction, as bullets fire out the "front").

Sprites changed to point filter instead of bi-linear. We can change this later but it made the sprites fuzzy, and considering they style I don't think that is what we want over a non-filtered pixel look.

GameObjects scaled to 2 x/y.

Added health component to enemies. Adjusted all weapon damage to 1, health for enemies and players is 3 (with my little play testing on it, this will definitely need adjusting, but I was more concerned with damaging of player and enemies being in a working state).

Also fixed enemies shooting while off screen and not shooting while on screen (bad if/else).

Also shortened a number variable paths (for example this.gameObject.transform was shortened to this.transform, and such).