›_ebskola.lv
sākt stundu
Prog II · 6. tēma · 6 stundas - C++ · UI · Audio · itch.io

UI, audio //
un publicēšana

Polished Control nodes UI, Tween animācijas, audio bus sistēma un eksports uz itch.io. Kursa noslēgums.

6 stundas Control · Tween · Audio Puzzle spēle
# 01 stundu plāns

6 stundas - UI, audio, debug un publicēšana

noslēguma projekts
CanvasLayer → VBoxContainerSpēlētIestatījumiIzietControl · Label · Button · ProgressBar// UI nodes
Godot · ControlUI

UI elementi un Control nodes

CanvasLayer, VBoxContainer, Button, Label, ProgressBar - galvenā izvēlne.

6.1 stundaatvērt ↗
scale0.0alphaTween::tween_property(node, "scale", target, 0.3)// Tween
Tween · animācijaanimācijas

Animācijas un Tween

create_tween(), tween_property(), easing curves, AnimationPlayer spēles stāvokļiem.

6.2 stundaatvērt ↗
MasterMusicSFXAudioStreamPlayer · AudioBus · AudioServer// audio buses
Audio · busesaudio

Audio sistēma

Audio buses (Master/Music/SFX), AudioStreamPlayer, skaņas efekti un mūzika C++ no.

6.3 stundaatvērt ↗
Godot ProfilerFPS:60CPU:4.2ms_physics_process_processdraw callsDebugger · Profiler · Remote tab// Profiler
Debugger · Profileratkļūdošana

Atkļūdošana un profilēšana

Godot Debugger, Profiler FPS/CPU laiki, Remote Inspector, atmiņas noplūžu meklēšana.

6.4 stundaatvērt ↗
Export TemplateWindows.exeLinux.x86_64Web.html→ itch.io uploadHTML5 eksports → pārlūkā spēlējams// eksports
Export · itch.iopublicēšana

Eksports un publicēšana

Export templates, Windows/Linux/Web eksports, HTML5 augšupielāde itch.io, spēles lapa.

6.5 stundaatvērt ↗
Puzzle Spēle · Līmenis 3Gājieni: 23 · ★★★// kursa noslēgums
C++ · Godotprojekts

Noslēguma projekts: Puzzle spēle

Polished puzzle spēle ar UI, audio, animācijām, save/load un publicēta itch.io. Kursa noslēgums.

6.6 noslēguma projektsatvērt ↗
# 02 špikeris

UI, Tween un Audio špikeris

Control nodes un Tween animācija

// Poga ar Tween "pop in" animāciju
void UIManager::_ready() {
    Button* play = get_node<Button>("VBox/PlayButton");
    play->connect("pressed", callable_mp(this, &UIManager::_on_play));

    // Iejas animācija
    Ref<Tween> tw = create_tween();
    tw->tween_property(play, "scale", Vector2(1, 1), 0.3)
      ->from(Vector2(0, 0));
}

void UIManager::_on_play() {
    get_tree()->change_scene_to_file("res://levels/level_1.tscn");
}
C++ get_tree()->change_scene_to_file("res://menu.tscn"); // navigācija