1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-29 04:47:41 +00:00

ads-game:: you can now shoot rocks

This commit is contained in:
Zeno Rogue
2022-09-11 13:42:51 +02:00
parent 4eebc5858e
commit 06832c5371
4 changed files with 81 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ void fire() {
ads_matrix S1 = S0 * lorentz(0, 2, 3); // 0.995c
auto& ro = ci_at[c].rocks;
ro.emplace_back(rockinfo{1, S1, 0xC0C0FFFF });
ro.emplace_back(rockinfo{oMissile, c, S1, 0xC0C0FFFF });
auto& r = ro.back();
ads_matrix Scell(Id, 0);
@@ -106,6 +106,8 @@ bool ads_turn(int idelta) {
if(!(cmode & sm::NORMAL)) return false;
handle_crashes();
auto& a = multi::actionspressed;
auto& la = multi::lactionpressed;