JoshuaU01 / yoda-game

Ahhh yesss...Real game yes yes
1 stars 0 forks source link

Use masks for sprites #20

Open JoshuaU01 opened 3 weeks ago

JoshuaU01 commented 3 weeks ago

Use masks for collision handling etc. between sprites instead of rectangles.

JoshuaU01 commented 2 weeks ago
  1. masks for all objects/sprites
  2. mask based collision detection (2.1. additional rect based collision detection for performance reasons)
  3. calculate mask overlap with collide_mask() to ensure correct behavior in position update methods
  4. draw masks manually for all character and object models (must not be too precisely)
  5. mask based jump attack of the runner
  6. character lights up for a short time when hit