Python ASCII RPG Tutorial #1 (Basics, Main Menu, Saving)

preview_player
Показать описание
CHALLENGE IS OVER - THANKS FOR THE PARTICIPANTS

TUTORIAL:
Part1: [you're watching that right now]

×oOo×-----------------------👽SOCIALS👽-----------------------×oOo×

------------------------×oOo×------------------------

Help my channel grow! I hope you enjoyed this video, please support me with some likes! I really want to reach my target audience but it's not the easiest with the youtube algorithm.

------------------------×oOo×------------------------

Script, art, music, sound effects, etc. for Ork Slayer made by myself.
Music for the video:
♪ North Oakland Extasy (Prod. by Squadda B)
♪ The Beaten Path (Prod. by Andrew Langdon)

-----------------------×oOo×------------------------

00:00 - Goals
00:15 - Basics
00:56 - Game Loop & Menu Loop
01:34 - Quit & Rules
02:23 - New Game
03:14 - Saving [function]
04:28 - Loading
05:23 - Screen Clearing [function]
06:16 - Line Drawing [function]
06:41 - Result & Chill Outro

------------------------×oOo×------------------------

#tutorial #ascii #python #rpg #adventure
#challenge #game #videogame
#gamedevelopment #pixelart
#orkslayer #orkslayergamedev
Рекомендации по теме
Комментарии
Автор

some basic improvement. It's recommend to use with open for the safety reasons (they close automatically)
so:
def save():
lst = [ name, str(HP), str(ATK) ]
with open("load.txt", 'w') as f:
for item in lst:
f.write(f'{item}\n')

def load() -> list:
lst = []
with open("load.txt", 'r') as f:
for line in f:
lst.append(line[0:-1]) # deleting "\n" sings
return lst

...
elif choice == '2':
name, HP, ATK = load() # unpacking returned list because we know it has 3 items, or use *misc
...
and for the some reasons I'd recommend to use dict instead of list because line >> name = dct.get('name', 'Hero') # returns "Hero" by default if key 'name' is absent << is more readable and useful, and also better to serialize in JSON later

DenisTrebushnikov
Автор

One of the best tutorials I have found. I appreciate it. It is simple enough for me to follow along and most importantly: Fun! Please keep up the great work!

Skyrai
Автор

This is the greatest tutorial ever. Not only have you saved me from my assignment you have now gained a new sub. Thx for the great vids I love them now.

matthewsied
Автор

This is so cool, I was thinking about making an ASCII RPG just this afternoon and saw you on Reddit!

nerdvananc
Автор

I feel like a grandparent not knowing what is going on but being supportive nonetheless. :D

imrepalagyi
Автор

It's so good job!! I am very gratefull for this tutorial! I wasn't understand how to create main loop, switch between screens and etc. You are best!

iden_analytic
Автор

TY for the content, it helps REALLY a lot! I wondered, how few audience do you have, bro :) Keep it up!

yatenate
Автор

i realy like your tutorials.
Now i finaly now how to clear the console 🤠

sh_
Автор

I would be happy when you make more tutorials like this one! I am at the beginning to learn programming in python, so this content will be very helpful for me! Thx 🙏

-bite
Автор

Thank you for this series, very cool!

Introspectral
Автор

Saw you are still checking the comments.
Just wanted to let you know this was great.

DM-hcsb
Автор

Very good content bro, it helps a lot.

maestroroshi
Автор

10K VIEWS, LET'S GO 🎉THANKS FOR ALL OF YOU 🙏
Drop a question anytime, I'm still responding to everyone!

orkslayergamedev
Автор

Good tutorial but I couldn’t find the terminal thing to use the clear function

thejestersjester
Автор

You have the ability for teaching. You should make a course and name it " Learn python by programming".

MoisesRDL
Автор

I made a text based mini-game for DosBox, but i forget to put save and load functions inside. I made a video(no speech, but sound) to show how it works. Have fun.😊

maxmuster
Автор

If your using Linux, type 'clear' instead of 'cls'.

idontcare
Автор

Is this how you intend to store character selection as well? Just have a type in the the save list[2] = str(“dwarf”)? Would you have a data list like this for every enemy you create? I guess I would like to see some tutorial on the code behind character selection and why you made the choices you did.

danwalker
Автор

Is this anything like L.O.R.D. Legend of the Red Dragon that many BBS's had available?

HrafnNordhri
Автор

Might sound dumb lol what do I need to do this with Python, for game dev Ive only used Unity and Godot?

BuckinPanda