r/roguelikedev • u/aaron_ds Robinson • Aug 17 '21
RoguelikeDev Does The Complete Roguelike Tutorial - Week 8
Congratulations to everyone who participated this year! It was a blast hosting this event and watching everyone learn together. Let's give u/TStand90 an enormous round of applause for the tutorial!
This is the end of RoguelikeDev Does The Complete Python Tutorial for 2021. Share your game, share screenshots and repos, brag, commiserate. How did it go? Where do you go from here?
I encourage everyone who has made it this far to continue working on your game. Everyone is welcome to (and really should ;) ) participate in Sharing Saturday and FAQ Friday.
Feel free to enjoy the usual tangential chatting. If you're looking for last week's or any other post, the entire series is archived on the wiki. :)
13
u/Kyzrati Cogmind | mastodon.gamedev.place/@Kyzrati Aug 17 '21
Thanks to everyone who participated!
If you can, drop at least one screenshot (or many!) in the thread, even if you're not quite done. Also a repo link if you haven't already, and if you have one make sure to say whether you completed all weeks so I can mark it down.
I'll be updating the directory with screenshots and and additional repos from this thread. (And if you finish at some point down the line, feel free to let me know and/or provide screenshots and I'll add them!)
Even if you don't have a repo, share your screenshots and progress, along with the language and any engine/lib you used, so that I can include you in the stat summary I'll be putting together next week! Once again it'll be interesting to compare to previous years.
Do join in for our Sharing Saturdays if you'd like to continue with your project. Over the years a fair number of cool projects started their life as tutorial offshoots, and yours could be the same!
9
u/haveric Aug 17 '21 edited Aug 17 '21
Untitled Diablo roguelike
Repo | Play | Gallery
Language: JavaScript --- Library: Three.js
Decided at the last minute to make items have storage instead of a general inventory. Now you can get bigger storages and belts with hotbar items! Pretty sure you can also infinitely chain them, but I don't have an easy way to open/close inventories that aren't equipped, so good luck keeping track of those items 10 levels deep.
I also added a couple rings/amulets with health/mana and stat boosting effects. Equipment and equippables are some of the easiest things to extend and add more of, so I'll likely be adding a ton more features here and I'll definitely take any ideas suggested here.
Difficulty: I think the difficulty might be too difficult as of now, but also too easy if you get the right rng of items. I think the main factor here is the lack of shops to buy more potions or another way of healing. Once you get enough defense and a shield, things get extremely easy though. My main thought here is to add packs of monsters and ranged enemies in order to thwart the simple melee combat. Beyond that, maybe I'll look into damage types and resistances. If you take the time to play the game, please let me know how the experience is for you.
Taking a look at github for this project, I have:
What's next? Probably taking a break for a week or two to work on other projects and then look at the remaining missing features: skills and shops. After that, I hope to get prefixes/affixes and item rarity implemented. Somewhere along the way, I hope to revisit lighting and textures as well.
Thank you to everyone involved in setting this up again this year. I have certainly had a blast and I look forward to trying out everybody else's game.
7
u/pnjeffries @PNJeffries Aug 17 '21
Roli
Play it online!
Animated .gif
Another animated .gif
Repo
Continuing to vaguely follow the overall structure of the tutorial when and if I feel like it, the two main focuses this week were on levels and adding more equipment.
Levels: I previously talked about my simple method for making levels look cave-y, and now I've put that into practice by creating two 'styles' of level; regular dungeons and caves. I've also now set up 14 templates for specific levels with the a different table of enemies for each one. There's no ending to the game yet, so if you make it to level 14 I guess you can consider yourself a winner. Good job!
Equipment: I've added two new equipment types; bows and shields.
Bows are ranged weapons, which are fairly powerful in this game and so have been balanced by giving them limited ammo. At the moment this is implemented as them being consumable items like potions, but this is a bit weird (if you have two different bows in your inventory, they each have their own ammo supply) so I'll probably switch this to being a shared resource pool.
Shields are items which allow you to block, making you immune to physical damage until your next turn. This is useful when you're in a tight spot with no other way to avoid taking damage and creates the game's first bit of exploitable emergence. If you stand between two enemies and keep blocking they will eventually kill each other by knocking you back and forth between them. If this becomes game-breaking I have a few ideas how to nerf it but for now I find it amusing so I'm leaving it in.
I've temporarily removed the Poison Vial item as it was a bit of a dud - the only thing you could currently do with it was drink it and kill yourself. Ultimately the plan is to allow you to apply it to weapons to imbue them with poison effects, but I haven't implemented a system to allow that yet, so I've benched it.
Future plans:
I guess this is the end of the tutorial series but I plan to continue working on this game. Updates will probably switch to the Sharing Saturday thread and/or my twitter. Broad thoughts on overall development objectives are:
Let's see how that goes!
5
u/Larront Aug 18 '21
Crown Of Vorona
Repo | Screenshots
Python | tcod
Woo, tutorial finished! There were a few weeks where I had to update pretty slowly due to work, but overall I'm happy with how progress went and I managed to complete all of the parts :)
As an addendum to the tutorial content, I implemented a few different map builders (mostly inspired by the Rust Roguelike Tutorial). You can see screenshots of the maps I completed uploaded, but of course in almost all of them you can see bugs haha. I ended up implementing:
I'm super keen to try and implement the builder chaining idea in the Rust tutorial, but the mission might be trying to keep things fast in Python. After that, I'm definitely going to continue the development of the game. Hooked in to this implementation now!
Thanks all for hosting this event, super fun!!
4
u/Kehvarl Aug 17 '21
Thank you for hosting the event.
I'm definitely looking forward to taking the lisp tutorial and implementing the final couple of chapters from the python tutorial in it, but in the meantime I have something that's playable and which let me explore some new game mechanic ideas.
At the request of a couple of friends, I've managed to get an executable for Windows built and added as a release to my repo, but it's still more of a tech demo than a game.
4
u/redblobgames tutorials Aug 17 '21
Well, that was fun! I enjoyed the event. Thank you to the organizers.
My plan was to start with the code I wrote for last year's event, and then reimplement each topic in a different way to explore the possibility space. Things I got working: vector graphics, (some) animations, thin walls, new map generator, room-based visibility, open/closed doors. Partially complete: new inventory approach (with stacking, always-visible streamlined ui). But halfway through I got distracted with real life, and I stopped all my programming projects, including this one. Not started: coordinated monster behavior (including grouping, calling for help, spawning, fleeing), new stat+combat system, new control scheme.
I finished half of what I wanted to, and I'm very happy with that half. The other half I don't plan to finish. That's ok. I'm here to have fun and learn things, and I got to do both :-) . I'm especially happy that I tried thin walls, as they were nicer than I expected and I can see myself using them in future projects.
Playable web version and github. I should've taken more screenshots but here's one.
4
u/anaseto Aug 17 '21
Well, this was a fun event. Thanks for organizing it!
In the end, I'm a bit behind on the schedule with gruid-rltuto, because I did not have much time lately, but I plan on finish the remaining 2-3 parts in the following weeks, as soon as I have some time. I'll share about it in Sharing Saturdays when I finish.
4
u/jordimaister Aug 17 '21 edited Aug 17 '21
OfficeStruggle
I completed the Roguelike tutorial following the Python and Javascript ones, but I implemented it in Go to learn the language.
https://github.com/jmaister/officestruggle
Implemented in Go using Ebiten for the 2D image library. Some other smaller libraries were used but trying to implement as much as possible if it makes sense.
All using a simple ECS system, I think that made everything easier than using events.
TODO:
Write a good story for the game. Then adapt the items and magic to the story.
Lots of endless minor improvements.
Images: https://imgur.com/gallery/rY4dD29
Play on Windows: https://github.com/jmaister/officestruggle/releases/download/1.0.0/officestruggle-1.0.0-windows-amd64.zip
4
u/dagger-v Aug 18 '21
Part 12. Very bottom of the page where we clean up the place_entities function in the procgen.py folder, I'm getting an " Unresolved reference 'entity' "
Is that normal? Game seems to run just fine, just find it kind of weird with the red underline. If I change it to for entities in monsters + items it seems okay.
4
u/davesmith00000 Aug 18 '21
Many thanks for running the event, I had a great time taking part and I'm pleased I made it over the finish line!
I've completed the tutorials in Scala / Scala.js using a functional programming based game engine I've written called Indigo.
My plan was just to see if it was even possible to do, and maybe pave the way for others to have a go by writing a little starter kit to plug some of the gaps left by not having tcod.
Here is the repo of all tutorial chapters with browser playable links (recommend Chrome):
https://github.com/davesmith00000/roguelike-tutorial
...and a brief post-mortem:
https://indigoengine.io/blog/2021/08/17/roguelike-post-mortem
Look forward to having another go next year!
4
u/DerTraveler Aug 21 '21
Outlandish and Hazardous
Hello everyone - it's my first post as a participant here. I started following along about 3 weeks late into the challenge - and today I finally finished Part 13.
I followed the tutorial content-wise quite closely mostly using the proposed basic class structure - with the occasional refactoring and renaming here and there - while implementing the necessary adapter between the libtcod.console interface and the DragonRuby rendering capabilities.
From Part 8 onwards I also starting doing TDD to keep my sanity ;)
Noteworthy Deviations from the tutorial content:
?buttonIn general it was a quite fun (and also intensive) experience, but I'm glad that I have produced something somewhat complete and playable and I want to continue working on it - expanding on the dimension traveling Sci-Fi theme.
Thank you very much for creating this tutorial and organizing this code along challenge :)
4
u/lagdotcom Aug 21 '21
Dungeon Assembly
play - repo
Well, I barely got there in time but I finished it. With a few minor caveats, a realisation of the tutorial roguelike written in WASM and a TypeScript embedding to handle graphics/input.
This was quite the project; it gave me some newfound admiration for people who managed to write entire games in Assembly! Writing WASM is extremely tedious and though I took some time out to make a pre-processor, there was still a large amount of dull coding to do that would have taken a fraction of the time in a more friendly language. Still, I'm glad I finished.
I don't have plans to further extend this roguelike, though I am vaguely interested in making my own roguelike/ECS-specific language that compiles to WASM further down the line. Maybe next year's codealong...
3
u/KaizarNike Aug 18 '21
Defeating User Built Dungeon
Play on web | Github Repo | Screenshot
Engine: Godot
I'm glad I took part! Followed each week of the tutorial a little loosely, making my own changes and altering it to fit my engine. The level dragndrop is really cool, in that it also works on web too! The level saving I added should also help people with short playtime, as long as they can finish a room. The system I used is a little minimal, but it is easy to work with.
There is work left to do before one can win this game, but for now I got what I wanted out of it, and am going to return to my RTS.
3
u/johnaagelv Endless Worlds Aug 18 '21
Started out late, followed the tutorial using Python, am now at #11, will finish it!
No repo, developed locally. Screenshots: Start, Game play, Game play
Made the map with overlapping rooms as I like how it looks a lot more!
Added gnomes (g) with their own AI that simulates them having a goal (a target position) and just runs around trying to reach the goal. If they get blocked by an actor, they will choose another goal.
Allows some actions to cost a move although the tutorial will stop the move. I think the player has to pay the penalty for not thinking!
3
u/EmergencySpy Aug 18 '21
Repo | Web version | Screenshots
This was really fun, thank you for hosting this event! My main goal was learning more about bevy and gamedev in rust, and I've definitely gained a lot from it! The only part I haven't completed was saving the game, I had some problems implementing it.
If anyone wants to play the game, it's terribly unbalanced after adding weapons :P (also while taking the screenshots the game bugged out)
3
u/rentheunclean Aug 19 '21
Repo | Implementation Notes/Videos
I only got up through saving/loading and I didn't have much opportunity to differentiate it from the base tutorial because of a vacation interruption, but I am satisfied with how much I learned about Rust and the Specs ECS library.
I will probably keep chipping away at this and participate next year with the same codebase!
Thanks for hosting! I had a lot of fun doing this.
3
u/princess420blaze Aug 19 '21
Horay!
Ended up learning more about documentation and ECS than anything else. Fun experience! Great community!
3
u/NSD_Brad Aug 19 '21
Heck - (C++/SDL/libtcod)
repo
Hey folks! We had a provincial election that I ended up volunteering for and that took up most of my free time, so unfortunately I ran out of steam around week four. Still had a lot of fun and will continue picking away at my game. Thanks again to the organizers, and high-fives to everyone who participated!
3
u/Gix Aug 20 '21
Thank you for organizing the event!
RT - Repo | Screenshots
I've added some small implementation notes in the README and I will add some more screenshots soon!
I have to admit that this started as a small project to keep my memory of C programming fresh, therefore I don't plan of working on it any more than this, but since I had so much fun putting it toghether, I'll start over with a language and some libraries I'm more experienced with.
Just for fun:
Be prepared for a lot of typing, if you decide to follow the tutorial to the letter :)
Thank you again, and see you on the Saturdays!
3
u/air_kondition WetworkRL Aug 20 '21
Untitled dark fantasy RL
Python + libtcod
Screenshot 1
Screenshot 2
Screenshot 3
I somehow managed to follow along for a few weeks without actually planning to participate in the event, and discovered that the event was happening when I in the middle of the development process went on here for some inspiration. What started as a way to get back into learning python has turned into a decently playable little dark fantasy roguelike (because there aren't enough of those already...).
New features
Most of the things I've added are more or less based on the systems introduced in the tutorial. The most significant changes I've made apart from adding more enemies etc are:
What's next?
Development has been good for the most part. I struggled with implementing DoTs and getting the combat system to use different dice depending on the players equipment, but other than that I haven't run into any huge issues. Hopefully I'll be able to anounce a release in a month or two, who knows?
3
u/usami33 Aug 20 '21
Did you make it in time? Anyway, we've got a playable game!
Defeat the bosses (the elven archer and the escorting unicorn) on the fourth basement floor and you're in the clear.
Screenshot 1, 2
Playing the game
It was my first time playing Godot, and it was hard to get used to it, but it was fun.
It was a race against time, but I managed to get it into shape, so I'm satisfied.
Thanks for hosting another great event this year!
3
u/RivalRoman Aug 20 '21
Urban Fantasy/Anime Inspired RL - Working Title: Streets of Infernal Rain
Repo Screenshot
I completed all of the parts of the tutorial with python/tcod. On the whole it went fine, though I stumbled around a lot, made a bunch of typing mistakes and got really frustrated some times. I want to keep working on my project though, since its kind of a nice way to stretch my mind. The first thing I'm going to try and do next is change some of the superficial stuff (size of the map, names of enemies/items/scrolls/stats etc). Then I'll try and start implementing the urban fantasy aesthetic with a RexPaint tileset before moving into gameplay and content. Probably a long time before I have anything really playable but it'll be a fun thing to tinker with.
Thanks again for hosting the event and making the tutorial! I really enjoyed it (and am glad that I managed to keep up this year!)
3
u/TeamRamrod Aug 21 '21
Repo | Screenshot
C# - SadConsole/GoRogue
Finished! It's a fairly faithful implementation of the tutorial, using a square tileset instead of text-based graphics. The biggest stumbling block was getting saving working properly - I had fairly aggressively knotted together my objects, and nothing wanted to serialize particularly cleanly.
3
u/Many_Slices_Of_Bread Aug 24 '21
Thanks for hosting this! It was a good learning experience. I've got a lot more I want to do on my game, so I will definitely be sharing it when I've implemented more of those features! At the moment it just looks more or less like the tutorial with a different skin haha
Some feedback:
- This community is awesome! Never have I seen a game learning community so helpful, and so willing to give time to each other!
- It's such a great idea to do this each year. Builds community spirit and encourages learning for all.
- Understanding this tutorial with no knowledge of Python was real hard. For context, I have about 2 years of casual code experience in C# using Unity. I remember seeing people reccomend this tutorial for people with little or no code experience, and I think people with that experience will not get very frustrated with the tutorial, unless they also spend a lot of time learning python alonge side the tutorial.
- The large code refactors done during the tutorial makes it hard to search back through the tutorials to understand how the systems work. This is because many of the main systems in the final build of the code look different to the weeks in which we learned and programmed these systems. I totally get that the large code refactoring was not the original design but rather just how things played out. All g!
2
u/EmperorPenguin18 Aug 24 '21
Hey everyone!
To those who finished, good job! I was quite busy this summer so I had to do some late nights to get this all done, so I applaud everyone who put in the work.
I haven't posted anything since the first week for a couple of reasons. First I think I'm shadowbanned (not really sure how reddit works so don't know what this is or how to get rid of it) and second I stuck to the tutorial all the way until this week.
Image | Repo
The image I linked is the biggest visual difference from the original game, and it is the new menu art. Everything else would look very similar to the tutorial, because I've mostly changed mechanics. I've changed the descriptions of every item and enemy from fantasy to spy / heist because that is what my theme is. I've also added money and the ability to buy items in a shop between floors.
For the directories sake, I have completed all weeks, using python and tcod
I'm not sure if I'm going to continue working on this. I think if I get rusty in python or if suddenly inspiration strikes I may pick it up again, but for now I think I'm going to leave it.
Thanks to the organizers and the tutorial writer(s) who put this together!
0
u/[deleted] Aug 17 '21
[deleted] — view deleted comment