world scene

This commit is contained in:
Nordup 2024-11-27 02:06:27 +04:00
parent c6ba0bfd7d
commit f46e46efd0
9 changed files with 77 additions and 394 deletions

View file

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

View file

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