Gonna invent a scripting language lol

This commit is contained in:
2025-08-30 22:25:50 -05:00
parent 3ccf4ebabb
commit 6d75b33775
4 changed files with 43 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
@tool
class_name PlayerCamera extends Node
const CAMERA_PIXELS_PER_UNIT = 1.0
@@ -8,6 +9,9 @@ const CAMERA_PIXEL_SCALE = 1.0
@export var offset:Vector3 = Vector3(0, 0, 12)
func _process(delta: float) -> void:
if !camera || !target:
return
# I tried a few things but this is most consistent for both backbuffer and
# framebuffer viewports.
var viewportHeight = get_viewport().get_visible_rect().size.y;