mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-07 04:47:56 +00:00
added header comments for rogueviz games
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
/* Main file of Relative Hell. */
|
/* Main file of Relative Hell. */
|
||||||
/* Compile with mymake -O3 -rv rogueviz/ads/ads-game */
|
/* Compile with mymake -O3 -rv rogueviz/ads/ads-game */
|
||||||
/* Best run with -ads-menu; more detailed options are available too */
|
/* Best run with -ads-menu; more detailed options are available too */
|
||||||
|
/* You can also add -DRELHELL for standalone Relative Hell */
|
||||||
|
|
||||||
#define VER_RH "1.1"
|
#define VER_RH "1.1"
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: specification of the lands in the anti-de Sitter game
|
||||||
|
// Copyright (C) 2024-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: control for the anti-de Sitter game
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: display for the AdS game
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: implemetation of the de Sitter game
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: implementation of the Earth texture for the de Sitter game
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: globals
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: help
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: high score lists
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: map for the anti-de Sitter game
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: implemetation of the underlying math
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
#include "../rogueviz.h"
|
#include "../rogueviz.h"
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: menus
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: resources
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: shapes of various stuff
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Relative Hell: guided tour
|
||||||
|
// Copyright (C) 2025-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
/* underlying/spacetime views, and also replaying */
|
// Relative Hell: underlying/spacetime views, and also replaying
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
// non-Euclidean falling block game, implemented using the HyperRogue engine
|
// non-Euclidean falling block game, implemented using the HyperRogue engine
|
||||||
// Copyright (C) 2011-2021 Zeno Rogue, see 'hyper.cpp' for details
|
// Copyright (C) 2011-2021 Zeno Rogue, see '../hyper.cpp' for details
|
||||||
|
|
||||||
|
// compile with: ./mymake -O3 rogueviz/bringris.cpp rogueviz/subquotient.cpp and then launch with -bringris
|
||||||
|
// add -DBRINGRIS for standalone Bringris
|
||||||
|
|
||||||
#define BRINGRIS_VER "2.0"
|
#define BRINGRIS_VER "2.0"
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Nil Rider level data
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace nilrider {
|
namespace nilrider {
|
||||||
|
|
||||||
const int steps_per_block = 16;
|
const int steps_per_block = 16;
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Nil Rider levels
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace nilrider {
|
namespace nilrider {
|
||||||
|
|
||||||
bool all(checkerparam c) { return c.t->collected_triangles == Flag(isize(c.l->triangles))-1; }
|
bool all(checkerparam c) { return c.t->collected_triangles == Flag(isize(c.l->triangles))-1; }
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
// Nil Rider
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
|
// compile with: ./mymake -O3 rogueviz/nilrider/nilrider.cpp and then launch with -nilrider
|
||||||
|
// add -DNILRIDER for standalone Nil Rider
|
||||||
|
|
||||||
#if NILRIDER
|
#if NILRIDER
|
||||||
#define CUSTOM_CAPTION "Nil Rider 2.0"
|
#define CUSTOM_CAPTION "Nil Rider 2.0"
|
||||||
#define MAXMDIM 4
|
#define MAXMDIM 4
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Nil Rider: planning mode
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace nilrider {
|
namespace nilrider {
|
||||||
|
|
||||||
hyperpoint get_spline(ld t);
|
hyperpoint get_spline(ld t);
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Nil Rider: saves
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace nilrider {
|
namespace nilrider {
|
||||||
|
|
||||||
const string ver = "2.0";
|
const string ver = "2.0";
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Nil Rider Solver
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace nilrider {
|
namespace nilrider {
|
||||||
|
|
||||||
bool nospeed = false;
|
bool nospeed = false;
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Nil Rider statues
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace hr {
|
namespace hr {
|
||||||
namespace bricks {
|
namespace bricks {
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// Nil Rider simulation
|
||||||
|
// Copyright (C) 2022-2025 Zeno Rogue, see '../../hyper.cpp' for details
|
||||||
|
|
||||||
namespace nilrider {
|
namespace nilrider {
|
||||||
|
|
||||||
using hr::lerp;
|
using hr::lerp;
|
||||||
|
@@ -2,6 +2,8 @@
|
|||||||
// Copyright (C) 2025 Zeno Rogue, see 'hyper.cpp' for details
|
// Copyright (C) 2025 Zeno Rogue, see 'hyper.cpp' for details
|
||||||
// the Seuphorica repo (seuphorica.cpp and dictionary files) needs to be placed in the 'seuphorica' subdirectory
|
// the Seuphorica repo (seuphorica.cpp and dictionary files) needs to be placed in the 'seuphorica' subdirectory
|
||||||
|
|
||||||
|
// compile with: ./mymake -O3 rogueviz/seuphorica.cpp and then launch with -seuphorica
|
||||||
|
|
||||||
#include "rogueviz.h"
|
#include "rogueviz.h"
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user