Skip to content

Commit 670fc9c

Browse files
committed
add very easy intro stage; default no auto crits
1 parent 6ae57ea commit 670fc9c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

game.gd

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extends Node2D
44
signal shield_changed
55

66
var enemy_count = 0
7-
var stage_count = 0
7+
var stage_count
88
var score: int = 0
99

1010
var music_loop_current = 1
@@ -14,7 +14,7 @@ const FADE_DURATION = 1.0 #s
1414
const LOOP_DURATION = 2.0 #s, every loop has the same length
1515

1616
func _ready():
17-
stage_count = 0
17+
stage_count = -1
1818
next_stage()
1919
if $Sheep.connect("hit", self, "sheep_hit") != OK:
2020
pass
@@ -65,7 +65,14 @@ func next_stage():
6565
yield(get_tree().create_timer(2), "timeout")
6666
$camera/CanvasLayer/readyLabel.visible = false
6767

68-
if stage_count == 1:
68+
if stage_count == 0:
69+
var positions = [100, 200]
70+
for i in range(2):
71+
var e = spawn_enemy("res://wolf/wolf.tscn")
72+
e.shoot_long_interval = 2
73+
e.position.x = Global.PADDING_HORIZONTAL.x + positions[i]
74+
e.set_color_change_timeout(2)
75+
elif stage_count == 1:
6976
var colors = [Global.r, Global.rb, Global.r, Global.rbb]
7077
var positions = [150, 400, 700, 780]
7178
for i in range(4):

global.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const r = Color(4, 1, 1)
1111
const rb = Color(3.5, 1, 3.5)
1212

1313
var useFourColors = true
14-
var useAutoCrits = true
14+
var useAutoCrits = false
1515

1616
const _rrb = Color(4, 1, 2)
1717
const _rbb = Color(2.5, 1, 4.5)

0 commit comments

Comments
 (0)