mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-08 23:20:12 +00:00
nilrider:: start on no-slope
This commit is contained in:
parent
3772f45366
commit
775fc9b523
@ -55,6 +55,13 @@ void level::init() {
|
|||||||
println(hlog, "start.where = ", start.where);
|
println(hlog, "start.where = ", start.where);
|
||||||
println(hlog, "current.where = ", current.where, " : ", format("%p", ¤t));
|
println(hlog, "current.where = ", current.where, " : ", format("%p", ¤t));
|
||||||
|
|
||||||
|
/* start facing slightly to the right from the slope */
|
||||||
|
for(auto b: {true, false}) while(true) {
|
||||||
|
auto c = start;
|
||||||
|
if(c.tick(this) == b) break;
|
||||||
|
start.heading_angle -= 1 * degree;
|
||||||
|
}
|
||||||
|
|
||||||
for(int s=0; s<2; s++) {
|
for(int s=0; s<2; s++) {
|
||||||
cgi.bshape(s == 0 ? shFloor : shPlanFloor, PPR::WALL);
|
cgi.bshape(s == 0 ? shFloor : shPlanFloor, PPR::WALL);
|
||||||
shFloor.flags |= POLY_TRIANGLES;
|
shFloor.flags |= POLY_TRIANGLES;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user