Make a 3D Top Down Shooter with Godot - Part 3.9 Wave Difficulty

Поділитися
Вставка
  • Опубліковано 1 лип 2024
  • Give each level its own set of waves, as few or as many as you like, and then customize the difficulty of each those waves by setting the enemy speed, damage, and health (along with the existing options for number of enemies, and spawn time).
    Timestamps
    0:00 Intro
    0:52 Add wave difficulty options
    3:42 Enemy.set_characteristics()
    7:13 `self` in setters
    7:51 Give levels their own waves
    12:06 Update the Level Generator
    *******************************
    Playlist: • Make a 3D Top Down Sho...
    Source code tagged at the end of each episode: github.com/age-of-asparagus/g...
    Credits
    -----------
    This series is a port of Sebastian Lague's awesome Create a Game (Unity 5) playlist: • Create a Game (Unity 5)
    Get Godot: godotengine.org/
    Music: Main theme - Thiago Adamo (github.com/SebLague/Create-a-...)
    Editing: nuby nub ( / @nubynub2712 )
    Tools
    ---------
    Video Editing: Blender
    Overlays: Krita, GIMP, Inkscape, Draw on your Screen (Gnome shell extension)
    Recording: SimpleScreenRecorder & Audacity

КОМЕНТАРІ • 1

  • @DigitalImpostor1
    @DigitalImpostor1 Рік тому +7

    For godot 4.0 make those changes:
    1* 1:07 In Wave script export new variable:
    @export var move_speed: float = 2.0
    @export var damage: int = 1
    @export var health: int = 10
    @export var body_color = Color.DARK_GREEN
    2* 6:00: Adding Setter:
    @export var max_HP: int = 10: set = set_max_HP
    #setters func
    func set_max_HP(new_max_HP):
    max_HP = new_max_HP
    current_HP = max_HP
    3* 9:42 Go to your NavigationRegion3D script.
    4* 13:38 In LevelGenerator script we will add new export:
    @export var WaveScene: PackedScene
    5* 15:18 Instanciate wave scene:
    var wave = WaveScene.instantiate()