1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 22:12:59 +00:00

velocity converter tiles

This commit is contained in:
Zeno Rogue
2024-08-18 15:50:06 +02:00
parent 25bbd96a72
commit 3f0f4d3fcc
2 changed files with 26 additions and 2 deletions

View File

@@ -271,6 +271,12 @@ bool timestamp::check_crashes(level* lev, hyperpoint owhere, hyperpoint oflyvel,
tramp_head = heading_angle;
}
else if(ch == 'V') {
/* convert velocity on velocity converter */
vel = hypot_d(3, flyvel);
on_surface = lev;
}
else {
/* waste some energy */
flyvel = flyvel - dot_d(3, flyvel, dz) * dz;