Rog is a Unity framework that allows you to create your very own roguelikes by giving you all the low-level tools you need to get started quickly and easily.
Features:
Customizable procedural cave and dungeon map generators.
Built-in support for systems/concepts that you might expect to find in rogue-likes, such as items, actions, statistics, a turn-based system, a level-up system, field-of-view, and more.
A very efficient 2D A* path-finding system.
Built-in support for customizable Item loot-tables.
Built-in support for combat events that allows you to know when certain things occurred. Such as when someone has died, when someone has dealt damage to another, etc.
A one-function AI system which is automatically bound to the turn-based system. This means that actors perform their actions at the correct time, and you will not need to ever concern yourself with who goes when.
The entire framework is well documented and easy to modify in order to suit your needs.
I am very open to suggestions and constructive criticism, so please let me know if you think of really cool things that you’d like the framework to include!
I’ve just bought Rog and am trying it out. It looks pretty great, but I ran into a snag right away, when I discovered that I couldn’t move with the arrow keys… even though the Input settings were correctly set up.
I type in Dvorak; WASD is not a sensible input scheme for me. And what if I want to play with a gamepad?
I can certainly hack AI_Player.cs to use Input.GetAxis etc., but then the next time I update the asset, I’ll have to remember to do it again. It would be great if you were using these right out of the box.
Hoo boy, I can tell I’m going to have a lot of questions in the next few days. Sorry to be a pest — I have read through all the docs I can find, but still haven’t found a “Here’s How You Use Rog” overview type document (only the class reference, FAQ, and the “more information” page).
So, I tried tinting some of my actors (monsters) by setting the Sprite Color to something other than white. When I just drag one of these into the scene while running, it is correctly tinted, but does not move. Whereas the clone of the same prefab that was created for my by something in the Rog system, it moves, but is untinted (its color is set to white).
Is there something in there specifically fiddling with sprite color, perhaps for status effects?
And what must be done to create a “live” actor, if simply instantiating an actor prefab doesn’t do it?
It appears that when you use the map editor, actors get cloned and saved with all their properties to the map. So then if you go and tweak the prefab a bit, no joy — all the instances of that monster which are already on the map are stuck with the old scripts and properties.
This seems like a pretty thorny problem for development. We’re going to want to place some monsters down, but then over the course of play-testing, tweak their attributes or behavior. Is there any way to update the existing maps with the new prefab values?
So actors are instantiated through Framework.CreateActor(name) function, this function makes sure that the actor that gets created is registered correctly to all things that need it (the map, the turn based system etc). Dragging an actor prefab to the scene is not the way ROG is intended to be used, since that won’t register it anywhere.
That is correct, I was actually thinking about this issue here.
If you open Framework.cs, on line 450 you will see the function called LoadMap(Object uninstantiatedMapPrefab). This function takes in the prefab of the map created through the map editor, instantiates it, and registers all the actors and tiles on it through a call to ‘RegisterMapObjects’.
RegisterMapObject is pretty straight forward, but the change that I would make would be to, instead of simply getting the children (actors, tiles, etc) and immediately registering them to the map, get the children and create them with the appropriate Framework call, for instance:
in line 787, instead of going ‘RegisterActor(actor)’, i would go 'Framework.CreateActor(actor.name, actor.transform.position)
Basically, instead of taking the already created prefabs of the actors and tiles, just make sure to instantiate those things by getting their names, that way, you can change the prefabs of the actors any way you want through development without utilizing the old prefabs themselves.
I hope I made it clear, but please do let me know if you come across any issues with this.
Cheers!!!
EDIT: I should say that this is something that should be supported in ROG straight out of the box, so i’ll make sure to include this functionality in an update as well.
Any updates on the above? The change you’ve suggested above doesn’t work easily within the framework, as you end up with dupes of everything b/c you’ve already instantiated the map with the objects on it.
Okay so I just updated to the latest Rog… 1.4, where all the levels are now saved out into serialized text files. After I finished the merge of my code changes, I realized that all my levels, about 30 of them, wont load now because they are prefabs and not txt files! How can I get my levels to work? You don/t have a way or tool for people to convert their levels over?
Just dropping a note that the Dialogue System for Unity now comes with an integration package for Rog that lets you add character barks, interactive conversations, and quests.
As a Longtime gamer who has finally decided it’s time to make the game I want to play in the world. Rog is highly regarded in my searches. however my experience in game development is limited to “events” like Warcraft map editing. I have only just begone my project and have no doubt after researching this product it will indeed be the foundational building blocks of my design. I’m not asking for a tutorial per say but some Rog relative Learning sources for beginners would be highly regarded. Reviews heavily implicate its ease of use (if its not your first rodeo). I don’t assume I’m the only person in this boat. Due to my strong personal convictions I’m already dedicated and Purchasing rog cements my path forward. otherwise the reviews addressing this would have sent me towards other waters. would I be better off taking a intro to python course before returning to development? i would gladly support a Patreon that covered this generally if not specifically.
I certainly wouldn’t suggest an intro to python course. Python is nothing like C#, and while to some extent coding is coding, if you want to fast-track your Unity development you should probably just focus on C#.
I understand that the maps in Rog are 2D. But can I put 3D models on them, so that my represenation (and ONLY the representation) of the map/game is in 3D, while all the underlying logic remains 2D ?
Hey, I don’t see why you couldn’t, ROG only requires an ‘actor’ prefab to have a spriteRenderer (which can just be empty), there’s no reason why you couldn’t add a gameobject in the prefab’s hierarchy which stores the 3D model and such. But doing this will mean that obviously things like hiding enemy actors that you have no field of view to will need to be taken care of by you. (ROG will just change the color of a hidden actor to be transparent, you’ll need to do something else instead), but that’s code that’s very easy to swap.