Skip to content

Commit 9e68af3

Browse files
authored
Update projects to Godot 3.5 (#827)
1 parent 4357b5b commit 9e68af3

File tree

332 files changed

+988
-858
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

332 files changed

+988
-858
lines changed

2d/dodge_the_creeps/HUD.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ extends CanvasLayer
22

33
signal start_game
44

5+
56
func show_message(text):
67
$MessageLabel.text = text
78
$MessageLabel.show()

2d/dodge_the_creeps/Main.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ extends Node
33
export(PackedScene) var mob_scene
44
var score
55

6+
67
func _ready():
78
randomize()
89

@@ -50,6 +51,7 @@ func _on_MobTimer_timeout():
5051
# Spawn the mob by adding it to the Main scene.
5152
add_child(mob)
5253

54+
5355
func _on_ScoreTimer_timeout():
5456
score += 1
5557
$HUD.update_score(score)

2d/dodge_the_creeps/Main.tscn

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ mob_scene = ExtResource( 2 )
2020
anchor_right = 1.0
2121
anchor_bottom = 1.0
2222
color = Color( 0.219608, 0.372549, 0.380392, 1 )
23-
__meta__ = {
24-
"_edit_use_anchors_": false
25-
}
2623

2724
[node name="Player" parent="." instance=ExtResource( 3 )]
2825

2d/dodge_the_creeps/Mob.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
extends RigidBody2D
22

3+
34
func _ready():
45
$AnimatedSprite.playing = true
56
var mob_types = $AnimatedSprite.frames.get_animation_names()

2d/dodge_the_creeps/Player.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ signal hit
55
export var speed = 400 # How fast the player will move (pixels/sec).
66
var screen_size # Size of the game window.
77

8+
89
func _ready():
910
screen_size = get_viewport_rect().size
1011
hide()

2d/dodge_the_creeps/art/gameover.wav.import

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ force/max_rate=false
1717
force/max_rate_hz=44100
1818
edit/trim=true
1919
edit/normalize=true
20-
edit/loop=false
20+
edit/loop_mode=0
21+
edit/loop_begin=0
22+
edit/loop_end=-1
2123
compress/mode=0

2d/finite_state_machine/debug/ControlsPanel.tscn

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ anchor_left = 1.0
77
anchor_right = 1.0
88
margin_left = -220.0
99
margin_bottom = 170.0
10-
__meta__ = {
11-
"_edit_use_anchors_": false
12-
}
1310

1411
[node name="Keys" type="Label" parent="."]
1512
anchor_right = 1.0

2d/finite_state_machine/debug/states_stack_displayer.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ extends Panel
22

33
onready var fsm_node = get_node("../../Player/StateMachine")
44

5+
56
func _process(_delta):
67
var states_names = ""
78
var numbers = ""

2d/finite_state_machine/player/bullet/bullet.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export(float) var speed = 1000.0
55

66
onready var root = get_tree().root
77

8+
89
func _ready():
910
set_as_toplevel(true)
1011

2d/finite_state_machine/player/bullet/bullet_spawner.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ extends Node2D
22

33
var bullet = preload("Bullet.tscn")
44

5+
56
func _unhandled_input(event):
67
if event.is_action_pressed("fire"):
78
fire()

0 commit comments

Comments
 (0)