A SDL roguelike in a non-euclidean world.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Zeno Rogue 7dbb60d3f8
version 12.1o
1 day ago
.github/workflows Enable -Werror for CI 9 months ago
contrib add desktop file 7 months ago
devmods devmods:: included a tool to generate the hat rules 6 days ago
dll Add cross-compile support 8 years ago
generators removed BUILDZEBRA from drawcell 3 years ago
honeycombs new system for honeycombs in action 7 months ago
hyperroid Android version fixed for API 31 9 months ago
music fixed the ogg files 5 months ago
rogueviz hat:: animations:: changed the hat-atoms-colored line 2 days ago
sounds license specified for the recorded sounds 7 months ago
tessellations a sample with mirrors and apeirogons 6 months ago
.gitignore Eliminate autotools/automake/configure. 2 years ago
.travis.yml Enable -Werror for CI 9 months ago
3d-models.cpp cleaned unused variable in 3d-models 2 days ago
CITATION.cff improved citation metadata 2 years ago
COPYING Initialization with hyperrogue-66 8 years ago
DejaVuSans-Bold.ttf Initialization with hyperrogue-66 8 years ago
Doxyfile Doxygen files added 4 years ago
FUNDING.yml GitHub sponsor added 3 years ago
Makefile embeddings:: fixed Makefile 2 months ago
Makefile.rv French language translation by @3raven 9 months ago
README.md docs: drop version from README 7 months ago
achievement.cpp ineligible_starting_land disables achievements 5 months ago
aperiodic-hat.cpp fixed regenerate hat in seo 1 day ago
arbitrile.cpp fixed some crashes in embedding+arb 4 days ago
archimedean.cpp fixed some crashes in embedding+arb 4 days ago
asonov.cpp made background screen darkening consistent and optional 9 months ago
attack.cpp savemem:: removed some more potential crashes 9 months ago
barriers.cpp Big change: spatial_embedding option 4 months ago
basegraph.cpp embedding:: a simple general implementation of radar 2 months ago
bigstuff.cpp fixed Terracotta in Euclidean disk 2 days ago
binary-tiling.cpp fixup to coordinates 2 months ago
blizzard.cpp used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 5 months ago
cell.cpp fractal geometry 2 days ago
celldrawer.cpp fixed Zebra floor graphics in hat 2 days ago
changelog.txt version 12.1o 1 day ago
checkmove.cpp removed redundant pre-changes orbused rollback, and made it more elegant in movegolem 7 months ago
classes.cpp fractal geometry 2 days ago
colors.cpp fixed rainbow_color for hue == 6 2 days ago
commandline.cpp CLI option -grotatei 2 weeks ago
complex.cpp aperiodic hat tiling 1 week ago
complex2.cpp fixed a bug generating Dice in some tessellations 2 months ago
config.cpp hat:: interesting value for hat parameter 2 days ago
content.cpp Give the Plane of Fire a redder floor than CR4. 4 months ago
control.cpp fixed a bug causing spinning in VR 1 month ago
crystal.cpp used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 5 months ago
debug.cpp fixed naming conflict -W3 to -W4 6 days ago
dialogs.cpp fixed a crash when no last 3 months ago
direntx.h Add "inline" to silence GCC's -Wunused-function warnings in direntx.h. 5 years ago
drawing.cpp conformal square improved on sphere 1 week ago
earcut.hpp Remove extra semis in struct defs 2 years ago
embeddings.cpp fixed some crashes in embedding+arb 4 days ago
embuild.sh emscripten uses ZLIB 3 years ago
environment.cpp fixed Princess using boat 3 months ago
euclid.cpp fractal geometry 2 days ago
expansion.cpp aperiodic is now distinct from kite::in 1 week ago
fake-mobile.cpp savefile selection / an option to use no savefile 7 months ago
fake.cpp hat:: fake now actually appears in menu 4 days ago
fieldpattern.cpp Big change: spatial_embedding option 4 months ago
flags.cpp added flags for Dice 2 years ago
floorshapes.cpp arb-borders are now also used for aperiodic tilings 1 week ago
game.cpp Orb of Choice now works with Orb of Safety 6 months ago
geom-exp.cpp fixed variation not showing 1 day ago
geometry.cpp hat:: hat parameter 5 days ago
geometry2.cpp aperiodic is now distinct from kite::in 1 week ago
glhr.cpp improved glhr debugging 2 weeks ago
goldberg.cpp goldberg:: embeddings:: fixes 2 months ago
graph.cpp fractal geometry 2 days ago
help.cpp fractal geometry 2 days ago
heptagon.cpp fixed an error computing distances in bitruncated {5,4} causing crashes 1 month ago
history.cpp Big change: spatial_embedding option 4 months ago
hprint.cpp kz added for shiftmatrix and shiftpoint 3 months ago
hr-icon.ico Initialization with hyperrogue-66 8 years ago
hud.cpp fixed context help getting stuck in corner stats mode 3 months ago
hyper-main.cpp savefile selection / an option to use no savefile 7 months ago
hyper.cpp aperiodic hat tiling 1 week ago
hyper.h version 12.1o 1 day ago
hyper.rc 10.0n 6 years ago
hyper_function.h Add `explicit` and `override` consistently everywhere else. NFCI. 2 years ago
hyperpoint.cpp phi cannot be constexpr on some compilers 2 months ago
hyperrogue-music.txt fixed the new music 2 years ago
hyperweb.cpp made background screen darkening consistent and optional 9 months ago
hypgraph.cpp new Conformal Square projection (with transition and shader and Euclidean form) 2 weeks ago
inforder.cpp Add `explicit` and `override` consistently everywhere else. NFCI. 2 years ago
intra.cpp added some missing CAP_ guards 1 month ago
inventory.cpp inventory:: added missing outlines 4 months ago
irregular.cpp rewritten the embeddings more nicely 2 months ago
items.cpp Grammar fix to Alt-to-highlight message. 6 months ago
kite.cpp rewritten the embeddings more nicely 2 months ago
landgen.cpp fractal geometry 2 days ago
landlock.cpp fractal geometry 2 days ago
langen.cpp square root symbol 2 days ago
language-cz.cpp Grammar fix to Alt-to-highlight message. 6 months ago
language-de.cpp fixed message about 9 types 2 years ago
language-fr.cpp Grammar fix to Alt-to-highlight message. 6 months ago
language-pl.cpp Grammar fix to Alt-to-highlight message. 6 months ago
language-ptbr.cpp fixed 'Orb of the Love' 1 year ago
language-ru.cpp Grammar fix to Alt-to-highlight message. 6 months ago
language-tr.cpp fixed message about 9 types 2 years ago
language.cpp square root symbol 2 days ago
legacy.cpp fixed extra semicolon 1 year ago
locations.cpp increased the value of special-move constants to >100 so that the limit on sides is indeed 120 11 months ago
makeh.cpp one more update for older compilers 4 years ago
mapeditor.cpp Only use 'texture' in editAt guard when CAP_TEXTURE is set. 3 weeks ago
mapeffects.cpp hat:: arrow trap graphical lines shown 2 days ago
menus.cpp used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 5 months ago
mingw.condition_variable.h fixed the thread locking 3 years ago
mingw.invoke.h threads in MinGW 3 years ago
mingw.mutex.h threads in MinGW 3 years ago
mingw.shared_mutex.h fixed the thread locking 3 years ago
mingw.thread.h threads in MinGW 3 years ago
mobile.cpp updated mobile for menu changes 9 months ago
models.cpp do not display relativistic modes in model list 5 days ago
monstergen.cpp fixed crashes in Zebra in Hat and some other geometries 2 days ago
monstermove.cpp shmup:: fixed Gadflies appearing forever 5 months ago
multi.cpp added some missing guards for CAP_RACING and CAP_COMMANDLINE 9 months ago
multigame.cpp Big change: spatial_embedding option 4 months ago
mymake.cpp Use master's mymake.cpp 6 months ago
netgen.cpp used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 5 months ago
nofont.cpp mymake now works with Emscripten 2 years ago
nonisotropic.cpp aperiodic is now distinct from kite::in 1 week ago
orbgen.cpp Orb of Earth no longer marked useless in Wetland 6 months ago
orbs.cpp hat:: Orb of Vaulting now works correctly 2 days ago
papermodeldata-help.txt papermodeldata files added 4 years ago
papermodeldata.txt papermodeldata files added 4 years ago
passable.cpp fixed Princess using boat 3 months ago
pattern2.cpp hat:: dualpoint now reflects the tiles correctly 2 days ago
patterns.cpp exporting necessary stuff all over (in progress) 4 years ago
pcmove.cpp fixed 'orb used' flags not being rolled back in some cases 7 months ago
polygons.cpp chasmifyPoly now uses logical coordinates 2 months ago
quit.cpp extra exports 8 months ago
quotient.cpp new geometry gHalfBring 2 years ago
racing.cpp Big change: spatial_embedding option 4 months ago
radar.cpp embeddings:: fixed product embedding 2 months ago
raycaster.cpp aperiodic is now distinct from kite::in 1 week ago
reg3.cpp reverted final_coords for now 2 months ago
renderbuffer.cpp fixed renderbuffer from SDL 11 months ago
rug.cpp auto-configure Clifford Torus embedding 3 months ago
rulegen.cpp aperiodic is now distinct from kite::in 1 week ago
rulegen3.cpp some fixes for older compilers 7 months ago
savemem.cpp savemem:: correct delete functions used 9 months ago
savepng.cpp fixup to mymake/savepng 2 years ago
savepng.h Updated to 8.3j 7 years ago
scores.cpp dialog:: improvements to list dialogs 5 months ago
screenshot.cpp svg:: make smaller SVG files by not including things out of the region 2 weeks ago
shaders.cpp new Conformal Square projection (with transition and shader and Euclidean form) 2 weeks ago
shmup.cpp racing:: fixed death in racing mode 1 month ago
shyp-geodesics.dat updated geodesic tables 3 years ago
sky.cpp fixed some crashes in embedding+arb 4 days ago
solv-geodesics.dat updated geodesic tables 3 years ago
sound.cpp find_file to find files in HYPERPATH 7 months ago
source-doc.md Doxygen files added 4 years ago
sphere.cpp on_dim_change clears where on sphere 2 months ago
ssol-geodesics.dat updated geodesic tables 3 years ago
surface.cpp used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 5 months ago
sysconfig.h dialog:: find_highlight 5 months ago
system.cpp hat:: special welcome message 2 days ago
textures.cpp used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 5 months ago
tour.cpp slide text improvements 8 months ago
usershapes.cpp used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 5 months ago
util.cpp fixed crash in edgelen 2 weeks ago
vr.cpp vr:: fixed apply_movement to be geodesic-based not embedded-based in H2.5; also added new eHeadset holonomy_z 1 month ago
wfcgen.cpp made background screen darkening consistent and optional 9 months ago
yendor.cpp tactic:: fixed page buttons 5 months ago

README.md

HyperRogue

TravisCI badge TravisCI badge TravisCI badge

A puzzle roguelike in the hyperbolic plane. See the HyperRogue website for detailed and most up-to-date information. Compiled executables can be downloaded from itch.io and from the HyperRogue website.

Released under GNU General Public License, version 2. As such, it comes without any warranty.

If you would like to thank me for HyperRogue, you can support the development by buying paid versions (with more up-to-date content and some social and competitive features), or in other ways. You can contact me at zeno@attnam.com, or at my blog, or via Twitter.

The game

You are a lone outsider in a strange, non-Euclidean world. You can move with the numpad, vi keys (hjklyubn), or mouse. You can also skip turns by pressing ".".

As a Rogue, your goal is to collect as many treasures as possible. However, collecting treasures attracts dangerous monsters (on the other hand, killing the monsters allows more treasures to be generated).

You can kill most monsters by moving into them. Similarly, if the monster was next to you at the end of your turn, it would kill you. The game protects you from getting yourself killed accidentally by ignoring moves which lead to instant death (similar to the check rule from Chess).

Ultimately, you will probably run into a situation where monsters surround you. That means that your adventure is over, and you will have to teleport back to the Euclidean world to survive by pressing Escape (quit).

Collecting enough treasure also allows you to find rare magical orbs, which grant you one-time or time-limited special abilities.

The world is a combination of over 60 types of lands. Each land type has specific style (monsters, treasure, magical orbs, terrain features). Collecting treasures only attracts more monsters in lands of the same type, so you can try to collect lots of treasure in several different lands!

Some of these lands are available from the beginning, others can be found only if you have proven yourself (press ESC to know what you should do to access more lands). Ultimately, you will be able to access Hell, and look for the fabulous Orbs of Yendor which are hidden there. Get at least one of them to prove that you are a true winner! Only the best players will be able to face the challenges of Hell, but both the monsters and the challenges associated with the Orbs of Yendor are different than in the rest of the game, so it should be worth it.

You can see tooltips by placing the mouse over stuff. You can also right click to get more information about game objects.

Press v to configure the game. You can also rotate the world by pressing arrow keys, PageUp and PageDn (not numpad). You can center on the PC by pressing Home.

Your scores and other stats about your games are recorded to file hyperrogue.log (in Linux, ~/.hyperrogue.log). You can save your configuration to file hyperrogue.ini (in Linux, ~/.hyperrogue.ini).

The surface the game is played on is called a hyperbolic plane. It seems there is just a very small amount of games and other works of art which use hyperbolic geometry (the most well known are some works of M.C. Escher).

The game dynamically generates new parts of the world as you move. Due to nature of the hyperbolic plane, the chances that you get back to a place where you have been before are very low (unless you go back exactly the same way). See more information about the geometry used on the blog.

You can aim for the Orb of Yendor, or you can simply aim for as high score as possible.

Modifications

OK, now lots of the above can be changed. You can change the geometry and topology (to Euclidean, spherical, or even to nonisotropic 3D geometries). You can play challenges based on various in-game quests, and even try some other game genres in non-Euclidean spaces (roguelite aka shmup, racing, peaceful puzzles).

RogueViz

HyperRogue uses RogueViz, which is our engine for non-Euclidean games, computations and visualizations. This repo includes the source code of RogueViz demos in subdirectory rogueviz, but not the data, which is available on itch.io. RogueViz is funded by the National Science Centre, Poland, grant UMO-2019/35/B/ST6/04456.

Development

Build prerequisites

On Linux with apt-get:

sudo apt-get install make g++ libsdl1.2-dev libsdl-ttf2.0-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libglew-dev

On macOS with Homebrew:

brew install sdl sdl_ttf sdl_gfx sdl_mixer glew

macOS users might also have to edit /usr/local/include/SDL/SDL_gfxPrimitives.h at line 38 to use quote include.

Building HyperRogue from source

git clone https://github.com/zenorogue/hyperrogue.git hyperrogue
cd hyperrogue
make

The mymake program builds HyperRogue in parts. It takes longer than the method shown above, but it uses significantly less memory during compilation, and when you change something, mymake will only recompile the changed file. Additionally, it can be easily configured, e.g., to produce an optimized build, or to include addons (see mymake.cpp for some example invocations, and devmods for some example addons). Most useful parameters include -O3 (optimized build), -rv (include the RogueViz demos), -vr (build the VR version). Compiler flags like -Werror (treat warnings as errors) and -march=native work too.

make mymake && ./mymake

The source code is not documented very well. You can see the current state of the documentation, as generated by Doxygen, here.