A group of young people were "just chilling" in a park before being left bleeding and in shock by an armed attack that claimed a teen's life, a judge has heard.