From 775fc9b5233216a17fe16efda63b4e949b1c44e3 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 3 May 2022 14:38:35 +0200 Subject: [PATCH] nilrider:: start on no-slope --- rogueviz/nilrider/level.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rogueviz/nilrider/level.cpp b/rogueviz/nilrider/level.cpp index 6e2568bc..7830c561 100644 --- a/rogueviz/nilrider/level.cpp +++ b/rogueviz/nilrider/level.cpp @@ -55,6 +55,13 @@ void level::init() { println(hlog, "start.where = ", start.where); 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++) { cgi.bshape(s == 0 ? shFloor : shPlanFloor, PPR::WALL); shFloor.flags |= POLY_TRIANGLES;