Dynamic Battles With RNG - Python ASCII Tutorial #2

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

ALSO TAKE PART IN THE CHALLENGES! I'm waiting for your results in the comments. Let's upgrade our turn-based battle framework with cool little features and a bunch of RNG related stuff!

Find the code I made for the video here 👇👇👇
Use the master (default) branch to start coding with me!

### Thanks to Freepik for all the amazing icons in the video!

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

×oOo×-----------------------💻CODE SNIPPET💻-----------------------×oOo×

rat = Enemy("Rat", health=12, eva_ch=10, crit_ch=5, armor=0, weapon=claws)
slime = Enemy("Slime", health=20, eva_ch=0, crit_ch=0, armor=0, weapon=jaws)
wolf = Enemy("Wolf", health=30, eva_ch=20, crit_ch=10, armor=0, weapon=jaws)
goblin = Enemy("Goblin", health=40, eva_ch=5, crit_ch=5, armor=2, weapon=short_bow)
ork = Enemy("Ork", health=60, eva_ch=0, crit_ch=10, armor=4, weapon=iron_sword)

×oOo×--------------------🎞TIMESTAMPS🎞---------------------×oOo×

00:00 - Intro
01:00 - Repo Setup
01:38 - Framework Introduction
08:45 - Brilliant
09:55 - Damage Range
13:10 - RNG Attributes
15:08 - Update attack()
16:50 - Evade
18:13 - Critical
19:20 - Armor
20:24 - Counter
22:10 - Generic RNG Method
23:37 - Outro

×oOo×--------------------------✨TAGS✨--------------------------×oOo×

#python #tutorial #classes #ascii #gamedev
#objectorientedprogramming #oop
#indiedev #indiegame #indiegames
#indiegamedev #pixelart #gamedevelopment
#orkslayer #orkslayergamedev
#videogame #game

FTC disclaimer: This video was sponsored by Brilliant.
Рекомендации по теме
Комментарии
Автор

NO ONE explains classes as well as you! I have been chained to tutorials, struggling to incorporate original ideas until watching your classes video. Thank you ❤

anthonydrakefordshadow
Автор

I've moved a bit beyond this lvl already. But I still enjoy watching these videos and seeing how you approach the problems in a basic combat system. Very cool, keep it coming!

MrDowntemp
Автор

19:27 I thought of a cool way to implement armour. You can buy them in a shop and they come with durability. For example, if you bought a shield, let's say it has 100/100 durability. Every time the enemy hits you, you will take half the damage IF the durability is higher than a random dice roll. E.g. 100/100 durability, dice roll can be from 0-100. Every time the roll is a success, the shield will take half the damage of the original attack, reducing the durability, and you will take the other half of the damage. Let me know if this is an interesting mechanic or its too random! Thanks, and I love your videos.

idontknowhereiam
Автор

I just stumbled across this after watching your first tutorial with text-based gaming.
I respect your coding and video editing skills!

jadedcode
Автор

Skill trees could be a cool thing to implement!

mordy
Автор

Master orkslayergamedev, can you please explain what a “bone files” were or are still, used in these old original Roguelike terminal games in the past? I really grasp your game dev content explanations on game code!!! 🎉

UnderArea
Автор

Is it possible to factor in parameters such as previous hit/miss ratio and delays between attacks, maybe?

djupstaten
visit shbcf.ru