Skip to content

Instantly share code, notes, and snippets.

View ericdsw's full-sized avatar

Eric De Sedas ericdsw

  • World Eater
  • Panama
View GitHub Profile
@ericdsw
ericdsw / LocalizationManager_final.gd
Last active August 25, 2021 03:03
Localization Example
class_name LManager
extends Node
signal language_changed(new_language)
const BASE_DIALOGUE_PATH := "res://resources/dialogues/"
var language := "en"
func get_dialogue_json(dialogue_name: String) -> String:
@ericdsw
ericdsw / DialogueVoicePlayer.gd
Last active July 15, 2021 21:22
Code snippets for the dialogue system devlog
# File: DialogueVoicePlayer.gd
class_name DialogueVoicePlayer
extends AudioStreamPlayer
var _random_number_gen := RandomNumberGenerator.new()
func _ready() -> void:
_random_number_gen.randomize()