mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-22 22:10:20 +00:00
nilrider:: reduce quality feature
This commit is contained in:
parent
6d8ce6db68
commit
acfc18b6a8
@ -95,6 +95,7 @@ void level::init_shapes() {
|
||||
int prec = 16;
|
||||
if(s == 2) prec *= 4;
|
||||
int cdiv = prec / steps_per_block;
|
||||
prec >>= reduce_quality;
|
||||
|
||||
bool need_uniltinf = uniltinf.tvertices.empty();
|
||||
|
||||
|
@ -545,6 +545,7 @@ auto celldemo = arg::add3("-unilcycle", initialize) + arg::add3("-unilplan", []
|
||||
+ arg::add3("-nilgeo", nil_set_geodesic)
|
||||
+ arg::add3("-nilper", nil_set_perspective)
|
||||
+ arg::add3("-nilrider", initialize_all)
|
||||
+ arg::add3("-nilrider-q", [] { arg::shift(); reduce_quality = arg::argi(); })
|
||||
+ addHook(hooks_configfile, 100, [] {
|
||||
param_f(aimspeed_key_x, "nilrider_key_x")
|
||||
->editable(-5, 5, 0.1, "navigation sensitivity (keyboard)", "press Left/Right to navigate (lCtrl to fine-tune)", 'n');
|
||||
|
@ -206,5 +206,7 @@ extern int reversals;
|
||||
extern bool loaded_or_planned;
|
||||
extern bool planning_mode;
|
||||
|
||||
inline int reduce_quality = 0;
|
||||
|
||||
void save();
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ EX hyperpoint sym_to_heis(hyperpoint H) {
|
||||
}
|
||||
|
||||
void timestamp::draw_unilcycle(const shiftmatrix& V) {
|
||||
const int points = 60;
|
||||
const int points = 60 / (1 + reduce_quality);
|
||||
const int spoke_each = 5;
|
||||
hyperpoint whpoint[points+1];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user