summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Enders <smenders@gmail.com>2021-01-23 11:00:55 -0500
committerStephen Enders <smenders@gmail.com>2021-01-23 11:00:55 -0500
commitf01537a8ff454b68b83574f16cb4e2ff244a4e8a (patch)
tree9f72ebb21e3f63effe7ad728873a8f965dcdf786
parenta28b7208180937f21cf9cfa8542d0490cd643daa (diff)
Add goal slots and task list
-rw-r--r--helper.cpp18
-rw-r--r--tasks.txt7
2 files changed, 21 insertions, 4 deletions
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<std::vector<sf::Texture>> 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<std::vector<sf::Texture>> 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
+