This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends Camera2D | |
| @export_range(1, 20, 0.01) var maxZoom : float = 10.0 | |
| @export_range(0.01, 1, 0.01) var minZoom : float = 0.1 | |
| @export_range(0.01, 0.2, 0.01) var zoomStepRatio : float = 0.1 | |
| @onready var zoom_scale: float = clamp(zoom.x, minZoom, maxZoom) | |
| func _input(event: InputEvent) -> void: | |
| if Input.is_mouse_button_pressed(MOUSE_BUTTON_MIDDLE) or Input.is_mouse_button_pressed(MOUSE_BUTTON_RIGHT): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Godot; | |
| using System.Collections.Generic; | |
| public enum MovementMode | |
| { | |
| Grounded, | |
| Floating, | |
| } | |
| public partial class AdvancedCharacterBody2D : AnimatableBody2D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System; | |
| using System.Text; | |
| using System.Diagnostics; | |
| using Debug = UnityEngine.Debug; | |
| public static class StackFrameUtility | |
| { | |
| public static void Log(this StackFrame frame, object message = null) | |
| { |