Python Text-Based Rpg Tutorial Part 1 - Starting the Game

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Coming back just to say thanks again. This helped me so much 6 years ago. Great work!

Azuroth
Автор

dude, really cool video! I've been studying Python for a week (in a very casual basis)so I'm no expert, maybe not even an amateur.
But everytime I thought I wouldn't understand something you wrote on your code, you made it clear on the next seconds of the video, and that's really something when it comes to guides.
The first thing I thought once I started learning the Python basics was "hey I think I could do a text based rpg!" but the internet is full of code examples that just make the whole project seem impossible for a self taught person to do, so I really must thank you for making it look "doable" and keeping it simple.

Keep it up, bro, you got a fan here in Brazil!

AlexandrePereira
Автор

Why do you break? (Por que você parou com os videos? Gostei muito do seu conteúdo.)

EronAutomacaoFiscal
Автор

In windows (maybe my computer is wierd, but) the "global PlayerIG" needs to be switched with "PlayerIG = Player(option)" than the way in the video. just fyi.

sparticusthespartan
Автор

I know this is an old video, but just to point out, I'm a newbie tried and true, but I'm pretty sure you don't need the main function, in other languages you do, but in Python it would just be good practices.

animore
Автор

i use python 3.5 and 2.7.12 but it still doesn't work help plz?

eymz
Автор

Thanks, doing a project in school and this really helped!

Borzy
Автор

raw_input is not defined that's the error I'm getting and he didn't say to define it so I don't know if I should

xsansthecomicx
Автор

+Cryptero Can anyone please help, I'm using idle and whenever I try and run the program it says raw_input is not defined

alexandervankoeverden
Автор

why do i get the error "expected an intented block" error when i try to run it?

crazedtuber
Автор

I dont want to use my info in cloud 9 is there another one like this that I don't have to?
thx

developingfun
Автор

i try to run it and it says invalid syntax exited with code 1 PLEASE HELP ASAP

LuneyCreatesStuff
Автор

When ever I run it, it gives me the error "name 'raw_input' is not defined". What should I do?

BruiserJE
Автор

Hey anyone im trying to make a game but i keep running into the same problem. im up to the combat screen but whenever i try display the player health and max health
print("%s's Health: %d/%d %s's Health: %d/%d" % (User.name, User.health, User.maxhealth, enemy.name, enemy.health, enemy.maxhealth))

AttributeError: type object 'User' has no attribute 'health'

this is my player class
class User:
def __init__(self, name, race, ):
self.name = name
self.race = race
self.maxhealth = 100
self.health = maxhealth
self.attack = 5
self.gold = 0
self.potions = 0
if someone could help me with this problem i would be very greatful.

darkninja
Автор

Hey, nice video series! I have a questioin: If you call the function itself inside the function (for example when the player refuses to type in a valid choice in the start menu) wouldnt that be considered recursion and should be avoided?

starvedlre
Автор

Can I still follow this tutorial if I am making my game in Python 3.5? I notice some differences already and was wondering what changes I need to make to your method.

benjamincalloway
Автор

File "PTBG.py", line 16, in main
option = raw_input('-> ')
NameError: name 'raw_input' is not defined

hydricbluen
Автор

What python are you using? i am running 2.7 on MacOS Sierra and am running into bugs

zayanwatchel
Автор

what website are you using for your python script? i know you said it but could you sent me a direct link? Thank you... also great video!!! (i found it but maybe include a link in your description next time )

Wildstep
Автор

This must not be a tutorial meant for beginners...
I feel like you're mostly just writing out code and saying "here just copy my code".
Like, "every time you call the player you want to call their name, because who doesn't have a name? And then this you want to put there because.... well, I don't know, just put that there." - is not helpful for new people trying to learn what they're doing and how to code.

XIsleTheWanderer
join shbcf.ru