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.
 
 
 
Zeno Rogue 301dad5d7b sag:: sagsmooth option 3 weeks ago
.github/workflows Enable -Werror for CI 5 months ago
contrib add desktop file 3 months ago
devmods rulegen-tests:: show seq-stats for 3D 3 months ago
dll Add cross-compile support 7 years ago
generators removed BUILDZEBRA from drawcell 3 years ago
honeycombs new system for honeycombs in action 3 months ago
hyperroid Android version fixed for API 31 5 months ago
music fixed the ogg files 1 month ago
rogueviz sag:: sagsmooth option 3 weeks ago
sounds license specified for the recorded sounds 3 months ago
tessellations a sample with mirrors and apeirogons 2 months ago
.gitignore Eliminate autotools/automake/configure. 2 years ago
.travis.yml Enable -Werror for CI 5 months ago
3d-models.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 3 weeks ago
CITATION.cff improved citation metadata 1 year ago
COPYING Initialization with hyperrogue-66 7 years ago
DejaVuSans-Bold.ttf Initialization with hyperrogue-66 7 years ago
Doxyfile Doxygen files added 3 years ago
FUNDING.yml GitHub sponsor added 3 years ago
Makefile Makefile rulegen fix again 4 months ago
Makefile.rv French language translation by @3raven 5 months ago
README.md docs: drop version from README 3 months ago
achievement.cpp ineligible_starting_land disables achievements 1 month ago
arbitrile.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 3 weeks ago
archimedean.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 3 weeks ago
asonov.cpp made background screen darkening consistent and optional 5 months ago
attack.cpp savemem:: removed some more potential crashes 5 months ago
barriers.cpp arb:: tes files with tree data provided work again 5 months ago
basegraph.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 3 weeks ago
bigstuff.cpp new system for honeycombs in action 3 months ago
binary-tiling.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 3 weeks 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 3 weeks ago
cell.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 3 weeks ago
celldrawer.cpp in non-perspective modes, draw disk restriction as wireframes instead of solid walls 3 weeks ago
changelog.txt fixed the date of update 12.1e 4 weeks ago
checkmove.cpp removed redundant pre-changes orbused rollback, and made it more elegant in movegolem 3 months ago
classes.cpp relativistic projections added 2 months ago
colors.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 3 weeks ago
commandline.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 3 weeks ago
complex.cpp removed unused references to pathdist from kraken movement 3 months ago
complex2.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 3 weeks ago
config.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 3 weeks ago
content.cpp Orb icon updates 2 months ago
control.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 3 weeks 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 3 weeks ago
debug.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 3 weeks ago
dialogs.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 3 weeks ago
direntx.h Add "inline" to silence GCC's -Wunused-function warnings in direntx.h. 4 years ago
drawing.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 3 weeks ago
earcut.hpp Remove extra semis in struct defs 1 year ago
embuild.sh emscripten uses ZLIB 3 years ago
environment.cpp symmetric pathdist 3 months ago
euclid.cpp the implementation in reg3 can now be used for the cube tiling 4 months ago
expansion.cpp expansion improved again: auto_extend can be disabled 1 month ago
fake-mobile.cpp savefile selection / an option to use no savefile 3 months ago
fake.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 3 weeks ago
fieldpattern.cpp using smaller field_quotients for rule_fp; also a list of field quotients is included in devmods 3 months ago
flags.cpp added flags for Dice 2 years ago
floorshapes.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 3 weeks ago
game.cpp Orb of Choice now works with Orb of Safety 2 months ago
geom-exp.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 3 weeks ago
geometry.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 3 weeks ago
geometry2.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 3 weeks ago
glhr.cpp fixed SDL2 (with GLEW) on Windows 6 months ago
goldberg.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 3 weeks ago
graph.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 3 weeks ago
help.cpp Merge pull request #324 from jlmjlm/weburl 4 weeks ago
heptagon.cpp init_heptagon fixup 1 year ago
history.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 3 weeks ago
hprint.cpp print hyperpoint now prints MDIM dimensions 4 months ago
hr-icon.ico Initialization with hyperrogue-66 7 years ago
hud.cpp made some item icons larger 3 months ago
hyper-main.cpp savefile selection / an option to use no savefile 3 months ago
hyper.cpp rulegen3 5 months ago
hyper.h version 12.1e 4 weeks ago
hyper.rc 10.0n 5 years ago
hyper_function.h Add `explicit` and `override` consistently everywhere else. NFCI. 1 year ago
hyperpoint.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 3 weeks ago
hyperrogue-music.txt fixed the new music 2 years ago
hyperweb.cpp made background screen darkening consistent and optional 5 months ago
hypgraph.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 3 weeks ago
inforder.cpp Add `explicit` and `override` consistently everywhere else. NFCI. 1 year ago
intra.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 3 weeks ago
inventory.cpp dialog:: list used in inv 1 month ago
irregular.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 3 weeks ago
items.cpp Grammar fix to Alt-to-highlight message. 2 months ago
kite.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 3 weeks ago
landgen.cpp new system for honeycombs in action 3 months ago
landlock.cpp when setting Elemental Wall as cheat destination, Elemental Wall itself is no longer picked 4 weeks ago
langen.cpp FRENCH: gender flags, fixed a bunch of small stuff 5 months ago
language-cz.cpp Grammar fix to Alt-to-highlight message. 2 months ago
language-de.cpp fixed message about 9 types 1 year ago
language-fr.cpp Grammar fix to Alt-to-highlight message. 2 months ago
language-pl.cpp Grammar fix to Alt-to-highlight message. 2 months ago
language-ptbr.cpp fixed 'Orb of the Love' 12 months ago
language-ru.cpp Grammar fix to Alt-to-highlight message. 2 months ago
language-tr.cpp fixed message about 9 types 1 year ago
language.cpp FRENCH: added "de" / "d'" 5 months ago
legacy.cpp fixed extra semicolon 9 months ago
locations.cpp increased the value of special-move constants to >100 so that the limit on sides is indeed 120 7 months ago
makeh.cpp one more update for older compilers 3 years ago
mapeditor.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 3 weeks ago
mapeffects.cpp An option to play on a disk (and use bounded space rules). Also renamed 'bounded' flag to 'closed' or similar, and improved Halloween 7 months 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 3 weeks 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 5 months ago
models.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 3 weeks ago
monstergen.cpp moved dual geometry puzzle to RogueViz 6 months ago
monstermove.cpp shmup:: fixed Gadflies appearing forever 4 weeks ago
multi.cpp added some missing guards for CAP_RACING and CAP_COMMANDLINE 5 months ago
multigame.cpp prevent stored games from having their cgi destroyed 4 months ago
mymake.cpp Use master's mymake.cpp 3 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 3 weeks ago
nofont.cpp mymake now works with Emscripten 2 years ago
nonisotropic.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 3 weeks ago
orbgen.cpp Orb of Earth no longer marked useless in Wetland 3 months ago
orbs.cpp fixed Orb of Teleport/Illusion thinking that they are unusable 3 months ago
papermodeldata-help.txt papermodeldata files added 4 years ago
papermodeldata.txt papermodeldata files added 4 years ago
passable.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 3 weeks ago
pattern2.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 3 weeks ago
patterns.cpp exporting necessary stuff all over (in progress) 3 years ago
pcmove.cpp fixed 'orb used' flags not being rolled back in some cases 3 months ago
polygons.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 3 weeks ago
quit.cpp extra exports 4 months ago
quotient.cpp new geometry gHalfBring 1 year ago
racing.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 3 weeks ago
radar.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 3 weeks ago
raycaster.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 3 weeks ago
reg3.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 3 weeks ago
renderbuffer.cpp fixed renderbuffer from SDL 7 months ago
rug.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 3 weeks ago
rulegen.cpp tes:: split get_adj into two functions, one with connection specified (inlcuding mirror), and one not 2 months ago
rulegen3.cpp some fixes for older compilers 3 months ago
savemem.cpp savemem:: correct delete functions used 5 months ago
savepng.cpp fixup to mymake/savepng 2 years ago
savepng.h Updated to 8.3j 6 years ago
scores.cpp dialog:: improvements to list dialogs 1 month ago
screenshot.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 3 weeks ago
shaders.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 3 weeks ago
shmup.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 3 weeks ago
shyp-geodesics.dat updated geodesic tables 3 years ago
sky.cpp fixed a crash problem with tes files in 2.5D 3 months ago
solv-geodesics.dat updated geodesic tables 3 years ago
sound.cpp find_file to find files in HYPERPATH 3 months ago
source-doc.md Doxygen files added 3 years ago
sphere.cpp Eliminate -Woverloaded-virtual warnings from Clang. NFCI. 1 year 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 3 weeks ago
sysconfig.h dialog:: find_highlight 4 weeks ago
system.cpp shmup:: count_pauses is now reset to 0, and also not displayed in standard shmup 4 weeks 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 3 weeks ago
tour.cpp slide text improvements 4 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 3 weeks ago
util.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 3 weeks ago
vr.cpp made background screen darkening consistent and optional 5 months ago
wfcgen.cpp made background screen darkening consistent and optional 5 months ago
yendor.cpp tactic:: fixed page buttons 4 weeks 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.