mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-14 11:15:48 +00:00
bringris:: more solid lps
This commit is contained in:
parent
debdcae057
commit
c896b3ecd6
@ -61,6 +61,10 @@ namespace subquotient {
|
|||||||
|
|
||||||
namespace bringris {
|
namespace bringris {
|
||||||
|
|
||||||
|
local_parameter_set lps_bringris("bringris:");
|
||||||
|
local_parameter_set lps_bringris_explore("bringris:explore:", &lps_bringris);
|
||||||
|
local_parameter_set lps_bringris_play("bringris:play:", &lps_bringris);
|
||||||
|
|
||||||
multi::config scfg_bringris;
|
multi::config scfg_bringris;
|
||||||
|
|
||||||
struct bgeometry {
|
struct bgeometry {
|
||||||
@ -1182,12 +1186,10 @@ void draw_screen(int xstart, bool show_next) {
|
|||||||
|
|
||||||
if(explore) {
|
if(explore) {
|
||||||
gamescreen();
|
gamescreen();
|
||||||
mouseaim_sensitivity = 0.01;
|
lps_enable(&lps_bringris_explore);
|
||||||
camera_speed = 2;
|
|
||||||
smooth_scrolling = true;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mouseaim_sensitivity = 0;
|
lps_enable(&lps_bringris_play);
|
||||||
NLP = Id;
|
NLP = Id;
|
||||||
View = pView;
|
View = pView;
|
||||||
if(nil) {
|
if(nil) {
|
||||||
@ -1970,28 +1972,12 @@ void create_game() {
|
|||||||
camera_level = well_size + max_piece + camera;
|
camera_level = well_size + max_piece + camera;
|
||||||
|
|
||||||
playermoved = false;
|
playermoved = false;
|
||||||
ray::want_use = 2;
|
|
||||||
ray::exp_decay_poly = 200;
|
|
||||||
ray::max_iter_current() = solnil ? 600 : 200;
|
ray::max_iter_current() = solnil ? 600 : 200;
|
||||||
ray::fixed_map = true;
|
|
||||||
mapeditor::drawplayer = false;
|
|
||||||
// sightranges[geometry] = 1;
|
|
||||||
|
|
||||||
|
|
||||||
vid.fov = 90;
|
|
||||||
vid.plevel_factor = 0.5;
|
|
||||||
// vid.grid = true;
|
|
||||||
|
|
||||||
mouseaim_sensitivity = 0;
|
|
||||||
|
|
||||||
start_new_game();
|
start_new_game();
|
||||||
state = tsPreGame;
|
state = tsPreGame;
|
||||||
|
|
||||||
vid.axes3 = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local_parameter_set lps_bringris("bringris:");
|
|
||||||
|
|
||||||
void init_all() {
|
void init_all() {
|
||||||
lps_enable(&lps_bringris);
|
lps_enable(&lps_bringris);
|
||||||
enable_bgeom();
|
enable_bgeom();
|
||||||
@ -2070,6 +2056,20 @@ void default_config() {
|
|||||||
lps_add(lps_bringris, vrhr::eyes, vrhr::eyes);
|
lps_add(lps_bringris, vrhr::eyes, vrhr::eyes);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
lps_add(lps_bringris, ray::exp_decay_poly, 200);
|
||||||
|
lps_add(lps_bringris, ray::fixed_map, true);
|
||||||
|
lps_add(lps_bringris, mapeditor::drawplayer, false);
|
||||||
|
|
||||||
|
lps_add(lps_bringris, vid.fov, 90);
|
||||||
|
lps_add(lps_bringris, vid.plevel_factor, 0.5);
|
||||||
|
lps_add(lps_bringris, vid.axes3, false);
|
||||||
|
|
||||||
|
lps_add(lps_bringris_explore, mouseaim_sensitivity, 0.01);
|
||||||
|
lps_add(lps_bringris_explore, camera_speed, 2);
|
||||||
|
lps_add(lps_bringris_explore, smooth_scrolling, true);
|
||||||
|
|
||||||
|
lps_add(lps_bringris_play, mouseaim_sensitivity, 0);
|
||||||
|
|
||||||
param_b(use_raycaster, "bringris-ray");
|
param_b(use_raycaster, "bringris-ray");
|
||||||
param_i(draw_per_level, "draw-per-level");
|
param_i(draw_per_level, "draw-per-level");
|
||||||
param_b(use_equidistant, "bringris-equidistant");
|
param_b(use_equidistant, "bringris-equidistant");
|
||||||
|
Loading…
Reference in New Issue
Block a user