Patain a glass
This commit is contained in:
parent
0a42af32e6
commit
afa8f09aaf
BIN
Assets/Patain.png
Normal file
BIN
Assets/Patain.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 904 B |
34
Assets/Patain.png.import
Normal file
34
Assets/Patain.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Patain.png-297ac21a8752cc039676737e430bdf2d.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Patain.png"
|
||||
dest_files=[ "res://.import/Patain.png-297ac21a8752cc039676737e430bdf2d.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
@ -24,16 +24,15 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Sprite/MarginContainer"]
|
||||
margin_left = 788.0
|
||||
margin_top = 835.0
|
||||
margin_right = 788.0
|
||||
margin_left = 674.0
|
||||
margin_top = 771.0
|
||||
margin_right = 902.0
|
||||
margin_bottom = 835.0
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 12
|
||||
custom_constants/separation = 100
|
||||
|
||||
[node name="StartGameButton" type="TextureButton" parent="Sprite/MarginContainer/HBoxContainer"]
|
||||
visible = false
|
||||
margin_right = 64.0
|
||||
margin_bottom = 64.0
|
||||
size_flags_horizontal = 4
|
||||
@ -41,8 +40,8 @@ size_flags_vertical = 8
|
||||
texture_normal = ExtResource( 3 )
|
||||
|
||||
[node name="QuitGameButton" type="TextureButton" parent="Sprite/MarginContainer/HBoxContainer"]
|
||||
visible = false
|
||||
margin_right = 64.0
|
||||
margin_left = 164.0
|
||||
margin_right = 228.0
|
||||
margin_bottom = 64.0
|
||||
texture_normal = ExtResource( 3 )
|
||||
[connection signal="pressed" from="Sprite/MarginContainer/HBoxContainer/StartGameButton" to="." method="_on_StartGameButton_pressed"]
|
||||
|
@ -4,6 +4,9 @@ export var Duration = 7.5
|
||||
|
||||
func ConfusionRoutine(player, delta):
|
||||
player.get_node("ConfusionStars").visible = true
|
||||
var tex = load("res://Assets/zétoile.png")
|
||||
player.get_node("ConfusionStars/Path2D/PathFollow2D/Sprite").texture = tex
|
||||
player.get_node("ConfusionStars/Path2D/PathFollow2D2/Sprite").texture = tex
|
||||
var elapsed = delta
|
||||
var inputs = player.baseInputs + []
|
||||
inputs.shuffle()
|
||||
|
@ -9,7 +9,10 @@ export var SpeedFactor = 3
|
||||
|
||||
func SlipperyRoutine(player, delta):
|
||||
var elapsed = delta
|
||||
|
||||
player.get_node("ConfusionStars").visible = true
|
||||
var tex = load("res://Assets/Patain.png")
|
||||
player.get_node("ConfusionStars/Path2D/PathFollow2D/Sprite").texture = tex
|
||||
player.get_node("ConfusionStars/Path2D/PathFollow2D2/Sprite").texture = tex
|
||||
var originalFriction = player.FRICTION
|
||||
var originalSpeed = player.MAX_SPEED
|
||||
|
||||
@ -19,6 +22,7 @@ func SlipperyRoutine(player, delta):
|
||||
while elapsed < SlipperyTime:
|
||||
elapsed += yield()
|
||||
|
||||
player.get_node("ConfusionStars").visible = false
|
||||
player.FRICTION = originalFriction
|
||||
player.MAX_SPEED = originalSpeed
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user