chicken roll

This commit is contained in:
Page Asgardius 2025-02-10 17:17:19 -07:00
parent 6da5da9b46
commit 80df59ae97
4 changed files with 80 additions and 1 deletions

View file

@ -1,3 +1,3 @@
source_md5="07c279198fb7e351db7dc4f933f017c6"
dest_md5="81a0556aecd58f874b6a1824438bc213"
dest_md5="b41fed93befb135294ed26dd3e306313"

View file

@ -1,12 +1,17 @@
extends Control
var croll = load("res://levels/challenges/croll.tscn").instance()
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
if !Global.debug:
Global.cplace = [0, 0, 0]
call_deferred("_croll")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _croll():
get_tree().root.add_child(croll)

View file

@ -0,0 +1,25 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
if Global.challenges[8] == 0:
Global.challenges[8] = 1
func _input(event):
if event is InputEventScreenTouch || Input.is_action_pressed("ui_accept"):
_on_Timer_timeout()
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_Timer_timeout():
queue_free()

View file

@ -0,0 +1,49 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://fonts/about.tres" type="DynamicFont" id=1]
[ext_resource path="res://levels/challenges/croll.gd" type="Script" id=2]
[node name="croll" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="ColorRect" type="ColorRect" parent="CanvasLayer"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -429.0
margin_top = -183.0
color = Color( 0, 0, 0, 1 )
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -429.0
margin_top = -183.0
[node name="Label" type="Label" parent="CanvasLayer/VBoxContainer"]
margin_right = 429.0
margin_bottom = 24.0
custom_fonts/font = ExtResource( 1 )
text = "CHALLENGE_COMPLETE"
align = 1
[node name="Label2" type="Label" parent="CanvasLayer/VBoxContainer"]
margin_top = 28.0
margin_right = 429.0
margin_bottom = 52.0
custom_fonts/font = ExtResource( 1 )
text = "Kimberly is now a Chicken roll"
align = 1
[node name="Timer" type="Timer" parent="."]
wait_time = 3.0
autostart = true
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]