C++ Text Based Console Game - Ep 01
Summary
TLDRThis tutorial series introduces building a console RPG game in C++. The game features a character named Alex, an elf, with a console interface displaying stats like name, race, level, and experience. Players can heal, encounter randomly generated monsters, and use combat strategies like attacking, blocking, and running away. The game emphasizes strategic thinking and has a leveling system where experience points are earned based on monster health.
Takeaways
- 🚀 The video is introducing a new tutorial series on creating a console RPG game using C++.
- 🎮 The game will be text-based with a character named Alex, an elf, and will feature a health and experience system.
- 📊 The game includes a heads-up display showing character stats like name, race, sex, level, experience, and next level requirements.
- 🔄 The experience algorithm increases as the player levels up, with a mechanic to heal by resting, limited to a certain number of times.
- 💊 Healing in the game is based on a formula involving the player's current HP and level, with a cap on the maximum HP after healing.
- 👾 Encounters with monsters are random, with monsters having randomly generated levels and health, which can be higher than the player's.
- 🛡 The game features a combat system where players can attack, be attacked, and also attempt to block incoming attacks to heal.
- 🏃♂️ Players have the option to 'run away' from battles, with a chance of failure and potential damage.
- 🔄 Upon defeating a monster, the player gains XP based on the monster's health, and levels up to increase stats and damage.
- 🛠️ The game is still in development, with bugs to be fixed and features to be refined in future videos.
- 📝 The tutorial is aimed at beginners, with all code and resources contained in a single folder for simplicity.
Q & A
What is the main focus of the tutorial series?
-The tutorial series focuses on creating a console RPG game using C++.
What is the initial character setup in the game?
-The initial character setup includes a character named Alex, who is an elf.
How is the character's experience and level displayed in the game?
-The character's experience, level, current experience points, and experience points needed for the next level are displayed in a console HUD.
What is the healing mechanic in the game?
-The healing mechanic allows the character to heal by pressing '2', which increases health points and is limited to a certain number of times based on the level.
How does the character encounter monsters in the game?
-The character encounters monsters randomly, and the monsters have randomly generated levels and health.
What happens when the character attacks a monster?
-When the character attacks a monster, they deal damage, and the monster can also deal damage back if it has a higher level.
What is the purpose of the 'block' feature in the game?
-The 'block' feature allows the character to block incoming attacks, reducing the damage taken, and potentially healing the character.
What is the 'run away' mechanic in the game?
-The 'run away' mechanic lets the character attempt to escape from a monster, but there is a chance of failure which can result in damage.
How does the character gain experience points in the game?
-The character gains experience points based on the health of the monsters they defeat, with each point of health equating to one point of experience.
What happens when the character levels up in the game?
-When the character levels up, their total health points increase, and they gain additional damage capabilities.
How is the game's code structured?
-The game's code is structured in a single folder with all functions and global variables included, making it more beginner-friendly.
Outlines
🎮 Introduction to Console RPG Game Series with C++
The video script introduces a new tutorial series focused on creating a console RPG game using C++. The presenter, likely a game developer or enthusiast, provides a teaser of the game, which features a character named Alex, an elf. The game is text-based, reminiscent of the early console games, and includes a heads-up display showing character stats like name, race, sex, level, and experience. The presenter explains the game mechanics, such as healing, which is limited by the character's level and has a cap on the number of times it can be used. The script also introduces the combat system with randomly generated monsters that have varying levels and health, and the player's ability to attack, block, and run away from battles. The presenter demonstrates the game's dynamics, including the risk of encountering monsters and the strategic elements involved in combat.
🛡️ Combat Mechanics and Leveling Up in RPG Game
This paragraph delves deeper into the combat mechanics of the RPG game. The player must strategize during battles, as mindless attacking can lead to defeat due to the health and experience system tied to the monsters' health. The game does not allow saving, and once the player's character dies, the game ends. The script highlights the importance of blocking and running away as tactics to survive, with the latter having a chance of failure that can result in damage. The experience points (XP) system is explained, where the amount of XP gained is equal to the monster's health, and leveling up increases the character's stats, such as health and damage. The presenter also discusses the game's development, mentioning bugs encountered during gameplay and the plan to simplify the code for beginners, as well as the intention to cover basic programming concepts in the following video tutorials.
Mindmap
Keywords
💡Console RPG Game
💡C++
💡Character
💡Experience Points (XP)
💡Leveling Up
💡Combat
💡Healing
💡Random Encounters
💡Blocking
💡Running Away
💡Game Over
Highlights
Introduction to a new tutorial series on creating a console RPG game with C++.
Teaser of the game featuring a character named Alex, an elf.
Gameplay includes a console display showing character stats like name, race, sex, level, experience, and health.
Players can choose to move forward or relax, affecting their experience points and health.
Healing mechanic allows regaining health at the cost of limited uses per level.
Encountering random monsters with randomly generated levels and health.
Combat system where players can attack and take damage based on monster levels.
Experience points are gained based on the health of defeated monsters.
Leveling up mechanics that increase health and damage.
Introduction of a blocking mechanic that can heal and prevent damage.
Running away from battles with a chance of failure and taking damage.
Game over condition upon the player's death with no saving feature.
Demonstration of strategic gameplay requiring thoughtful decisions between attacking, blocking, and running.
Explanation of the game's code structure, suitable for beginners with all files in one folder.
Upcoming tutorial content will cover basics like using STD count and similar programming concepts.
Promise of future videos to delve deeper into the game development process.
Transcripts
what's going on guys I got a new
tutorial coming back at you oh it's a
new series anyway I'm gonna make a
console RPG game with C++ so if you're
interested definitely stick around I'm
gonna give you the quick teaser though
before you like you know I commit to the
watching the whole series yet to see
what we're actually going to make so
it's just a console game so it is the
start and T character name so let's name
it Alex
elf so yeah there's no sound or anything
I could show you
beeping later but this is just like in
Toy Story type of thing
I'm just gonna let it play you know I
won't talk much
so anyway I here's the main I like
console for that we're gonna have so
this is gonna be like your hard heads up
display so it's gonna have your name
race your sex your level experience so
your current experiences your experience
the next level so we've got a couple
algorithms for those too like increase
as we go and your kind help to move
forward or relax and aim the backwards
we can we we can change it up in the
series but we'll see how it works from
now if I press 2 for example and then
obviously and you see how it cleared you
press 2 again you just want to chill out
for a second you heal so first level is
times by 10 and divided by usual and
then you can only do it a couple of
times you rested but did not hear you
feel stiff and sorry say for example you
have 10 HP you can only do that 3 times
and only get at level 1 anyway you can
under get 30 HP on top of that so you'd
only have 40 HP and then you have to
risk moving forward and possibly
encountering a random monster see I
didn't finally find a random monster so
I can heal again 3 more times but it's
always a risk here's my first monster so
I'm finding it a go and the oh the
monsters have a randomly generated level
so they can be any are a range of I
believe it was plus 3 so anywhere from 1
to 3 from my level so if my level was 10
they can be from 10 to 13 and their
health is also randomized so we can
attack so I did 4 damage and he did 6
because he's a higher level than me he's
gonna do more damage I've got more
health though so we can just keep
attacking
and one more for the win done zero
health and he didn't get another
attacking and we defeated the agro you
water with 20 XP well done and you can
see that XP actually updated and the
level that's still the same when we get
to that point will will go up so I now I
can show you the healing mechanic so we
healed an extra 86 so an extra 10 on top
and I can hear all the time until three
times total until back up to a maximum
of a hundred for this level when we go
up to the next level it also increases
that the there are multiple different
monsters so I have four in an array but
we can obviously add more I'll show you
how to do that time to show you the
other features so we have a block as
well and if you file a block you will
suffer some some damage but if you
actually manage to get the block you
will heal so I healed five and I blocked
all incoming attack so the ogre didn't
actually hit me back
and this guy's pretty weak so I'm just
gonna kill him and then I'll show you
the run for the next one run away is
basically what it actually means you
actually just run away and there is a
chance of failing a running away and
getting damage done to you we've got 20
22 xp for that I'll just quickly show
you the running away it's not it's not
actually lagging my computer's not
lagging or anything if you feel like it
is I've actually put asleep on there it
gives the player time to actually read
it oh this one's a level 3 so he's
hitting me for nines and I'm only doing
for so the game I've built it a bit
strategically so you have to actually
think you can't just
keep attacking over and over and over
again cuz you're gonna you're gonna die
and blocking is not gonna save you
because you you fail fair bit so you're
gonna have to run pretty much or else
you will die and yeah and then once you
die the game's over there's no saving
this I haven't built it so I failed that
run and I managed to run away now 30 HP
it's a little tiny heal so yeah remember
you can only do it three times and then
it starts saying that you feel stiff
from sitting for too long so I never try
and move I moved but it failed so that
like counters reset so I can actually
heal heal back up I really want to just
show you show you guys the level so when
I actually get a new level so this guy's
level to 6 damage to me so I should be
able to kill this guy with my health and
and the experience is given by how much
health they had so I believe this one
had 44 HP so I will get 44 XP from it so
each point is each point of health is
experience level we can randomize that I
did have it randomized before but it was
giving me one xp for some fights and
that was a bit ridiculous so I made it
to have the same hour XP as the health
which I feel is a bit better cuz most
games are kinda like that and I should
get a level from this so we will see the
wait second then you levelled up your
total head points have been increased we
can we can definitely slow that down a
bit and like this hasn't updated yet but
will after I press Enter
over time now I'm level to about 86 XP
and level and my health also went back
up to full with an extra 20 points
actually that gave me 40 points oh well
we've got a couple bugs to fix that's
alright it's
always fun to fix find fine bugs while
playing and then fix it so I just want
to quickly show you that I do eight
damage now instead of what I was doing
so I've been multiplied up by yeah you
you get the point each level you go up
you get more you get more damage that
was a fairly weak monster I go around 24
XP I haven't put I haven't put a quit on
the actual screen that's alright we can
always do that later quits are easy to
implement so here's the code I didn't
want to this programs really suited for
beginners more than anything so I didn't
really want to build it for build it
extreme we're flying multiple cpp
folders in multiple header folders so I
just put it all in the one folder of all
my you know I have all my functions and
I have my there my global variables then
this is the start my main function then
we got a hard a combat HUD the actual
combat system and then creating a
monster function our void function and
our story but overall we'll definitely
get into this next next video we'll
start with the basics or teaches you
know STD count just just similar things
while we actually build this program so
hopefully you stick around I'll be
posting hopefully sometime in a couple
of next days in the next couple of days
all right
Ver Más Videos Relacionados
Playing The Binding of Isaac For the First Time [Review]
We Get ANOTHER FREE 5-STAR Compensation (Who Should You Pick!?)
"Guys! I Have A New Dusttale/Dustbelief/Dustswap/Dusttrust Take Idea!"
5 MUST KNOW TIPS FOR WUTHERING WAVES! Best 5 Tips for Beginners - Wuthering Waves
👀 13 INSANELY Useful Tips ESO Never Explains in 2024!
AVOID THESE MISTAKES! Essential Tips to Know When Starting Your Wuthering Waves Playthrough
5.0 / 5 (0 votes)