inticoy/so_long

Implement movement of hit blocks

Closed this issue · 4 comments

Blocks that moves

  • Item Blocks (if it is not collected)
  • normal blocks in the sky

hit block first change in to collected item block, and go up 5 pixels, down 5 pixels.

Make Collectible List

struct collectible
{
    t_bool        is_collected;
    long long   frame_collected;
}
  • save exact position in collectible struct
  • or save just frame and draw it in draw_collectibles

remove item blocks