game.gd cleaning and partial results screen implementation

This commit is contained in:
Haze Weathers 2023-09-10 19:28:42 -04:00
parent b126484109
commit e2b3db0b93
16 changed files with 425 additions and 436 deletions

View file

@ -18,12 +18,12 @@ func _process(delta):
else:
var current_sector = Game.get_sector(player.global_position + Vector2(0.0, 1.0))
if scroll_h && current_sector.x != last_sector.x:
position.x = current_sector.x * Game.resolution.x
position.x = current_sector.x * Game.RESOLUTION.x
if respawn_h:
var offset = Vector2(8.0 * sign(current_sector.x - last_sector.x), 0.0)
Game.respawn_point = player.global_position
last_sector.x = current_sector.x
if scroll_v && current_sector.y != last_sector.y:
position.y = current_sector.y * Game.resolution.y
position.y = current_sector.y * Game.RESOLUTION.y
last_sector.y = current_sector.y
Game.current_sector = last_sector