forked from team-sg/hero-mark-2
2022 demo
This commit is contained in:
parent
c60375cb98
commit
4727fb0f55
41 changed files with 761 additions and 68 deletions
|
@ -16,6 +16,7 @@ func _process(delta):
|
|||
#Scroll screen when player is on different sector
|
||||
current_sector = (player.global_position / resolution).floor()
|
||||
if current_sector != last_sector:
|
||||
Game.respawn_point = player.global_position + Vector2(8,0)
|
||||
if scroll_h: position.x = current_sector.x * resolution.x
|
||||
if scroll_v: position.y = current_sector.y * resolution.y
|
||||
last_sector = current_sector
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue