Skip to content

Commit

Permalink
Adjust wall speed and spawn offset
Browse files Browse the repository at this point in the history
  • Loading branch information
aurora-dot committed Dec 1, 2023
1 parent aa01742 commit a0c7194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tutorial.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ format = 2
layer_0/tile_data = PackedInt32Array(-325996, 524288, 13, -391532, 524288, 12, -458748, 131072, 5, -458747, 131072, 5, -458746, 131072, 5, -458745, 131072, 5, -524283, 524288, 13, -589819, 524288, 13, -655355, 524288, 12, 1901398, 131072, 5, 1901399, 131072, 5, 1901400, 131072, 5, 1901401, 131072, 5, 1901397, 131072, 5, 1835863, 524288, 13, 1770327, 524288, 13, 1704791, 524288, 12, 656699, 131072, 5, 656700, 131072, 5, 591163, 524288, 13, 525627, 524288, 13, 460091, 524288, 12, -260460, 131072, 5, -260459, 131072, 5)

[node name="Player" parent="." instance=ExtResource("2_42jvw")]
position = Vector2(98, -4)
position = Vector2(13705, 567)

[node name="MovingWall" parent="." instance=ExtResource("4_d2odg")]
position = Vector2(2.08165e-12, 520)
Expand Down
4 changes: 2 additions & 2 deletions main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ func _process(delta):
func _physics_process(delta):
if wall_should_move and not $Player.dead:
print("moving")
$MovingWall.position.x += delta * 100
$MovingWall.position.x += delta * 175

if $Player.dead:
wall_should_move = false
#$Camera2D.position = $Player.respawn
$MovingWall.position.x = $Player.respawn.x - 200
$MovingWall.position.x = $Player.respawn.x - 1000
$Timer.start()


Expand Down

0 comments on commit a0c7194

Please sign in to comment.