How to code a Text Based Game - Python Code along Tutorial for Beginners

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 10

  • @TheKingOfBread
    @TheKingOfBread 2 года назад

    So I did this, made my own story, but when I try to run it, it shuts down the program, do I have to run it through an IDE?

  • @elijahwoodhouse1568
    @elijahwoodhouse1568 3 года назад +1

    I'm curious how you would use a python file like this as a battle in another text based adventure game?
    so.. in the adventure game a battle would come up in order to get a key to unlock a door.
    but that's a lot of script in one file. so I'm wondering how you'd append or execute a battle file within another game file?

    • @elijahwoodhouse1568
      @elijahwoodhouse1568 3 года назад

      also kickass video by the way! I'm tuned into your stuff now! Thanks for the insight!

    • @__beginnerscode__3584
      @__beginnerscode__3584  2 года назад +1

      You could re-write the code to have classes and functions for all aspects and then import these classes & functions in the file you require them. Have a little look into importing your own class to another file! Thanks for the nice words! Appreciate the support 🙌🏼

  • @brandonnielsen8745
    @brandonnielsen8745 Год назад

    When I try to write the code, it seems to have a problem at lines 33 and 34 when trying to define ‘Player’ and gives me a “did you mean: ‘player’?”. I know that this is a later version of python than used in the video and was wondering if you have any solutions to fixing it?

    • @brandonnielsen8745
      @brandonnielsen8745 Год назад

      I have tried making it lowercase and it just causes more problems than solved

  • @elite_savage1245
    @elite_savage1245 2 года назад +3

    You don’t explain what the codes do, we don’t know class or any of that stuff

    • @__beginnerscode__3584
      @__beginnerscode__3584  2 года назад +3

      I have already released a playlist explaining Python basics. This can be found here: ruclips.net/p/PLg23gvtTlgzn8u_wXmV02vMWwCU2ZztHy

  • @spellwhisperrr
    @spellwhisperrr 2 года назад

    can I have the script pls , I wrothe the whole code but with 20 mistakes :( can´t fix them

  • @junitabebe4022
    @junitabebe4022 Год назад

    This is what i want to find... Just too many repeated command