game.gd cleaning and partial results screen implementation
This commit is contained in:
parent
b126484109
commit
e2b3db0b93
16 changed files with 425 additions and 436 deletions
|
@ -40,7 +40,7 @@ func _physics_process(delta: float) -> void:
|
|||
velocity.y = speed
|
||||
global_position += velocity * delta
|
||||
|
||||
var sector_rect = Rect2(home_sector * Game.resolution, Game.resolution)
|
||||
var sector_rect = Rect2(home_sector * Game.RESOLUTION, Game.RESOLUTION)
|
||||
|
||||
# disable hitbox at edge of screen
|
||||
var global_hitbox_clip = hitbox_clip
|
||||
|
@ -74,7 +74,7 @@ func _physics_process(delta: float) -> void:
|
|||
|
||||
# clip to inside of home sector
|
||||
var rid = get_canvas_item()
|
||||
var rect = Rect2(to_local(home_sector * Game.resolution), Game.resolution)
|
||||
var rect = Rect2(to_local(home_sector * Game.RESOLUTION), Game.RESOLUTION)
|
||||
VisualServer.canvas_item_set_custom_rect(rid, true, rect)
|
||||
VisualServer.canvas_item_set_clip(rid, true)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue