From 9bab090fc592932509ba616119a1b8de531575ef Mon Sep 17 00:00:00 2001 From: Misael Victor Alves Ribeiro Date: Fri, 1 Nov 2024 22:06:47 -0300 Subject: [PATCH] testing some features on windos --- pet/scripts/FALL.gd | 2 +- pet/scripts/GRAB.gd | 2 +- pet/scripts/IDLE.gd | 3 +-- pet/scripts/JUMP.gd | 1 - pet/scripts/WALK.gd | 3 +-- project.godot | 2 ++ 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pet/scripts/FALL.gd b/pet/scripts/FALL.gd index 7b1ed81..d5f4fd4 100644 --- a/pet/scripts/FALL.gd +++ b/pet/scripts/FALL.gd @@ -2,7 +2,7 @@ extends State func enter(_ls): - parent.modulate = Color(0.3, 0.6, 0.9) + pass func process_physics(_delta): diff --git a/pet/scripts/GRAB.gd b/pet/scripts/GRAB.gd index ced737f..640e248 100644 --- a/pet/scripts/GRAB.gd +++ b/pet/scripts/GRAB.gd @@ -1,7 +1,7 @@ extends State func enter(_ls): - parent.modulate = Color(0.7, 0.6, 0.2) + parent.direction = Vector2.ZERO func physics_process(_delta): diff --git a/pet/scripts/IDLE.gd b/pet/scripts/IDLE.gd index 9b9b50d..70483a2 100644 --- a/pet/scripts/IDLE.gd +++ b/pet/scripts/IDLE.gd @@ -2,10 +2,9 @@ extends State onready var time := $Timer -var nextState := ["WALK", "JUMP", "WALK", "WALK", "WALK"] +var nextState := ["WALK", "JUMP", "WALK", "WALK", "JUMP"] func enter(_ls): - parent.modulate = Color(1, 0.3, 0.6) parent.direction.x = 0 time.wait_time = rand_range(2, 5) time.start() diff --git a/pet/scripts/JUMP.gd b/pet/scripts/JUMP.gd index ede9c88..43f3611 100644 --- a/pet/scripts/JUMP.gd +++ b/pet/scripts/JUMP.gd @@ -2,7 +2,6 @@ extends State func enter(_ls): - parent.modulate = Color(0.3, 1, 0.1) parent.direction.x = 1 - ((randi() % 2) * 2) var movement : Vector2 = Vector2.DOWN * parent.jump_force * rand_range(0.3, 1.2) diff --git a/pet/scripts/WALK.gd b/pet/scripts/WALK.gd index 772efc9..82a0f77 100644 --- a/pet/scripts/WALK.gd +++ b/pet/scripts/WALK.gd @@ -2,10 +2,9 @@ extends State onready var time := $Timer -var nextState := ["IDLE", "JUMP", "IDLE", "IDLE", "WALK", "WALK"] +var nextState := ["IDLE", "JUMP", "IDLE", "IDLE", "JUMP", "WALK"] func enter(_ls): - parent.modulate = Color(0.8, 0.6, 0.9) parent.direction.x = 1 - ((randi() % 2) * 2) time.wait_time = rand_range(0.5, 12) diff --git a/project.godot b/project.godot index 5d707cc..ce636ec 100644 --- a/project.godot +++ b/project.godot @@ -39,12 +39,14 @@ window/size/height=64 window/size/resizable=false window/size/borderless=true window/size/always_on_top=true +window/dpi/allow_hidpi=true window/per_pixel_transparency/allowed=true window/per_pixel_transparency/enabled=true [gui] common/drop_mouse_on_gui_input_disabled=true +theme/use_hidpi=true [physics]