Skip to content

Commit

Permalink
testing some features on windos
Browse files Browse the repository at this point in the history
  • Loading branch information
DOGamedev5 committed Nov 2, 2024
1 parent 4ffd155 commit 9bab090
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pet/scripts/FALL.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends State


func enter(_ls):
parent.modulate = Color(0.3, 0.6, 0.9)

pass

func process_physics(_delta):
Expand Down
2 changes: 1 addition & 1 deletion pet/scripts/GRAB.gd
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
3 changes: 1 addition & 2 deletions pet/scripts/IDLE.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion pet/scripts/JUMP.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions pet/scripts/WALK.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 9bab090

Please sign in to comment.