5/7/2023 0 Comments Tinykeep wiki![]() ![]() Since it’s mostly 4×4 matrix operations I just used Unit圓D’s Matrix4x4 type to do the heavy lifting. I still don’t really understand why circumcircles are so important, but I was at least able to write it using circumspheres instead, using this page from Wolfram MathWorld. ![]() In the end, I had to learn how the Bowyer-Watson algorithm actually worked so I could change it myself. The other was that the code was so heavily templated and inscrutable, that I didn’t actually find where they implemented the algorithm. One was that this module was only available under the GPL ?. The closest was CGAL’s implementation of 3D triangulation, but there were two problems with it. Searching for either ” 3D Delaunay triangulation” or ” Delaunay tetrahedralization” returned a lot of research papers but no actual source code that I could find. Next, find the 3D Delaunay triangulation of the rooms, or rather the Delaunay tetrahedralization. Note that rooms can be multiple floors tall.Ģ. I’ve also added a 1 unit wide buffer on each side (to ensure that rooms aren’t touching), but this is not required for the algorithm to work. It doesn’t matter that much how they are arranged, so for this example, I’ve just placed and sized them randomly. Place rooms arbitrarily such that they don’t overlap with each other. In a full game, 1 unit may correspond to 5 meters, for example. I assume that 1 unit is wide enough to represent a hallway. The world is divided into a rectangular grid. The code for this is in the Scripts2D folder. It works mostly the same as the TinyKeep algorithm, but has been simplified in some ways (especially room generation) and is more complex in others. Two Dimensionsįirst, I had to write the algorithm to work in two dimensions. I’m using Unit圓D for this demonstration, but these concepts are, of course, usable in any game engine. The code for this example is available in this Github repo. I extended the algorithm to work in 3D, to create dungeons with multiple floors. There are a lot of different ways to approach this problem, but I eventually decided to base mine off of TinyKeep’s algorithm, described here. ![]() Hours of gameplay with Secrets that extend the experience – Discover items and weapons that can slow down time, render you invincible or provide secret saves.I’ve been playing some roguelikes recently, so I wanted to try writing my own procedural dungeon generator.Experience 3 separate endings to the game, depending on how you play.Rescue other captives to fight along side you, but beware as you never know which ones have gone crazy trapped up in the Keep.Collect coins from fallen foes to purchase random player-altering Buffs that just might give you the advantage you need to make it out alive.Use traps and environmental hazards to your advantage - fire, spike pits and rotating crushers hurt your enemies as well as you!.Creatures work together to chase you down, flee from threats and fight each other for dominance. Battle a variety of intelligent enemies, each one determined to make your escape as difficult as possible.From the cold slimy walls of the dungeon to the hot fiery pits of hell, TinyKeep is a visual treat. Explore a variety of beautiful but deadly environments.Watch your step as it can be your last! Extremely challenging Permadeath gameplay.Procedurally generated random dungeons – no playthrough is ever the same!.There are many ways to survive in TinyKeep. You can also take advantage of monster rivalries and lead them against each other, while you wait behind a corner as the resulting chaos ensues. Enemies will work together in groups to hunt you down, and some will flee from threats. Lure monsters into traps, knock over fire torches to set the dungeon alight and set prisoners free to help you on your way. With nothing but a flickering lantern and a strange letter left behind by their in-mate, they must venture into the darkness and escape TinyKeep! Their savior is nowhere to be seen, but the cell door is broken and ajar, tempting them with the sweet scent of freedom. In TinyKeep players will embrace the role of a hopeless prisoner held deep in a forgotten dungeon who one day wakes up to find themselves mysteriously released. ![]()
0 Comments
Leave a Reply. |