The Complete Roguelike Dev Tutorial Week 1 - Setup & Initialization
Vložit
- čas přidán 14. 06. 2020
- Ombarus does the RoguelikeDev Complete Tutorial. Part 00 : Setup the python environment, part 01 : Initialize libtcod and display our first character.
Check out my Roguelike Space Game ►solar-rogue.netlify.app/
Support me on Patreon ► / ombarus
Join the discussion on Discord ► / discord
Twitter ► @Ombarus1
Instagram ► / ombarus1
Website ► www.ombarus.com
Email ► ombarus.dev@gmail.com
Github ► github.com/Ombarus/roguelike-tut
Music ► www.bensound.com
My name is Ombarus and I'm a programmer / game developer from Canada who moved to Japan and decided to try my own luck with game dev. - Věda a technologie
amazing content pls do more like this
I did this last year. I managed to marathon the whole thing in a week and a half and had a complete version with a couple of my own tweaks. Then I tried to figure out how to make an executable binary and discovered why Python doesn't rule the world yet. It was like running a marathon only to find out that someone built a brick wall around the finish line.
You could use py2exe or similar programs. Although, personally I had a bit of trouble getting an exe with pySFML, so it may not work with some libs. This was some five years ago, though, and I don't remember if I tested it with libtcod. I remember that it worked perfectly fine with pygame, right out of the box, no need for setting up anything. You could always try it out and see what happens.
doesn't rule the world? What do you mean? Could you explain? I'm new, but does that mean that my roguelike won't be a huge open world? or something?
@@GretSeat It means Python has a ton of user friendly features and is great for learning except for one giant pain in the butt problem: when it comes to making your own executables, you have to figure out how to do it yourself. This is not something beginners should be expected to do, and for more experienced developers like me it seems scandalously unprofessional. On reflection, it's probably done that way to developers don't have to rely on any one IDE for Python development. But when I zoomed through the whole Python RL tutorial in Visual Studio Code with little friction only to find out at the end that there wasn't an easy way to compile all the code I just wrote and that this was an *intended feature* of the language itself, that spoke volumes as to why Python isn't widely considered to be a "serious" language for software production.
Of course it's great for hobby projects. I totally get that. Some people can make it work in a professional environment. I appreciate that. But I don't think I'll be using Python for actual software production any time soon.
@@KlausWulfenbach It's used primarily for machine learning, simulations etc.
For a portable environment, as you talked about at ~ 1:45, is docker a great solution. Everyone can run your Docker exactly as you've configured it :)
But I don't know if it's any useful for a client*
You can't run tcod in docker properly since it doesn't output to a console. It renders to a window, which docker does not support. You can run technically if you're lucky (if it can find the xdisplay), it but you won't be able to see the game at all. A better way is to use v(irtual)env or pipenv.
Great video even though the timing is a bit poor after you just got a shout out for your awesome Godot content from GDQuest :P
True. My game just released and it's a roguelike so I wanted to do something roguelike related and refreshing! It's a big event right now on r/roguelikedev
Nice.
Im doing python tutorials right now to get my programming basics down, hopefully it will improve my Godot skills
Same
Godot support python?
@@rizla8602 gd script is very similar to python also you can use python in godot just as many other languages
your programing skills in general will improve
I've already made some rls in godot but returning to these videos to get ready for 7DRL jam.
Maybe helpful for Fedora Users:
sudo dnf install python3-devel SDL2 SDL2-devel
If nor installed you get some error within thne pip install tcod command.
hope it helps ...
2:53 i can't download it, how you get that route?
I installed python and C++ but when i enter "py -m pip install tcod" i get an invalid syntax error, any ideas?
Sounds like the Python interpreter is not in your Path
Poetry totally kicks Pip's ass when it comes to packaging up preconfigured environments. Just a PSA FYI.
Hey! Could you, please, make a new tutorial? Many of the commands you used here seem to be depricated right now.
You should follow the new tutorial. It uses contexts which make these functions not work properly. It's also much cleaner than this code
This is good but... How do i do it on Chromebook
And not a good one... Its One of the shitty ones that school gives you
oh btw the window p1 opens, is not closeable by me even with task manager.
I'm not sure what you mean by window p1. Sometimes if the python interpreter gets stuck you can abort using ctrl+c a few times
@@Ombarus part 1
@@spazetalkzz7903 I See. I suppose you programmed the infinite loop for the game code. You'll need to add the key press to quit the game and exit the loop. If you're using my Notepad++ setup you can also abort the run in the console with ctrl+c. To kill it from the task manager you need to kill the python process not the window.
@@Ombarus well i progressed since then, I learned 2 things: 1 how to make a roguelike. 2. batch sucks.
The intro sound effect is a bit harsh on the ears
Me: *Fluent in html and css trying to learn python*
Video: ...is equivalent to [incomprehensible dialog] in Java or C++
Me: I don't know what any of that means... T^T
Does this even work anymore or am I just stupid?
I believe there have been major changes in libtcod since the video was made so you might need to install an old version or look at a more up-to-date tutorial. You can look at the text version on rogueliketutorials.com/
This is not beginner friendly.
Sorry. The Complete Roguelike Tutorial is aimed at people with a basic understanding of programming. But if my explanations aren't clear let me know and I'll try to explain in the comments.
@Feetrex You made the same mistake I did, trying to learn programming with making games. It just makes things a lot more complicated than they need to be.
Learn the fundamentals first doing very simple things and don't move on to the next thing until you have a solid grasp on them, try to have some fun with them too. This is the channel that made everything click for me because he used diagrams. I hope it's just as helpful for you.
czcams.com/video/AaIdperUu-A/video.html
Watch his videos on python classes, methods, functions, the basics of programming all of that. Stick with python too, it also makes things less complicated, once you have a solid understanding of the fundamentals then you can branch off.
Also, if you have questions you can google it with keywords of 'stack overflow' . Chances are it was already answered there.
@@ss-oq9pc do you have discord? mine is @feetrex lets chat there
@@Ombarus Programming isn't problem, speed is. You are too fast when explaining concepts and stuff, you don't give people any time to process data at all.. I had to press pause after each couple of sentences just to "think through it" and realize what you just said..
I don't know how to code at all yet but I can follow simple instructions