filmov
tv
Python Classes Tutorial: Using OOP to create a turn-based Darktide Game

Показать описание
#python #oop #programming #classes #tutorial
In this video, I take inspiration from Darktide and do a code-along showing the kind of thought that goes into a simple turn based game.
00:00:00 Start
00:00:35 OOP Introduction
00:03:42 Darktide Overview
00:05:18 Creating Colours
00:07:01 Used module imports and explanation
00:09:50 Creating the parent Character class and init method
00:15:07 Creating the Melee Attack method
00:28:03 Ranged Attack method
00:32:45 Choose Action method and using "inspect" for randomization of methods
00:37:58 Making the Sharpshooter class using inheritance
00:47:57 Making the Preacher class using inheritance
00:51:52 Making the Plague Ogryn class using inheritance
00:54:59 Creating instances of all of the classes
00:58:19 Another looked at "inspect"
00:59:40 Creating the game using a While loop
01:09:07 Checking that the game works
In this video, I take inspiration from Darktide and do a code-along showing the kind of thought that goes into a simple turn based game.
00:00:00 Start
00:00:35 OOP Introduction
00:03:42 Darktide Overview
00:05:18 Creating Colours
00:07:01 Used module imports and explanation
00:09:50 Creating the parent Character class and init method
00:15:07 Creating the Melee Attack method
00:28:03 Ranged Attack method
00:32:45 Choose Action method and using "inspect" for randomization of methods
00:37:58 Making the Sharpshooter class using inheritance
00:47:57 Making the Preacher class using inheritance
00:51:52 Making the Plague Ogryn class using inheritance
00:54:59 Creating instances of all of the classes
00:58:19 Another looked at "inspect"
00:59:40 Creating the game using a While loop
01:09:07 Checking that the game works