Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AsPJT/Roguelike
🦇: Roguelike
https://github.com/AsPJT/Roguelike
dtl dungeon dungeon-generator game-2d map-generation procedural procedural-generation procedural-terrain rogue-like roguelike roguelike-dungeons roguelike-engine roguelike-game roguelike-library roguelike-rpg-game roguelikedev rpg rpg-game tilemap ue5
Last synced: 2 months ago
JSON representation
🦇: Roguelike
- Host: GitHub
- URL: https://github.com/AsPJT/Roguelike
- Owner: AsPJT
- License: bsl-1.0
- Created: 2018-12-09T12:40:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-10T14:01:59.000Z (12 months ago)
- Last Synced: 2024-11-09T22:39:29.743Z (3 months ago)
- Topics: dtl, dungeon, dungeon-generator, game-2d, map-generation, procedural, procedural-generation, procedural-terrain, rogue-like, roguelike, roguelike-dungeons, roguelike-engine, roguelike-game, roguelike-library, roguelike-rpg-game, roguelikedev, rpg, rpg-game, tilemap, ue5
- Language: C++
- Homepage:
- Size: 715 KB
- Stars: 95
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE_1_0.txt
Awesome Lists containing this project
- AwesomeCppGameDev - DTL_RogueLike
README
# [Roguelike (Dungeon Template Library) ](https://github.com/AsPJT/DungeonTemplateLibrary) [![BSL-1.0](https://img.shields.io/badge/license-BSL--1.0-blue.svg)](https://github.com/AsPJT/DungeonTemplateLibrary/blob/master/LICENSE_1_0.txt)
---
# Supported Compilers 🔧
|Compiler|Run|
|:---|:---|
|MSVC|None|
|GCC|[Wandbox](https://wandbox.org/permlink/mh9FPcIeSE4UyPkL)|
|Clang|[Wandbox](https://wandbox.org/permlink/rH99RSoLGXrDu8CU)|---
# Generated Image 🖼️
![rl1](https://AsPJT.github.io/DungeonPicture/Picture/Dungeon/nrl256.gif)
![rl2](https://AsPJT.github.io/DungeonPicture/Picture/Dungeon/nrl_player256.gif)---
# Example
```cpp
#include "RogueLike.hpp"
#include
#includeint main() {
using shape_t = int;
std::array, 24> matrix{ {} };dtl::shape::RogueLike(0, 1, 2, 3, 4, 20,
dtl::base::MatrixRange(3, 3, 2, 2),
dtl::base::MatrixRange(3, 3, 4, 4)).draw(matrix);for (const auto& i : matrix) {
for (const auto& j : i)
std::cout << j << ',';
std::cout << '\n';
}for (const auto& i : matrix) {
for (const auto& j : i)
switch (j) {
case 0:std::cout << "%%"; break;
case 1:std::cout << "##"; break;
case 2:std::cout << " "; break;
case 3:std::cout << "++"; break;
case 4:std::cout << "--"; break;
}
std::cout << '\n';
}return 0;
}
``````
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,1,1,1,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,2,2,2,1,0,0,1,4,1,1,1,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,2,2,2,1,0,0,1,4,4,4,1,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,2,2,2,1,0,0,1,4,1,4,1,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,3,1,1,0,0,1,4,1,4,1,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,1,4,4,4,4,4,1,0,0,0,1,4,1,1,1,0,0,0,0,0,0,
0,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,0,0,0,1,3,1,1,1,1,0,0,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%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%############%%%%######%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%## ##%%%%##--######%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%## ##%%%%##------##%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%## ##%%%%##--##--##%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%##########++####%%%%##--##--##%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%##----------##%%%%%%##--######%%%%%%%%%%%%
%%######################++##########%%%%%%##++########%%%%%%%%%%
%%##------------++ ##%%%%%%%%%%%%%%## ##%%%%%%%%%%
########--######## ############%%%%## ##%%%%%%%%%%
##--------##%%%%## #### ######## ##%%%%%%%%%%
######--####%%%%######++###### ++--########++####%%%%%%%%%%
%%%%##--##%%%%%%##----------++ ##------------##%%%%%%%%%%%%
%%%%##--##%%%%%%############## ##--########--######%%%%%%%%
%%%%##--##%%%%%%%%############++######--##%%%%##------##%%%%%%%%
%%%%##--##%%%%%%%%##------------##%%##--############++####%%%%%%
%%%%##--##%%%%%%%%############--##%%######------++ ##%%%%%%
%%%%######%%%%%%%%%%%%##--------##%%%%%%######--## ##%%%%%%
%%%%%%%%%%%%%%%%%%%%%%######--########%%##------## ##%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%##--------##%%########## ##%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%############%%%%%%%%%%##########%%%%%%
```---
# [License 💳](https://github.com/AsPJT/DungeonTemplateLibrary/blob/master/LICENSE_1_0.txt)
[>> View License 💳](https://github.com/AsPJT/DungeonTemplateLibrary/blob/master/LICENSE_1_0.txt)
Copyright (c) 2018-2022 As Project.
Distributed under the Boost Software License, Version 1.0.(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
---
# Related Items 🎮
[![PAX_SAPIENTICA](https://raw.githubusercontent.com/AsPJT/PAX_SAPIENTICA/develop/Images/Logo/TitleBanner4.svg)](https://github.com/AsPJT/PAX_SAPIENTICA)
[![DTL](https://raw.githubusercontent.com/AsPJT/AsPJT/master/Picture/dungeon_template_library.png)](https://github.com/AsPJT/DungeonTemplateLibrary)
[![GenkaiSyuraku](https://raw.githubusercontent.com/AsPJT/AsPJT/master/Picture/genkai_syuraku.png)](https://github.com/AsPJT/GenkaiSyuraku)
[![AsLib](https://raw.githubusercontent.com/AsPJT/AsPJT/master/Picture/aslib.png)](https://github.com/AsPJT/AsLib)