Commit 9b0a6414 authored by Gerard Gascón's avatar Gerard Gascón
Browse files

init

parents
Loading
Loading
Loading
Loading

.gitattributes

0 → 100644
+2 −0
Original line number Diff line number Diff line
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

.gitignore

0 → 100644
+2 −0
Original line number Diff line number Diff line
# Godot 4+ specific ignores
.godot/

Slides.gd

0 → 100644
+45 −0
Original line number Diff line number Diff line
extends Control

var index_active: = 0

var slide_current
var slide_nodes: = []

func _ready():
	for slide in get_children():
		slide.hide()
		slide_nodes.append(slide)
		remove_child(slide)
	
	enable_slide(slide_nodes[0])


func _unhandled_input(event: InputEvent):
	var valid_event: bool = (
		event.is_action("ui_left") or
		event.is_action("ui_right")
	)
	if not valid_event:
		return
		
	disable_current_slide()
	
	if event.is_action_pressed('ui_right'):
		index_active = clamp(index_active + 1, 0, slide_nodes.size() - 1)
	elif event.is_action_pressed('ui_left'):
		index_active = clamp(index_active - 1, 0, slide_nodes.size() - 1)
	
	enable_slide_index()

func enable_slide(slide):
	slide_current = slide
	add_child(slide_current)
	slide_current.show()

func enable_slide_index():
	enable_slide(slide_nodes[index_active])

func disable_current_slide():
	var slide = slide_nodes[index_active]
	slide.hide()
	remove_child(slide)
+102 KiB

File added.

No diff preview for this file type.

+33 −0
Original line number Diff line number Diff line
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://cq5nu007qrube"
path="res://.godot/imported/PixeloidSans-Bold.ttf-824ab30c69d89d64ae839a78c5a5afb7.fontdata"

[deps]

source_file="res://fonts/PixeloidSans-Bold.ttf"
dest_files=["res://.godot/imported/PixeloidSans-Bold.ttf-824ab30c69d89d64ae839a78c5a5afb7.fontdata"]

[params]

Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}