filmov
tv
Dynamic Battles With RNG - Python ASCII Tutorial #2

Показать описание
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.
Комментарии