1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-18 06:30:41 +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

@ -337,7 +337,7 @@ map<char, array<string, pixel_per_block> > submaps = {
"gh WW gh",
"hg WW hg",
}},
{'T', {
{'T', { /* trampoline */
"WWWWWWWWWWWWWWWW",
"WYYYYYYYYYYYYYYW",
"WYyyyyyyyyyyyyYW",
@ -355,6 +355,24 @@ map<char, array<string, pixel_per_block> > submaps = {
"WYYYYYYYYYYYYYYW",
"WWWWWWWWWWWWWWWW",
}},
{'V', { /* velocity converter */
"WWWWWWWWWWWWWWWW",
"WrrrrrrrrrrrrrrW",
"WrbbrbbrrbbrbbrW",
"WrbbrbbrrbbrbbrW",
"WrrrrrrrrrrrrrrW",
"WrbbrbbrrbbrbbrW",
"WrbbrbbrrbbrbbrW",
"WrrrrrrrrrrrrrrW",
"WrrrrrrrrrrrrrrW",
"WrbbrbbrrbbrbbrW",
"WrbbrbbrrbbrbbrW",
"WrrrrrrrrrrrrrrW",
"WrbbrbbrrbbrbbrW",
"WrbbrbbrrbbrbbrW",
"WrrrrrrrrrrrrrrW",
"WWWWWWWWWWWWWWWW",
}},
};
level rotplane(
@ -923,7 +941,7 @@ level flyoff(
"gggg|!!!gg|gggg!",
"gg--*!!!--*--gg!",
"gggg|!!!gg|gggg!",
"gggggggGGgggggg!",
"gggggVVVGgggggg!",
"ggggggggggggggg!",
"ggggggggggggggg!",
"!!!!!!!!!!!!!!!!"

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;