From f01537a8ff454b68b83574f16cb4e2ff244a4e8a Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Sat, 23 Jan 2021 11:00:55 -0500 Subject: Add goal slots and task list --- helper.cpp | 18 ++++++++++++++---- tasks.txt | 7 +++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 tasks.txt diff --git a/helper.cpp b/helper.cpp index 0391d86..8d6f3ce 100644 --- a/helper.cpp +++ b/helper.cpp @@ -61,6 +61,11 @@ createBoard(std::shared_ptr> textures) } // p1 end { + sf::Sprite goal; + goal.setTexture((*textures)[P1_END]); + goal.setPosition(pos(8, 5)); + sprites->push_back(goal); + sf::Sprite end_star; end_star.setTexture(star_texture); end_star.setPosition(pos(9, 5)); @@ -102,16 +107,21 @@ createBoard(std::shared_ptr> textures) } // p2 end { + sf::Sprite goal; + goal.setTexture((*textures)[P2_END]); + goal.setPosition(pos(8, 3)); + sprites->push_back(goal); + sf::Sprite end_star; end_star.setTexture(star_texture); end_star.setPosition(pos(9, 3)); sprites->push_back(end_star); sf::Texture& t = (*textures)[P2_BOARD_TILES[next(&sp_idx, 2)]]; - sf::Sprite s; - s.setTexture(t); - s.setPosition(pos(10, 3)); - sprites->push_back(s); + sf::Sprite end_tile; + end_tile.setTexture(t); + end_tile.setPosition(pos(10, 3)); + sprites->push_back(end_tile); } return sprites; diff --git a/tasks.txt b/tasks.txt new file mode 100644 index 0000000..a27f6da --- /dev/null +++ b/tasks.txt @@ -0,0 +1,7 @@ +[ ] knocking back to start +[ ] star second rolls +[ ] star protection +[ ] 0 passing +[ ] scoring on final position +[ ] no overlap + -- cgit v1.2.3-54-g00ecf