2022 demo

This commit is contained in:
pennyrigate 2022-12-31 21:47:38 -05:00
parent c60375cb98
commit 4727fb0f55
41 changed files with 761 additions and 68 deletions

View file

@ -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