Making an INFINITE Basement for my Office roguelike

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi my name is Dynam and I'm making an office themed Rogue like Called Death in but this isn't actually what the game currently looks like this is that's because 4 months ago I decided to completely start from scratch going from a semi functioning game to literally a single room so in my journey of getting back to a somewhat functional game today we're going to be creating the first floor of our office fittingly called the basement in this stt we'll go with the art and the choices I made to make the floor look the way it does the under Ling code that turns individual rooms into procedurally generated floors and the room Builder I may to heavily reduce the time it takes to make new rooms and we're actually going to be starting with that last one because previously every single room in the game was drawn by hand literally pixel by pixel this was a tedious process that would often take hours just to end up with a rather Bland room so to speed of the process we're going to be slicing the rooms up into tiles this way we can use unity's built-in tile system to create any room of any size we want without having to draw them manually however just making a tile map imported into unity and drawing a room by hand is still incredibly tedious so instead we're going to be using something called Rule tiles these are tiles that change their appearance based on their surroundings the only thing I have to do is to find a bunch of rules for when tiles should change their appearance and draw the shape of the room I want Unity handles the rest and although all of this and I'm not kidding took me 3 days to figure out we're not done yet because this isn't a room it's a box rooms have doors or openings or some kind of way to get in so we need the ability to add doors to our rooms I'd already made a bunch of door designs for the old game including animations but I didn't feel like they fit the current game anymore so I spent about a day making these three door designs for the three different angles that the door reviewed in then imported those into Unity dragged them into the scene and realize that placing the in the exact right position by hand probably wasn't a good idea so I had to write a piece of code that automatically snaps each door to the same grid that we draw the rooms on however figuring out how to do this took me yet another day to figure out anyone said you I'm a good game developer is straight up lying but to my credits we can now actually make rooms they're just completely empty and the only way to make them not be empty is by adding a bunch of objects to our game so I decided to make one last room by hand filled with a bunch of different objects that I will then be able to place separately in any room I want now I'm not going to go over every single object I've made in this video but I will point out a few interesting or challenging ones like the printer an object that has been in the game for a while there have been two previous designs that I've used but both of them were quite modern and squeaky clean and a basement just isn't the kind of place you'd find newly acquired technology so instead I started looking at some pictures of old printers and noticed a lot of them were beige so I tried making a beige printer it did not look good at all someone in my Discord server even pointed out it looks a lot like a sand crawler from Star Wars and they're not wrong it it really does and after trying yet another design also beige I decided that it just wasn't the right color so I made a bright purple design not because I was ever going to use purple but to get an idea of what I wanted it to look like you know separate from color and after giving it the right colors I I'm actually extremely happy with how it looks it looks dirty and dated but not completely ancient just a machine that got replaced with a better one upstairs and so they send the old one down but that's just one out of a dozen objects I need to make so let's go a little quicker shall we I made two tables that's signed on either side of the printer one with paper and another one with files and boxes and if you're wondering where those boxes came from well there's a bunch on the floor right here one of them is even open to reveal the files inside but boxes aren't just on the floor they're also inside a bunch of cabinets standing against the wall each F to the brim with boxes binders files and papers there's also a hole in the floor for no particular reason but at least now we can start importing some of these into unity and after we've done that and drag them into the scene we can actually attach the same placement script we use for the doors to get them in the exact right position and now we can place our object anywhere we want in any room we want using this we can make the room that took me 25 hours to create outside of unity and make it inside of the game in a matter of minutes and it looks pretty good except for the cabinets because all of them are identical right now since there's only one cabinet object in the game now I could randomize the entire Sprite using different cabinet designs that we made but that would only give us three options which isn't going to be nearly enough for such a common object most rooms are going to have more than one cabinet so instead I separated the cabinets into individual shelves each shelf will then be randomized to create a new cabinet now every time we decide to drag a cabinet into the scene it'll have completely different contents but although the cabinets look good the walls behind them are still incredibly boring so I spend a couple of hours making some wall tiles that we can use to Spruce them up a little bit you know make them feel old and worn then in the game I can simply drag those onto the wall to make them look a lot more interesting the only issue now is that due to all the objects we just placed the left hand side of our screen is a complete mess so I created a simple script that goes through all the objects in the scene and places them in their correct category now they're all both attached to the room objects and organized by type which is just absolutely perfect okay so at this point I thought I had enough to start making some actual rooms I was dreadfully wrong turns out I did not make nearly enough different objects and I didn't make anything for the bottom wall of rooms so it just looks really Bland the first object I made to fix this was a backwards cabinet of which you can only see the top shelf it's not the best thing ever but it's something also made a fallen over cabinet because in a place like this that would probably be a common occurrence but I really struggle to come up with any more things to put on the bottom wall since you can only really see things that are either really tall or far enough away from the wall to be visible and if you're now expecting me to tell you that I did come up with a bunch more things to put there you're wrong I didn't because I genuinely couldn't come up with anything so if you've got any suggestions please let me know I am all is however one thing I did do to make it all look a bit less Bland was to add some slight bit of detail to the floor you know tiny puddles marks and just dirtiness in general although I still feel like the floor is just way too empty these slight imperfections do help a lot in comparison this is what it looked like before painfully flat and now it actually looks kind of interesting for now though we've got more rooms to make and some new objects to introduce like the file cabinet this is an object we've had in the game for a while now and I've always really liked the way it looks and even though I did make some slight modifications like making it a bit smaller and adding some more detail the overall design has stayed the same however this time instead of manually opening some of the drawers I let the game randomly decide which ones to open and which ones to close just to add some variety like we did with the cabinets next up we have the desk which is also an object that has been in the game for a long time it was actually one of the very first things I ever Drew for this game if you don't go the old version of the game where the player is a robot for some reason but needless to say it's gone through a lot of redesigns from big and bulky to small and rounded however I got to say I never really liked any of those designs they were always either too detailed or not detailed enough but this time I think I nailed it I absolutely love the way it looks especially the computer previously we had a boring black brick but now we've got a data de beige computer complete with wires and everything I also made a version of the desk that faces the other way which although not as good still looks amazing anyways with these two new objects added I was able to create yet another room this one has a bit of a different feel to it due to having less cabinets in it but I actually really like it it's the kind of workplace I would imagine being in a literal basement you know dated dark and grimy okay so at this point I decided to just start making a bunch of different rooms you know one with two doors another one with just a single door a really big one with four doors and so on in the end I made 13 different rooms which took me just under 2 hours and although that sounds like a lot of time it's actually really fast considering that previously it would take me about 30 minutes to make a single room and 13 of them would have taken me well over 6 hours so I'd say that the time making a room Builder has more than paid off okay so at this point we've reached a part of the video where I need to talk about something very boring with little to no interesting footage to show you because it's time to start talking about procedural generation luckily I've already made two videos on the topic and I feel like I've covered it fairly well so we're just going to keep it short basically the way we generate flaws is by dividing the game up into cells each cell has the possibility of having a room in it if you place a room in a Cell it affects all the cells around it so if a room has door on its left then the cell next to it has to have a room with a door on the right and we just keep doing this until we've got a filled-in map now luckily I already programmed all of this 9 months ago which means we can just take that is a good code no absolutely not it's terrible but it also took me about 2 weeks to write and I'm not smart enough to figure out how to write it better so I'll just run it and fix any problems that come up wait what now obviously this is recorded afterwards I'm not actually surprised but it work worked first time for context this is a 500 line mess of code that was written in a completely different project there is no world where this should have worked I ran it purely to fix the errors that would inevitably pop up in unity things like missing scripts but no it just worked if you're not a game developer or a programmer this might seem normal but trust me it isn't I have written scripts that have just five lines of code and I still get errand it this is just I I am at loss I'm at a loss for words literally I have written a script and I still don't know this is me improvising I I genuinely this is weird so so weird now obviously not everything worked for example the doors were still useless so we can actually move from room to room but all the rooms were there they were in their right position we just couldn't move between them but about an hour later after writing the missing Scripts we actually got our guy walking between rooms guys sorry I feel like you're missing the thing here it worked for this 500 line mess worked first time I'm going completely off script but I just need to say that oh my God but anyway it's working now technically he's still walking through closed doors because we only have the closed door sprice but still it looks really good also just love how it all looks all the object the little details the general Vibe the only real thing missing are enemies so my next goal is to add those which I'm going to be doing in the next dead log however I am still in desperate need of ideas for those enemies so if you've got any suggestions leave a comment join the Discord or if you get the chance I also stream on Twitch I'm probably going to be designing some of these enemies live so come say hi if you get the chance thank you so much to all these tier 2 channel members for their support and thank you so much for watching I'll see you in the next video bye
Info
Channel: Deynum Studio
Views: 133,579
Rating: undefined out of 5
Keywords: Deynum, Devlog, Devlogs, Game developer, Indie Game developer, Indie Game Dev, Indie Game, Game development, Indie Game Development, Indie, Unity, Unity game devlog, unity devlog, First Devlog, Devlog #1, Indie Devlog #1, unity2d, unity3d, Dev log, devlog unity, game design, game designer, Deynum Studio, 2d Game, game, deynum studio, game devlog, pixel art, Procedural Generation, Roguelike, Roguelite
Id: DucFr8Uv4Vk
Channel Id: undefined
Length: 12min 1sec (721 seconds)
Published: Sun Jan 21 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.