r/roguelikedev • u/aaron_ds Robinson • Jun 19 '18
RoguelikeDev Does The Complete Roguelike Tutorial - Week 1
This week is all about setting up a Python environment and getting an @ on the screen.
Part 0 - Setting up Python and libtcod
The exercise at The Learn Python The Hard Way that will get you setup with an editor, python environment, and running some Python code.
- https://learnpythonthehardway.org/python3/ex0.html
- https://learnpythonthehardway.org/python3/ex1.html
If Python is new to you and you have some free time, consider continuing past exercise 1.
Setting up libtcod
Part 1 - Drawing the '@' symbol and moving it around
http://rogueliketutorials.com/libtcod/1
Of course, we also have a couple of FAQ Friday posts that relate to this week's material
Feel free to work out any problems, brainstorm ideas, share progress and and as usual enjoy tangential chatting. :)
Last year some participated forked a common git repo to get started. If you want to do that this year, feel free to use this repo https://gitlab.com/aaron-santos/roguelikedev-does-the-complete-roguelike-tutorial
View all comments
Show parent comment
1
u/OhBoySiesta Jun 22 '18
Oh man! Thank you for posting this. I hadn't realized someone had actually made a decent Typings file for ROT.js and added it to Definitely Typed. There was nothing very complete I could find last time I looked (over a year ago) so I started making my own for the project I was working on at the time. This one is so much better than what I'd been working on, though.
How have you found the Typescript / ROT.js / React experience so far?
I haven't decided yet whether to participate in this this year... It'll depend on how much time I have this weekend! But if I do, I'm going to go a similar sort of route to you, only going with MobX rather than Redux. I would likely go with a more traditional game engine style and use React/MobX only for the GUI, rather than the game itself -- my game's render code would call an action on a MobX store to update the React components displaying UI state for things like HP display, but I would directly render to ROT.js for the primary game display.
Anyway, just wanted to say I think this is a really cool project you have and I'll be following your progress with interest!