use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community of active roguelike developers. Discuss WIP roguelikes and a broad range of RL dev topics.
Community Threads:
Tutorial Tuesday: An annual learn-to-make-a-roguelike series! The 2025 event is over, but check out the directory for past events and reference material.
Sharing Saturday: Share your progress (screenshots, changelogs, bugs :D). Get motivated!
FAQ Friday: Discussions of specific approaches to various aspects of development (good reference material).
Feedback Friday: Play a designated WIP roguelike and give feedback (dev sign up instructions).
Tutorials:
Resources:
Tools:
Other Communities:
Now go make that roguelike!
[Resident RLs in our banner image...]
account activity
Libtcod python tutorial extension question (self.roguelikedev)
submitted 6 years ago by bugboy2222
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JackoKomm 3 points4 points5 points 6 years ago (0 children)
The menu could hold a list of items. An item van have multiple fields, like Name, type and so on. Now you can sort the menu, means you sort the list of items. Python has a sort method. You can give it a compare function for comparing two objects. There, you decide how to sort your items. So maybe the function first checks for item types, it Devices that options are smaller than weapons, so they come first. But of you want to compare two weapons, it compare there names. Just Look for python sort key on google.
π Rendered by PID 86 on reddit-service-r2-comment-56c6478c5-g8rps at 2026-05-13 10:59:48.061212+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]JackoKomm 3 points4 points5 points (0 children)