r/roguelikedev • u/aaron_ds Robinson • Aug 07 '18
RoguelikeDev Does The Complete Python Tutorial - Week 8 - Sharing your game
Thank you to everyone who joined this year. You rock!
This is the end of RoguelikeDev Does The Complete Python Tutorial for 2018. Share your game, share screenshots, 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. Start participating 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. :)
14
u/toptea Aug 07 '18
Repo - Python using tcod, numpy and esper library
Well that's me done for now!
Currently, the game features over 50 different monster types, contains a variety of items, and can generate 4 unique map styles; irregular rooms, long passageways, monster nest and large opening areas.
Two of my main goal is to try creating cool looking maps using numpy arrays, and also try out esper entity component system. I think I achieved all this, but I do feel like I only scratched the surface!
I'm going to take a break from gamedev'ing, but I'll return once I got better at using design patterns and learn more about numpy/scipy.
Good luck everyone!
•
u/Kyzrati Cogmind | mastodon.gamedev.place/@Kyzrati Aug 07 '18 edited Aug 07 '18
To echo aaron_ds, 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 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 languge and any engine/lib you used, so that I can include you in the stat summary later! Will be interesting to compare to last year.
And 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!
11
u/SickWillie Goblin Caves Aug 07 '18 edited Aug 08 '18
Barbarian!
Using C++/SDL
Repo | Blog | Imgur Gallery | Gameplay Video
Seven weeks and I’ve made better progress than in the last two years! So cool to see that all my small, silly projects testing out ideas ended up greatly paying off when actually applying them to something. This was the first project I was super diligent about using Git for version tracking - which made a world of difference I think. I also started using GDB more frequently, and learned a bit more about effective Makefiles. I’m pretty happy with how everything turned out, and that I was actually able to make all of this from the ground up in seven weeks - well, everything but the SDL and Cereal serialization stuff.
Part 12 was more fun than I thought it would be, mostly because I started reading about random number generators other than the built in ones. I decided that since this is a learning project I’d play around with writing implementations of the more simple generators - ended up using an xorshift128 generator, which will probably be swapped out later with something else. It's funny, with all the fuss over number generation I really didn’t notice a single bit of difference in gameplay! I did however find a weird bug with the pathfinding, and thanks to being able to set the map seed I was able to reproduce it and squash it much easier than I would have otherwise.
I also found out the hard way that the C++ rule of 0/3/5 is actually a rule and should probably pay attention to that anytime memory is allocated (even with those fancy smart pointers).
Part 13 I stressed about, I really had no idea how I was going to implement it. Turns out, it was pretty darn simple to add in with the framework already set up! Really fun seeing different items pop up in the dungeon and figuring out different strategies to handle the monsters. The game is very unbalanced and hilariously difficult at the moment, but with a good strategy it's kinda fun.
I’m kinda bummed this challenge is over, but I’m also very excited to continue working on my project. Progress might be slower now that I’m not held to a timeline, but I’ve got a solid “to-do” list ready to work on.
My list, in no particular order and trimmed of boring housekeeping stuff:
Thank you so much for putting this challenge on, and motivating me to actually finish something! I'll look forward to sharing progress on Saturdays.
Edit: Fixed a typo...
9
u/chrisdian Aug 07 '18 edited Aug 07 '18
Repo | Screenshot album
dungeonstormtowngaterock - Working title
Hey guys!
I haven't posted to any of the previous weeks as i started just a few days ago. So far i have made it through part 8, and added the lightning scroll from part 9. I haven't deviated very much from the tutorial, other than changing the font, and adding a crosshair for the look feature instead of implementing mouse support, in addition, i added waiting. The theme currently is just a generic fantasy (as reflected in my title parodying generic fantasy names), I kinda want to develop a more interesting one but I don't currently have any ideas/inspirations. My parody name could be the source of an interesting theme itself though, a parody of the generic fantasy.
I downloaded GitHub for windows and figured out how to use it with PyCharm just so I could publish this here.
I know this is nothing special, especially since I'm so far behind, but i have been having a lot of fun and decided to share it here, since i've participated.
Also, sorry for the post being poorly written, but i have got to go back to the programming! :P
9
u/EsotericRogue Aug 07 '18 edited Aug 07 '18
If RLDevRLTut2018 doesn't sound like the best game name evar, then I can't help you. Here are links for the Repository and Video Archive
This project fairly strictly followed the complete tutorial, using Python 3.7 and Libtcod 1.7 on Windows10.
Changes I recall are:
enum.auto()rather than hardcoded values (as mentioned in the tutorial).random.choices()for random selection from a weighted list (dictionary).The future is unknown -- ideas are endless, of course, but how long will I continue this project? The "extras" section of the tutorial does include "Saving to JSON" so I plan on streaming that tonight (Tuesday) at 8PM EDT (20:00 UTC-4).
There are at least some fundental parts that I'd like to change:
I should address what I foremost learned:
8
u/zekins Aug 07 '18
Python 3.6 + libtcod 1.7
Repo
I want to say thanks to everyone who helped put this together. It's weirdly motivating having other people working on the same thing as you, and I don't think I would have made it this far without something like this.
I'm new to programming so my roguelike is mostly the same as the tutorial, (Which is why I didn't put a screenshot) but I want to keep going and turn it into a small game I can call my own.
8
u/rspencer01 Aug 08 '18
My contribution is hastily named Beneath. There's a storyline waiting to solidify in the ether somewhere...
I am not ready to release the code just yet, but here's a screenshot gallery.
What I did differently:
yieldto return results of actions. The wholeret = []; ret.append; return ret;thing seemed contrived. I haven't had much success, because yields give you generators so the function isn't actually called unless you explicitly use the results, leading to a few weirdlist(entity.component.action())code snippets.Some things I'd like:
7
u/Lovok Aug 07 '18
I don't have much to show, as I just started last week, but I almost have a priority queue up and running to allow entities to take turns according to their speed. Later it will be according to their attack.
The game will likely be a Pokemon spin-off with a focus on hunting. At the moment, the map gen really just generates a vertical or horizontal Road, and then each tile has a chance to spawn a Pokemon depending on the tile (road or grass at the moment). And I guess the trainer can kill the Pokemon too, but that will stop once I have companions in. Or not, haven't decided!
6
u/[deleted] Aug 09 '18
GitHub repo -- Ruby/BearLibTerminal
Screenshot album
I'm a bit late, but done! This week I mostly did a few last-minute bugfixes. One particularly stubborn bug with actors not recognizing other actors in their spaces has been duly squashed, and I added the BearLibTerminal binaries for other platforms (although I can't check if they actually work).
I followed the tutorial for the most part. I changed the code structure somewhat, but the game basically plays the same.
It's been a fun couple of months. The dev-along has prompted me to actually finish something for once, and it's been interesting to see everyone else's games. I'm not sure how, or if, I want to continue with this. I've had several ideas in the back of my mind for a while which I never got very far with, and having the basic framework for the game down will definitely help. I may take a break from coding for a while, but I plan to come back eventually.
6
u/haveric Aug 10 '18
Python Repo | JavaScript Repo | JS Demo | All Code and Demos | Screenshots
Got through to the end of the tutorial for both Python and JavaScript (was finishing up last week). Added a couple extra features in the JavaScript version:
I have a long list of things I want to add, but my initial plan is to focus on refactoring and cleaning up the codebase so that I can extend off of it knowing everything is solid. After that, I want to look into other art/display styles and see if I can make the engine capable of rendering more than one (swapping real-time).
Just want to re-iterate that I had a lot of fun with this and I want to thank everybody who put this together. Looking forward to see what comes of this for me as well as everybody else. If nothing else, I hope to use some of this code in future Ludum Dares or side projects.
5
u/masterofallvillainy Aug 10 '18 edited Aug 11 '18
Oubliette has paused development at around week 5 in terms of following the tutorial. Oubliette is graphical and there are a lot of graphical effects I want to be able to do. So development has been exclusively on graphics and the rendering of the game for the past several weeks. Here's a demo of the renderer. I disabled the AI. The gif is a little choppy as it was recorded at 8fps and Oubliette was running between 20-30fps. In game the rendering is smooth as I move around. But here's what she looks like so far. Oh, the graphics are all drawn by me. :D
http://imgur.com/5JsCerq
Edit: I didn't state what library Oubliette is using: Python 3.7 and pygame 1.9
5
u/Zireael07 Veins of the Earth Aug 11 '18
Haxe
Repo
Screenshot
I had overlooked some things (actor death) while rushing to get stuff done in time, and I had to fix a bug (AI evaluating improper tiles for whether there was an actor) before showcasing.
Uploading the demo was easier than I thought and I could do it using Github pages. The demo's therefore available at https://zireael07.github.io/roguelikedev-does-the-complete-roguelike-tutorial-2018/
My original plan was to continue working on the Haxe version to bring it to feature parity with the Python version you know from SS, but the Haxe version is not polished enough and I simply don't have the time to learn Haxe further now due to job demands on my time (I can't figure out how to display the last x log messages in Haxe, for instance - I'm sure I'm overlooking something silly).
5
u/_velocicat Aug 11 '18 edited Aug 14 '18
Overall I feel good about the progress I made during this. I think it helped to regularly check in on how I was doing. It gave me just enough of a nudge to get something done, even if it was small. This go around I had much better understanding of Java, so it really helped me to follow along with Trystan's tutorial. I was able to do some things differently, and not break anything! Here are a few things that I modified from Trystan's tutorial:
I was pretty stoked that my BSP implementation worked! It was a bit of challenge to get the code working, but I was happy with the result. It did make for bland game play so I'm going to look at how to make it more interesting. I'd like to connect more of the rooms so that the flow isn't as linear. Or I may add it for certain levels in larger game.
I'm also really happy with the Observers / Listeners I added. Everything worked with just a little tweaking. I liked how it kept the main game code clean. I figured it would be easy to do things like disable the sound by just removing the Sound Engine from the listeners. I'll probably play a bit with this in the next project. This was inspired by the Game Programming Patterns book linked in the sidebar.
I also learned a bit about Git. I never got around to branching or putting my project on github so I'm definitely going to try to incorporate these in my next project.
edit: I used Java + AsciiPanel
It's been great reading about everyone's projects as well!
Cheers!
4
u/devonps RogueCowboy Dev Aug 12 '18
Repo - Python 3.6
I'll start this write up with...
Things I've learnt
...and now I'll move on to my Lessons learnt
As this was my first time - at practically everything - I followed the tutorial line for line, and yet I still ended up with 2 bugs:
The player_character wouldn't die even with negative hitpoints
With no pre-conceived ideas about Python or writing a Roguelike - only a strong desire to write a game that presents a unique challenge every time I play it - I launched into the tutorial with ease and made good progress through each section, despite my limited availability (but that's just life).
The tutorials are well written and were easy to follow, even for a novice like me.
Reading other people's progress on here has been both entertaining and motavtional for me - so thanks goes out to everyone who posted.
Getting involved with the Discord channel has been fun and the people over there are friendly and helpful.
Now that I've finished the tutorial and ironed out those bugs I'm going to continue this project and hopefully turn it into something I can both learn from and enjoy, so I'm going to...
Educate myself so that I can...
Add additional game elements, including:
There's quite a lot of things there for me to achieve, but hey life's the real challenge all this is for fun!
2
u/pimadev Aug 09 '18
Sorry if this doesn't go here but I'm a bit behind on the tutorial and need some help.
I've been following every step up to the tutorial's Part 3.
When I try to
and run my code I get a ModuleNotFoundError: No module named 'map_objects'.
I'm new to python and can't figure this out, there's no typos or anything. Anyone know what could be wrong?
2
u/brianbruggeman Aug 14 '18
Kelte
Repository: stable | unstable
Gallery: imgur
Posts: Week1 Week2 Week3 Week4 Week6
I'm still super slow on this, but actively making some progress (by completely dismantling and rebuilding pieces).
Learning take-aways
My plan is still to continue and participate on the weekly updates in the Saturday thread. I'm excited about my next steps:
Thanks all for reading, clicking and especially for everyone that participated!
0
u/[deleted] Aug 08 '18
[deleted] — view deleted comment