1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-27 01:14:52 +00:00
A SDL roguelike in a non-euclidean world.
Go to file
2023-03-25 00:35:44 +01:00
.github/workflows
contrib
devmods devmods:: included a tool to generate the hat rules 2023-03-24 17:02:01 +01:00
dll
generators
honeycombs
hyperroid
music
rogueviz removed name nullptr too 2023-03-16 23:18:16 +01:00
sounds
tessellations
.gitignore
.travis.yml
3d-models.cpp more detailed 3D pipes 2023-03-16 14:47:23 +01:00
achievement.cpp
aperiodic-hat.cpp hat:: keep orientation while changing parameter 2023-03-25 00:35:44 +01:00
arbitrile.cpp rewritten the embeddings more nicely 2023-01-27 00:27:10 +01:00
archimedean.cpp
asonov.cpp
attack.cpp
barriers.cpp
basegraph.cpp embedding:: a simple general implementation of radar 2023-01-29 16:09:00 +01:00
bigstuff.cpp hat:: disable horo and use clueless just in case 2023-03-24 23:19:53 +01:00
binary-tiling.cpp fixup to coordinates 2023-01-29 14:17:03 +01:00
blizzard.cpp
cell.cpp hat:: disable horo and use clueless just in case 2023-03-24 23:19:53 +01:00
celldrawer.cpp aperiodic is now distinct from kite::in 2023-03-23 01:37:52 +01:00
changelog.txt version 12.1k 2023-03-23 09:38:22 +01:00
checkmove.cpp
CITATION.cff
classes.cpp aperiodic hat tiling 2023-03-23 01:37:52 +01:00
colors.cpp
commandline.cpp CLI option -grotatei 2023-03-16 14:43:14 +01:00
complex2.cpp fixed a bug generating Dice in some tessellations 2023-02-04 20:03:32 +01:00
complex.cpp aperiodic hat tiling 2023-03-23 01:37:52 +01:00
config.cpp minor fixes to hat parameter 2023-03-24 23:55:24 +01:00
content.cpp
control.cpp fixed a bug causing spinning in VR 2023-02-21 18:53:42 +01:00
COPYING
crystal.cpp
debug.cpp fixed naming conflict -W3 to -W4 2023-03-24 23:20:31 +01:00
DejaVuSans-Bold.ttf
dialogs.cpp fixed a crash when no last 2023-01-04 23:24:52 +01:00
direntx.h
Doxyfile
drawing.cpp conformal square improved on sphere 2023-03-23 01:37:52 +01:00
earcut.hpp
embeddings.cpp embeddings:: NFC, just using more lines 2023-02-21 18:55:07 +01:00
embuild.sh
environment.cpp fixed Princess using boat 2023-01-08 15:59:28 +01:00
euclid.cpp fixed euc::in 2023-02-04 19:42:20 +01:00
expansion.cpp aperiodic is now distinct from kite::in 2023-03-23 01:37:52 +01:00
fake-mobile.cpp
fake.cpp fake geometry for hat 2023-03-24 23:16:03 +01:00
fieldpattern.cpp
flags.cpp
floorshapes.cpp arb-borders are now also used for aperiodic tilings 2023-03-23 01:37:52 +01:00
FUNDING.yml
game.cpp
geom-exp.cpp hat:: hat parameter 2023-03-24 23:53:13 +01:00
geometry2.cpp aperiodic is now distinct from kite::in 2023-03-23 01:37:52 +01:00
geometry.cpp hat:: hat parameter 2023-03-24 23:53:13 +01:00
glhr.cpp improved glhr debugging 2023-03-16 14:46:05 +01:00
goldberg.cpp goldberg:: embeddings:: fixes 2023-02-05 21:58:38 +01:00
graph.cpp min_scale now changed to 1e-6 2023-03-23 09:29:46 +01:00
help.cpp added jennlbw to the credits 2023-03-16 14:46:14 +01:00
heptagon.cpp fixed an error computing distances in bitruncated {5,4} causing crashes 2023-02-21 18:47:43 +01:00
history.cpp
hprint.cpp kz added for shiftmatrix and shiftpoint 2023-01-06 00:24:58 +01:00
hr-icon.ico
hud.cpp fixed context help getting stuck in corner stats mode 2023-01-08 15:59:28 +01:00
hyper_function.h
hyper-main.cpp
hyper.cpp aperiodic hat tiling 2023-03-23 01:37:52 +01:00
hyper.h version 12.1k 2023-03-23 09:38:22 +01:00
hyper.rc
hyperpoint.cpp phi cannot be constexpr on some compilers 2023-02-05 11:38:14 +01:00
hyperrogue-music.txt
hyperweb.cpp
hypgraph.cpp new Conformal Square projection (with transition and shader and Euclidean form) 2023-03-19 12:21:05 +01:00
inforder.cpp
intra.cpp added some missing CAP_ guards 2023-02-18 12:53:52 +01:00
inventory.cpp
irregular.cpp rewritten the embeddings more nicely 2023-01-27 00:27:10 +01:00
items.cpp
kite.cpp rewritten the embeddings more nicely 2023-01-27 00:27:10 +01:00
landgen.cpp patched chaos now uses cheatdest_list 2023-03-24 23:17:43 +01:00
landlock.cpp CLI -land-info to list validity for every land 2023-03-24 23:18:30 +01:00
langen.cpp
language-cz.cpp
language-de.cpp
language-fr.cpp
language-pl.cpp
language-ptbr.cpp
language-ru.cpp
language-tr.cpp
language.cpp
legacy.cpp
locations.cpp
Makefile embeddings:: fixed Makefile 2023-02-04 09:24:06 +01:00
Makefile.rv
makeh.cpp
mapeditor.cpp texture pattern no longer affects map editor pattern 2023-02-05 22:00:29 +01:00
mapeffects.cpp
menus.cpp
mingw.condition_variable.h
mingw.invoke.h
mingw.mutex.h
mingw.shared_mutex.h
mingw.thread.h
mobile.cpp
models.cpp fixed a bug in mdBandAny 2023-03-19 12:21:15 +01:00
monstergen.cpp
monstermove.cpp
multi.cpp
multigame.cpp
mymake.cpp
netgen.cpp
nofont.cpp
nonisotropic.cpp aperiodic is now distinct from kite::in 2023-03-23 01:37:52 +01:00
orbgen.cpp
orbs.cpp
papermodeldata-help.txt
papermodeldata.txt
passable.cpp fixed Princess using boat 2023-01-08 15:59:28 +01:00
pattern2.cpp hat:: better pseudohept 2023-03-24 23:19:32 +01:00
patterns.cpp
pcmove.cpp
polygons.cpp chasmifyPoly now uses logical coordinates 2023-01-29 17:03:25 +01:00
quit.cpp
quotient.cpp
racing.cpp
radar.cpp embeddings:: fixed product embedding 2023-02-04 12:29:55 +01:00
raycaster.cpp aperiodic is now distinct from kite::in 2023-03-23 01:37:52 +01:00
README.md
reg3.cpp reverted final_coords for now 2023-02-04 23:01:41 +01:00
renderbuffer.cpp
rug.cpp auto-configure Clifford Torus embedding 2023-01-05 16:12:23 +01:00
rulegen3.cpp
rulegen.cpp aperiodic is now distinct from kite::in 2023-03-23 01:37:52 +01:00
savemem.cpp
savepng.cpp
savepng.h
scores.cpp
screenshot.cpp svg:: make smaller SVG files by not including things out of the region 2023-03-16 14:47:04 +01:00
shaders.cpp new Conformal Square projection (with transition and shader and Euclidean form) 2023-03-19 12:21:05 +01:00
shmup.cpp racing:: fixed death in racing mode 2023-02-18 12:54:16 +01:00
shyp-geodesics.dat
sky.cpp embeddings:: star probability configurable 2023-02-18 19:33:27 +01:00
solv-geodesics.dat
sound.cpp
source-doc.md
sphere.cpp on_dim_change clears where on sphere 2023-02-05 21:59:45 +01:00
ssol-geodesics.dat
surface.cpp
sysconfig.h
system.cpp aperiodic is now distinct from kite::in 2023-03-23 01:37:52 +01:00
textures.cpp
tour.cpp
usershapes.cpp
util.cpp fixed crash in edgelen 2023-03-16 14:42:10 +01:00
vr.cpp vr:: fixed apply_movement to be geodesic-based not embedded-based in H2.5; also added new eHeadset holonomy_z 2023-02-21 18:50:36 +01:00
wfcgen.cpp
yendor.cpp

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.