SaveStation, save & load properly
This commit is contained in:
parent
d4acde846c
commit
847670821d
16 changed files with 129 additions and 13 deletions
|
@ -1,11 +1,17 @@
|
|||
extends Camera2D
|
||||
|
||||
var MainInstances = ResourceLoader.MainInstances
|
||||
|
||||
var shake = 0
|
||||
|
||||
onready var timer = $Timer
|
||||
|
||||
func _ready():
|
||||
Events.connect("add_screenshake", self, "_on_Events_add_screenshake")
|
||||
MainInstances.WorldCamera = self
|
||||
|
||||
func _exit_tree():
|
||||
MainInstances.WorldCamera = null
|
||||
|
||||
func _process(delta):
|
||||
offset_h = rand_range(-shake, shake)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue