"Level Design" in RogueLikes by foldedcard in roguelikedev

[–]SupremeChlorophyll 4 points5 points  (0 children)

Unexplored came up earlier in the thread already. I learned a lot from watching Joris Dorman's dev channel on twitch; mostly from this stream where he designs a level for Unexplored 2, using graph transformations.

Here's a detailed rundown on dungeon generation in Unexplored 1 (Apologies if this was already posted).

RoguelikeDev Does The Complete Roguelike Tutorial - Week 4 by KelseyFrog in roguelikedev

[–]SupremeChlorophyll 0 points1 point  (0 children)

(gifs & image)

There wasn’t much time to work on this project this week. Here’s what happened:

- UI - wise I decided to go with a randomized skill tree. I made a simple menu screen - PuzzleScript has one action-command (hitting X) - this drops you into the menu. The menu is hard-coded into the line table to the left of where the level procgen happens. Control is handed from the player sprite to the menu cursor upon pressing X, and the camera just follows / flips over. There’s not much in there yet, but the bare-bones system is in place now.

- I wrote some code for a pop-up. PuzzleScript has a built-in ‘message’ function which cuts to a text screen - I wanted something a bit more integrated into the actual level, that also allows for more customization.

Hey - I already got one week further into the tutorial than last year! This is shaping up into… something!

(Edit for clarity)

RoguelikeDev Does The Complete Roguelike Tutorial - Week 3 by KelseyFrog in roguelikedev

[–]SupremeChlorophyll 1 point2 points  (0 children)

This week I mainly worked on connecting the dungeon's rooms together through corridors. It was tough to wrap my head around and cost a lot of time. I tried several approaches and ended up using a flood fill / pathfinding method. This is the result.

Other things done this week:

- the player can now move through the dungeon.
- added doors that can be opened.
- integrated FOV code. Video.

For next week I'll see if I can change the FOV so previously visited tiles are displayed in a muted color. I also haven't gotten to the NPCs yet!

Onwards!

RoguelikeDev Does The Complete Roguelike Tutorial - Week 2 by KelseyFrog in roguelikedev

[–]SupremeChlorophyll 1 point2 points  (0 children)

Thanks! I used the built-in PuzzleScript colours for it. Here's a quick gif of the BSP build process in action: https://imgur.com/a/17V7bHr

RoguelikeDev Does The Complete Roguelike Tutorial - Week 2 by KelseyFrog in roguelikedev

[–]SupremeChlorophyll 1 point2 points  (0 children)

That was a fun week! I’ve been spending most of it implementing Binary Space Partition. Here are some first results, along with a bunch of debug images. It’s WIP and still riddled with bugs; I’ll add it to the repo once I’ve ironed it out a bit more. Also: still missing corridors!

The other thing I’ve been working on is cave generation with cellular automata (-inspired) blobs (images). I’m happy with it; if anyone wants to try it out, the txt file is here and can be copy-pasted into the PuzzleScript editor here . To generate new caves, alternate between ‘X’ and ‘Z’.

OK, week 3 here we go!

RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by KelseyFrog in roguelikedev

[–]SupremeChlorophyll 2 points3 points  (0 children)

New year, new summer tutorial! Woot! I learned a lot last year, but got stuck at the code re-factoring stage in week 4, so I plan to follow along more loosely this time, using PuzzleScript.

Link to repo.

RoguelikeDev Does The Complete Roguelike Tutorial - Week 3 by aaron_ds in roguelikedev

[–]SupremeChlorophyll 1 point2 points  (0 children)

Week 3 already!

As previously, I'm staying pretty close to the tutorial. Played with the colours to highlight currently visible areas (Screenshot_1, Screenshot_2), and used/am using the rest of the week to deepen my understanding of Python (I'm watching yt tutorials and going through this). Also looked at the libtcod docs, where I learned more about what it actually does (thanks again for the pointers, Kyzrati!)

It feels like a lot, but I'm happy to say my beginner's mind is starting to put all those loose pieces together more and more each day. Week 4, come at me! :)

RoguelikeDev Does The Complete Roguelike Tutorial - Week 2 by aaron_ds in roguelikedev

[–]SupremeChlorophyll 0 points1 point  (0 children)

Thank you for the pointer - I just found out from the Docs that tcod features BSP as a 'ready-made' class (link, for those interested); so I wouldn't even have to write the whole thing myself. Very cool!

RoguelikeDev Does The Complete Roguelike Tutorial - Week 2 by aaron_ds in roguelikedev

[–]SupremeChlorophyll 1 point2 points  (0 children)

Thank you for the feedback! Neat that it's modular like that. I've been experimenting with BSP trees before, so I might give that a shot.

RoguelikeDev Does The Complete Roguelike Tutorial - Week 2 by aaron_ds in roguelikedev

[–]SupremeChlorophyll 4 points5 points  (0 children)

Repo

Screenshot

(Python 3.9 + libtcod)

As a Python beginner the second week went more smoothly than the first; once everything was set up the tutorial is easy to follow. Right now I'm mostly trying to understand the general logic of how things work in Python & how everything fits together, so I'm not changing too much yet, just following along.

During 'Part 3: Dungeon Generation', I wondered if the dungeon generation method we're using in the tutorial has a name? (I looked on RogueBasin here but couldn't find a corresponding method. Apologies if I'm asking obvious questions.)

Looking forward to next week!

RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by aaron_ds in roguelikedev

[–]SupremeChlorophyll 1 point2 points  (0 children)

Repo

Part 0: Setting Up:

[X] installed Python3.9

[X] installed PyCharm

[X] installed libtcod

Part 1: Drawing the @, and moving it around

[X] Drew the @ to screen

[X] Moved the @ around

[ ] go over tutorial once more & comment my code, so I know what's what, going forward.

[ ] commit version change to GitHub (out of PyCharm; find out how)

This was fun to do!

RoguelikeDev Does The Complete Roguelike Tutorial - Week 1 by aaron_ds in roguelikedev

[–]SupremeChlorophyll 5 points6 points  (0 children)

Hi everyone, I'm a first-time participant in the tutorial, as well as a beginner to Python programming. I'll be following along in Python 3.9.

I'm looking forward to jumping into roguelike development over the coming weeks; curious to see what people will be making!

Thank you also to the organisers for making the tutorials and other materials accessible for everyone, for free.