1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-16 18:24:48 +00:00
Commit Graph

698 Commits

Author SHA1 Message Date
Zeno Rogue
57f2891826 bounded Minefield now works according to the standard Minesweeper rules 2019-09-12 22:42:58 +02:00
Zeno Rogue
4284831069 more options in line animation 2019-09-12 22:42:58 +02:00
Zeno Rogue
44495852ad hr_exception, currently used for build_shortest_path 2019-09-12 22:42:58 +02:00
Zeno Rogue
80d14c0196 add_action_push consistently; improved some menu hotkeys and ordering; improved some naming 2019-09-12 22:42:58 +02:00
Zeno Rogue
54a32441a7 restructured menus 2019-09-12 22:42:58 +02:00
Zeno Rogue
55492e229b Asteroids in 3D 2019-09-12 22:42:58 +02:00
Zeno Rogue
6044095228 fix: equivolume 2019-09-12 22:42:58 +02:00
Zeno Rogue
10fd8a41b7 crystal cut 2019-09-12 22:42:58 +02:00
Zeno Rogue
5356eba11c Asteroids 2019-09-12 22:42:58 +02:00
Zeno Rogue
4727e71590 rug:: bugfix: draw boundary and model elements (previously changing fillmodel had no effect on rug) 2019-09-12 22:42:58 +02:00
Zeno Rogue
2b61413a81 azimuthal equivolume projection 2019-09-12 22:42:58 +02:00
Zeno Rogue
5545f8efeb 11.0o: fixed Ivory/Yendorian 2019-09-12 22:42:58 +02:00
Zeno Rogue
3634956046 11.0n 2019-09-12 22:38:47 +02:00
Zeno Rogue
ab7a322e5e 3d:: smart display for 3D 2019-09-12 22:38:47 +02:00
Zeno Rogue
b5127b0006 3d:: rotation_yz for line animation (la currently still changes directions randomly) 2019-09-12 22:38:47 +02:00
Zeno Rogue
2121aacaaf 3d:: clipping configurable 2019-09-12 22:38:47 +02:00
Zeno Rogue
f399a8c980 3d:: shader acceleration in the band model 2019-09-12 22:38:47 +02:00
Zeno Rogue
bc3e7f2e95 3d:: shader acceleration for 3D ball and 3D halfspace 2019-09-12 22:38:47 +02:00
Zeno Rogue
01a2f0cc5a 3d:: change model orientation in the YZ plane 2019-09-12 22:38:47 +02:00
Zeno Rogue
745f1b302b signum in hyper.h 2019-09-12 22:38:47 +02:00
Zeno Rogue
5116d745c4 gldraw:: offset and texture_offset are now separate 2019-09-12 22:38:47 +02:00
Zeno Rogue
1d1baf2207 11.0m 2019-09-12 22:38:47 +02:00
Zeno Rogue
fcedebd0d8 3d:: improved floor patterns 2019-09-12 22:38:46 +02:00
Zeno Rogue
d369decc94 3d:: field quotient spaces for reg3 2019-09-12 22:38:46 +02:00
Zeno Rogue
372a9503b6 3d:: fieldpattern now works in 3D 2019-09-12 22:38:46 +02:00
Zeno Rogue
0e10dec9e2 added some exports to hyper.h and rogueviz.h 2019-09-12 22:38:46 +02:00
Zeno Rogue
cb9513dd0d 3d:: horohex geometry 2019-09-12 22:38:46 +02:00
Zeno Rogue
f68b216eb4 original image size is accessible in texture_data 2019-09-12 22:38:46 +02:00
Zeno Rogue
678747ceff 3d:: horo-rec geometry 2019-09-12 22:38:45 +02:00
Zeno Rogue
5db2cfbd1a 3d:: textured walls 2019-09-12 22:38:45 +02:00
Zeno Rogue
f3a166b928 fixed a bug in aura (coords[3] not set) 2019-09-12 22:38:45 +02:00
Zeno Rogue
7f6957694a moved inline functions to hyper.h 2019-09-12 22:38:45 +02:00
Zeno Rogue
bbaca3eff3 11.0l 2019-09-12 22:38:45 +02:00
Zeno Rogue
2a7e1f2603 3d:: horotris: correct distances 2019-09-12 22:38:45 +02:00
Zeno Rogue
e5cc9d77a0 3d:: automatically adjust monster generation based on the number of generated cells 2019-09-12 22:38:45 +02:00
Zeno Rogue
4591c2166e 3d:: binary:: land boundaries 2019-09-12 22:38:45 +02:00
Zeno Rogue
14ea73be06 choice of the magic sword graphics now depends on the scale; in shmup, the tip is now set automatically based on the graphics 2019-09-12 22:38:45 +02:00
Zeno Rogue
d9b90d8a8e 3D:: two-player uses split screen 2019-09-12 22:38:45 +02:00
Zeno Rogue
55c31ec645 3d:: refactored the hide_player function 2019-09-12 22:38:45 +02:00
Zeno Rogue
9f9670fcdb an option to desaturate colors for anaglyph 2019-09-12 22:38:45 +02:00
Zeno Rogue
22e65471f2 3d:: improved hyperbolic regular Temple 2019-09-12 22:38:45 +02:00
Zeno Rogue
497f7f6c0f 3d:: reg3:: distances and alt-distances 2019-09-12 22:38:45 +02:00
Zeno Rogue
6d72bd820b 3d:: extra_generation_distance (todo: make it configurable from menus) 2019-09-12 22:38:45 +02:00
Zeno Rogue
679e44d4b1 grid color is now configurable (stdgridcolor) 2019-09-12 22:38:45 +02:00
Zeno Rogue
78d88b5909 improved in the OO fashion: draw, relative_matrix, create_step, and several minor functions are now virtual in hrmap 2019-09-12 22:38:44 +02:00
Zeno Rogue
d8428f2ec3 crystal::3d:: transformation 2019-09-12 22:38:44 +02:00
Zeno Rogue
105de56857 3d:: HoroTris geometry 2019-09-12 22:38:44 +02:00
Zeno Rogue
a2c6a4e8b0 3d:: a system for drawing transparent things, with sorting being the responsibility of HR 2019-09-12 22:38:43 +02:00
Zeno Rogue
91d848cc74 version 11.0j 2019-09-12 22:38:43 +02:00
Zeno Rogue
8d2b6a0093 BARLEV now can be 8 2019-09-12 22:38:43 +02:00
Zeno Rogue
52ce5ac9aa 3d:: all the regular honeycombs 2019-09-12 22:38:43 +02:00
Zeno Rogue
2a801ba5d3 update 11.0i 2019-09-12 22:38:43 +02:00
Zeno Rogue
9a3167e0ed adjusted to older C++ 2019-09-12 22:38:43 +02:00
Zeno Rogue
cb8e34204f two more Euclidean honeycombs; also split buildpolys into subfunctions 2019-09-12 22:38:43 +02:00
Zeno Rogue
b3920f76b0 3D:: Temple of Cthulhu in Euclidean 2019-09-12 22:38:43 +02:00
?
d46a909612 version number changed to 11.0h 2019-09-12 22:38:42 +02:00
?
4ac186437b editable statues 2019-09-12 22:38:42 +02:00
?
5871a4b208 3d:: radar feature 2019-09-12 22:38:42 +02:00
?
56dc2d18c0 3D:: cleaned up the 3D menu in 3D geometry; also added creature_scale and height_width parameters 2019-09-12 22:38:42 +02:00
?
54f278963c renamed MAXDIM to MAXMDIM (conflict with crystal) 2019-09-12 22:38:42 +02:00
?
041c7af987 3d:: *_d functions now consistently put d as the first argument 2019-09-12 22:38:42 +02:00
?
42e4342c4a 3d:: fixed pushing directions 2019-09-12 22:38:42 +02:00
?
aac03e72fe 3d:: depthtest disabled for PPR::SUPERLINE and beyond 2019-09-12 22:38:42 +02:00
?
1809cf1622 3d:: sphere:: fixed sphereflip (and thus noshmup movement) 2019-09-12 22:38:42 +02:00
?
0c125efb15 3d:: nice fire 2019-09-12 22:38:42 +02:00
?
b0c21f0626 3d:: mapeditor works 2019-09-12 22:38:42 +02:00
?
3de228fce1 3D:: fixed item graphics 2019-09-12 22:38:42 +02:00
?
111bc3697d sword:: removed the dependence on the S* constants 2019-09-12 22:38:42 +02:00
?
71f02d5dc2 3d:: mouse aiming 2019-09-12 22:38:40 +02:00
?
6808c4e926 smooth_scrolling now configurable 2019-09-12 22:38:40 +02:00
?
fe174d8873 3D:: elliptic space 2019-09-12 22:38:40 +02:00
?
fb71d4fd15 3D:: sightranges are now configurable 2019-09-12 22:38:40 +02:00
?
5ae2714e37 C0 and Cx1 now changes depending on DIM 2019-09-12 22:38:40 +02:00
?
259e376909 3d:: four-phase drawing of sphere 2019-09-12 22:38:40 +02:00
?
33d4854c14 3D:: 120-cell 2019-09-12 22:38:40 +02:00
?
1fcf58e17a 3D:: shader variants for R3 and S3 2019-09-12 22:38:40 +02:00
?
c7cb93f2ed moved all the Euclidean maps to euclid.cpp 2019-09-12 22:38:40 +02:00
?
7110be2032 3D:: cube tiling 2019-09-12 22:38:40 +02:00
?
d08e58f404 3d:: 2D/3D is now selectable at runtime 2019-09-12 22:38:40 +02:00
?
c66a76e00f 3D: denser Temple of Cthulhu 2019-09-12 22:38:40 +02:00
?
0ea37718f0 shaderside projection for DIM==3 2019-09-12 22:38:39 +02:00
?
56d628d4d8 adjusting for 3D part II 2019-09-12 22:38:39 +02:00
?
e73d2f2f22 some work on 3D view 2019-09-12 22:38:39 +02:00
?
a3eb161235 added CAP_SHAPES: poly system works, but no shapes are used 2019-09-12 22:38:39 +02:00
?
e04471a254 racing:: removed always_false 2019-09-12 22:38:39 +02:00
?
dd0f573ca9 hyperpoint adjusted for 3D geometry 2019-09-12 22:38:39 +02:00
?
e39777f04d CAP_ animations etc. cleanup 2019-09-12 22:38:39 +02:00
?
c5a771c888 CAP_FIELD part 1 2019-09-12 22:38:39 +02:00
?
b25730d5c9 geometry flags part 1 2019-09-12 22:38:39 +02:00
?
183b267d64 improved ISMINI; always_false 2019-09-12 22:38:39 +02:00
Zeno Rogue
e44de82394 11.0g 2019-09-12 22:38:39 +02:00
Zeno Rogue
970eb365ce version 11.0f 2019-09-12 22:38:39 +02:00
Zeno Rogue
ddd1161acc 11.0e version number 2019-09-12 22:38:39 +02:00
Zeno Rogue
98f03dc076 11.0d 2019-09-12 22:38:39 +02:00
Zeno Rogue
f4ba325911 version 11.0c 2019-09-12 22:38:39 +02:00
Zeno Rogue
9cc9a881a7 version 11.0b 2019-09-12 22:38:39 +02:00
Zeno Rogue
c80df92acb text fixes, PL translation updated 2019-09-12 22:38:39 +02:00
Zeno Rogue
46b87a20b2 racing:: myname added to scores 2019-09-12 22:38:39 +02:00
Zeno Rogue
8756b8e27a racing::standard_centering 2019-09-12 22:38:39 +02:00
Zeno Rogue
5079df3679 version 11.0 2019-09-12 22:38:39 +02:00
Zeno Rogue
92b37cf9e2 racing:: save parameters to config 2019-09-12 22:38:38 +02:00
Zeno Rogue
e4939ad8d4 racing:: achievements/leaderboards 2019-09-12 22:38:38 +02:00
Zeno Rogue
7c84d2e554 achievements/leaderboards for the new lands/modes 2019-09-12 22:38:38 +02:00
Zeno Rogue
5598bf3e08 brownian:: nicer finding, and theme/balance improvements 2019-09-12 22:38:38 +02:00
Zeno Rogue
dda147c173 newlands:: wandering monsters in Brownian and Variant 2019-04-29 17:19:06 +02:00
Zeno Rogue
d65c41db12 racing::add_debug 2019-04-29 17:19:06 +02:00
Zeno Rogue
2bc66342dd newlands:: implemented new Orbs: Gravity, Intensity, Choice 2019-04-29 17:19:06 +02:00
Zeno Rogue
6d392ce07e westwall:: initial commit 2019-04-29 17:19:06 +02:00
Zeno Rogue
724d3516fa variant:: first version 2019-04-29 17:19:05 +02:00
Zeno Rogue
490ee83f3a racing:: with CAP_RACING off, no warning on unused variable racing::on 2019-04-29 17:19:05 +02:00
Zeno Rogue
cd01e6bbf1 racing:: made the current version compile without CAP_RACING 2019-04-29 17:19:05 +02:00
Zeno Rogue
29c0b899dc racing:: track selection; can be now set as a special game mode 2019-04-29 17:19:05 +02:00
Zeno Rogue
c67d7e06c6 racing:: remembering ghost, track selection (with times), completion percentage shown 2019-04-29 17:19:05 +02:00
Zeno Rogue
27011f1cf0 racing:: measuring times 2019-04-29 17:19:05 +02:00
Zeno Rogue
410c05554c racing:: fixed some lands for racing 2019-04-29 17:19:05 +02:00
Zeno Rogue
d5ce7dc30b racing:: improved Euclidean track generation 2019-04-29 17:19:05 +02:00
Zeno Rogue
16a5e45c0a racing:: first commit 2019-04-29 17:19:05 +02:00
Zeno Rogue
74ad8ea135 brownian:: more serious work 2019-04-29 17:19:05 +02:00
Arthur O'Dwyer
9471ac4ff5 Rearrange some macros. No functional change intended. 2019-02-08 18:18:56 -05:00
Zeno Rogue
f546bba84a fixes for mobile 2019-02-08 16:57:19 +01:00
Zeno Rogue
fd9fca6129 redesigned the Experiment with Geometry menu 2019-02-08 16:55:00 +01:00
Zeno Rogue
952f1c44fe minor fixes to color handling 2019-02-06 18:54:29 +01:00
Arthur O'Dwyer
87240cf990 Replace std::function with hyper_function for a 37% speedup in compile time.
Before:

    time c++ -O2 -DMAC -I/usr/local/include -std=c++11 -march=native
             -W -Wall -Wextra -Werror -pedantic -Wno-format-pedantic
             -Wno-missing-field-initializers -Wno-unused-parameter
             -DCAP_GLEW=0 -DCAP_PNG=0    -c hyper.cpp -o hyper.o

    real 2m22.508s
    user 2m20.625s
    sys  0m1.648s

After:

    time c++ -O2 -DMAC -I/usr/local/include -std=c++11 -march=native
             -W -Wall -Wextra -Werror -pedantic -Wno-format-pedantic
             -Wno-missing-field-initializers -Wno-unused-parameter
             -DCAP_GLEW=0 -DCAP_PNG=0    -c hyper.cpp -o hyper.o

    real 1m30.515s
    user 1m29.793s
    sys  0m0.689s

Comparing object file size:

    -rw-r--r--  1 ajo  staff  8215036 Jan  5 20:46 old-hyper.o
    -rw-r--r--  1 ajo  staff  7538072 Jan  5 20:47 new-hyper.o

Comparing number of symbols:

    nm old-hyper.o | wc -l  => 12590
    nm new-hyper.o | wc -l  =>  9742

No appreciable difference in link time; the linker takes less than
half a second in either case.
2019-02-06 18:48:53 +01:00
Zeno Rogue
94ce1eb541 fixed_facing option, not only in racing 2019-02-06 18:48:53 +01:00
Zeno Rogue
92d98847fb fixed the issue with Orb of Aether being marked as used due to Minefield uncovering 2019-02-06 18:48:53 +01:00
Zeno Rogue
730e7b5b99 number editor now accepts hex numbers, and uses hex as default when editing Tortoises 2019-02-06 18:48:53 +01:00
Zeno Rogue
78adac4e10 an option to disable wandering monsters; settings (reptilecheat, autocheat, safety etc) configurable in map editor; save items/kills and some other settings 2019-02-06 18:48:53 +01:00
Zeno Rogue
645e4fa56c shift+G screen is now editable 2019-02-06 18:48:52 +01:00
Zeno Rogue
7a589090d3 texture:: texture ghosts are now shown correctly 2019-02-06 18:48:52 +01:00
Zeno Rogue
9ccf82d9dc texture:: 'paint textures' in main menu now starts Canvas automatically 2019-02-06 18:48:52 +01:00
Zeno Rogue
d3a3d4df5e crystal:: coordinate computation is exported now 2019-02-06 18:48:52 +01:00
Zeno Rogue
c2dc4c8708 PHASE no longer needs using namespace arg 2019-02-06 18:48:52 +01:00
Zeno Rogue
74693f43e7 fixed crashes on the sphere 2019-02-06 18:48:52 +01:00
Zeno Rogue
3317e95bfb cellcount counted correctly 2019-02-06 18:48:52 +01:00
Zeno Rogue
b0b783b581 tailored_delete used for deleting cells and heptagons, so that there is no delete/delete[] mismatch 2019-02-06 18:48:52 +01:00
Zeno Rogue
e52f6a9bcb cleaned up geometry achievements, and added Crystal Camelot 2019-02-06 18:48:35 +01:00
Zeno Rogue
39ce061fa7 use_atan configurable for RotatedHyperboles 2019-02-06 16:39:08 +01:00
Zeno Rogue
b90e3a4ed2 improved reptilecheat 2019-02-06 16:37:35 +01:00
Zeno Rogue
3d76e90584 conical spirals and bands 2019-02-06 16:36:52 +01:00
Zeno Rogue
e2b262979b startgame animations 2019-02-06 16:36:52 +01:00
Zeno Rogue
cd001102f8 fixed bug in write_chars 2018-12-15 15:16:11 +01:00
Zeno Rogue
a18570f77a 10.4d 2018-12-14 19:30:54 +01:00
Zeno Rogue
db69276264 geometry specifics in mode code 2018-12-14 19:30:54 +01:00
Zeno Rogue
8a677c28fa inlines 2018-12-14 19:30:54 +01:00
Zeno Rogue
5d01ac0732 text improvements, PL/CZ translation update 2018-12-14 19:30:54 +01:00
Zeno Rogue
f22ec08f86 Warnings when hitting an ally. Better warnings 2018-12-14 19:30:54 +01:00
Zeno Rogue
4370a18763 added background to svg if transparent not set 2018-12-14 19:30:54 +01:00
Zeno Rogue
8ba603fba3 svg:: circles now have better linewidth 2018-12-14 19:30:22 +01:00
Zeno Rogue
473cd89d76 print walkers 2018-12-14 19:30:22 +01:00
Zeno Rogue
8d1e341555 web:: 'take screenshot' feature now creates a SVG file and opens it in a new window 2018-12-14 19:30:22 +01:00