mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
world scene
This commit is contained in:
parent
c6ba0bfd7d
commit
f46e46efd0
9 changed files with 77 additions and 394 deletions
|
@ -42,8 +42,9 @@ func _input(_event: InputEvent) -> void:
|
|||
|
||||
|
||||
func get_scaled_mouse_pos(position : Vector2) -> Vector2:
|
||||
position.x *= scale_width
|
||||
position.y *= scale_height
|
||||
#position.x *= scale_width
|
||||
#position.y *= scale_height
|
||||
position.y -= 101
|
||||
return position
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ class_name RenderResult
|
|||
@export var ui_events: UiEvents
|
||||
|
||||
@onready var width: int = get_viewport().size.x
|
||||
@onready var height: int = get_viewport().size.y
|
||||
@onready var height: int = get_viewport().size.y - 101
|
||||
|
||||
var ext_texure: ExternalTexture
|
||||
var texture_rid: RID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue