Convert demos to Godot 4 using regular expressions in a script

This commit is contained in:
Aaron Franke
2022-03-26 05:00:50 -05:00
parent 410d783126
commit bbe50fc9da
1095 changed files with 13628 additions and 13557 deletions

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/kinematic_body_25d.png-c455d5ccb8ec7543b62fff6e803eee7c.stex"
type="StreamTexture2D"
path="res://.godot/imported/kinematic_body_25d.png-c455d5ccb8ec7543b62fff6e803eee7c.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://addons/node25d/icons/kinematic_body_25d.png"
dest_files=[ "res://.import/kinematic_body_25d.png-c455d5ccb8ec7543b62fff6e803eee7c.stex" ]
dest_files=["res://.godot/imported/kinematic_body_25d.png-c455d5ccb8ec7543b62fff6e803eee7c.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/node_25d.png-72e45d8600ccbde01c6d9ad51f5fc530.stex"
type="StreamTexture2D"
path="res://.godot/imported/node_25d.png-72e45d8600ccbde01c6d9ad51f5fc530.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://addons/node25d/icons/node_25d.png"
dest_files=[ "res://.import/node_25d.png-72e45d8600ccbde01c6d9ad51f5fc530.stex" ]
dest_files=["res://.godot/imported/node_25d.png-72e45d8600ccbde01c6d9ad51f5fc530.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/node_25d_icon.png-2ad780313818706789bbb15408797db2.stex"
type="StreamTexture2D"
path="res://.godot/imported/node_25d_icon.png-2ad780313818706789bbb15408797db2.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://addons/node25d/icons/node_25d_icon.png"
dest_files=[ "res://.import/node_25d_icon.png-2ad780313818706789bbb15408797db2.stex" ]
dest_files=["res://.godot/imported/node_25d_icon.png-2ad780313818706789bbb15408797db2.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/shadow_math_25d.png-333790a3285ee4c26792088985815eba.stex"
type="StreamTexture2D"
path="res://.godot/imported/shadow_math_25d.png-333790a3285ee4c26792088985815eba.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://addons/node25d/icons/shadow_math_25d.png"
dest_files=[ "res://.import/shadow_math_25d.png-333790a3285ee4c26792088985815eba.stex" ]
dest_files=["res://.godot/imported/shadow_math_25d.png-333790a3285ee4c26792088985815eba.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/shadow_math_25d_icon.png-f286bd905218b9a04121a430c1fdd042.stex"
type="StreamTexture2D"
path="res://.godot/imported/shadow_math_25d_icon.png-f286bd905218b9a04121a430c1fdd042.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://addons/node25d/icons/shadow_math_25d_icon.png"
dest_files=[ "res://.import/shadow_math_25d_icon.png-f286bd905218b9a04121a430c1fdd042.stex" ]
dest_files=["res://.godot/imported/shadow_math_25d_icon.png-f286bd905218b9a04121a430c1fdd042.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport_25d.svg-5df077fb699779f821141e20086cbf11.stex"
type="StreamTexture2D"
path="res://.godot/imported/viewport_25d.svg-5df077fb699779f821141e20086cbf11.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://addons/node25d/icons/viewport_25d.svg"
dest_files=[ "res://.import/viewport_25d.svg-5df077fb699779f821141e20086cbf11.stex" ]
dest_files=["res://.godot/imported/viewport_25d.svg-5df077fb699779f821141e20086cbf11.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/y_sort_25d.png-2e15f3765afd8b0136201cb9dea4049b.stex"
type="StreamTexture2D"
path="res://.godot/imported/y_sort_25d.png-2e15f3765afd8b0136201cb9dea4049b.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://addons/node25d/icons/y_sort_25d.png"
dest_files=[ "res://.import/y_sort_25d.png-2e15f3765afd8b0136201cb9dea4049b.stex" ]
dest_files=["res://.godot/imported/y_sort_25d.png-2e15f3765afd8b0136201cb9dea4049b.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/y_sort_25d_icon.png-48050bfa8b299992a68b4f1e12bd5d44.stex"
type="StreamTexture2D"
path="res://.godot/imported/y_sort_25d_icon.png-48050bfa8b299992a68b4f1e12bd5d44.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://addons/node25d/icons/y_sort_25d_icon.png"
dest_files=[ "res://.import/y_sort_25d_icon.png-48050bfa8b299992a68b4f1e12bd5d44.stex" ]
dest_files=["res://.godot/imported/y_sort_25d_icon.png-48050bfa8b299992a68b4f1e12bd5d44.stex"]
[params]

View File

@@ -1,4 +1,4 @@
tool
@tool
extends Node2D
# Not pixel perfect for all axes in all modes, but works well enough.
@@ -19,8 +19,8 @@ var _start_position = Vector2()
# Stores state of closest or currently used axis.
var dominant_axis
onready var lines_root = $Lines
onready var lines = [$Lines/X, $Lines/Y, $Lines/Z]
@onready var lines_root = $Lines
@onready var lines = [$Lines/X, $Lines/Y, $Lines/Z]
func _process(_delta):
if not lines:

View File

@@ -8,16 +8,16 @@ script = ExtResource( 1 )
[node name="Lines" type="Node2D" parent="."]
[node name="X" type="Line2D" parent="Lines"]
modulate = Color( 1, 1, 1, 0.8 )
points = PoolVector2Array( 0, 0, 100, 0 )
default_color = Color( 0.91, 0.273, 0, 1 )
modulate = Color(1, 1, 1, 0.8)
points = PackedVector2Array(0, 0, 100, 0)
default_color = Color(0.91, 0.273, 0, 1)
[node name="Y" type="Line2D" parent="Lines"]
modulate = Color( 1, 1, 1, 0.8 )
points = PoolVector2Array( 0, 0, 0, -100 )
default_color = Color( 0, 0.91, 0.273, 1 )
modulate = Color(1, 1, 1, 0.8)
points = PackedVector2Array(0, 0, 0, -100)
default_color = Color(0, 0.91, 0.273, 1)
[node name="Z" type="Line2D" parent="Lines"]
modulate = Color( 1, 1, 1, 0.8 )
points = PoolVector2Array( 0, 0, 0, 100 )
default_color = Color( 0.3, 0, 1, 1 )
modulate = Color(1, 1, 1, 0.8)
points = PackedVector2Array(0, 0, 0, 100)
default_color = Color(0.3, 0, 1, 1)

View File

@@ -19,19 +19,19 @@ __meta__ = {
}
[node name="TopBar" type="HBoxContainer" parent="."]
margin_right = 1600.0
margin_bottom = 32.0
rect_min_size = Vector2( 0, 32 )
offset_right = 1600.0
offset_bottom = 32.0
rect_min_size = Vector2(0, 32)
size_flags_horizontal = 3
[node name="ViewModeButtons" type="HBoxContainer" parent="TopBar"]
margin_right = 798.0
margin_bottom = 32.0
offset_right = 798.0
offset_bottom = 32.0
size_flags_horizontal = 3
[node name="45Degree" type="CheckBox" parent="TopBar/ViewModeButtons"]
margin_right = 94.0
margin_bottom = 32.0
offset_right = 94.0
offset_bottom = 32.0
pressed = true
group = ExtResource( 2 )
text = "45 Degree"
@@ -40,9 +40,9 @@ __meta__ = {
}
[node name="Isometric" type="CheckBox" parent="TopBar/ViewModeButtons"]
margin_left = 98.0
margin_right = 188.0
margin_bottom = 32.0
offset_left = 98.0
offset_right = 188.0
offset_bottom = 32.0
group = ExtResource( 2 )
text = "Isometric"
__meta__ = {
@@ -50,9 +50,9 @@ __meta__ = {
}
[node name="TopDown" type="CheckBox" parent="TopBar/ViewModeButtons"]
margin_left = 192.0
margin_right = 283.0
margin_bottom = 32.0
offset_left = 192.0
offset_right = 283.0
offset_bottom = 32.0
group = ExtResource( 2 )
text = "Top Down"
__meta__ = {
@@ -60,9 +60,9 @@ __meta__ = {
}
[node name="FrontSide" type="CheckBox" parent="TopBar/ViewModeButtons"]
margin_left = 287.0
margin_right = 379.0
margin_bottom = 32.0
offset_left = 287.0
offset_right = 379.0
offset_bottom = 32.0
group = ExtResource( 2 )
text = "Front Side"
__meta__ = {
@@ -70,9 +70,9 @@ __meta__ = {
}
[node name="ObliqueY" type="CheckBox" parent="TopBar/ViewModeButtons"]
margin_left = 383.0
margin_right = 473.0
margin_bottom = 32.0
offset_left = 383.0
offset_right = 473.0
offset_bottom = 32.0
group = ExtResource( 2 )
text = "Oblique Y"
__meta__ = {
@@ -80,9 +80,9 @@ __meta__ = {
}
[node name="ObliqueZ" type="CheckBox" parent="TopBar/ViewModeButtons"]
margin_left = 477.0
margin_right = 568.0
margin_bottom = 32.0
offset_left = 477.0
offset_right = 568.0
offset_bottom = 32.0
group = ExtResource( 2 )
text = "Oblique Z"
__meta__ = {
@@ -90,31 +90,31 @@ __meta__ = {
}
[node name="Zoom" type="HBoxContainer" parent="TopBar"]
margin_left = 802.0
margin_right = 1600.0
margin_bottom = 32.0
offset_left = 802.0
offset_right = 1600.0
offset_bottom = 32.0
size_flags_horizontal = 3
alignment = 2
[node name="ZoomOut" type="Button" parent="TopBar/Zoom"]
margin_left = 680.0
margin_right = 710.0
margin_bottom = 32.0
rect_min_size = Vector2( 30, 0 )
offset_left = 680.0
offset_right = 710.0
offset_bottom = 32.0
rect_min_size = Vector2(30, 0)
text = "-"
[node name="ZoomPercent" type="Label" parent="TopBar/Zoom"]
margin_left = 714.0
margin_top = 9.0
margin_right = 764.0
margin_bottom = 23.0
rect_min_size = Vector2( 50, 0 )
offset_left = 714.0
offset_top = 9.0
offset_right = 764.0
offset_bottom = 23.0
rect_min_size = Vector2(50, 0)
text = "100%"
align = 1
clip_text = true
[node name="ZoomReset" type="Button" parent="TopBar/Zoom/ZoomPercent"]
modulate = Color( 1, 1, 1, 0 )
modulate = Color(1, 1, 1, 0)
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
@@ -122,31 +122,31 @@ __meta__ = {
}
[node name="ZoomIn" type="Button" parent="TopBar/Zoom"]
margin_left = 768.0
margin_right = 798.0
margin_bottom = 32.0
rect_min_size = Vector2( 30, 0 )
offset_left = 768.0
offset_right = 798.0
offset_bottom = 32.0
rect_min_size = Vector2(30, 0)
text = "+"
[node name="Viewport25D" type="ColorRect" parent="."]
margin_top = 36.0
margin_right = 1600.0
margin_bottom = 900.0
offset_top = 36.0
offset_right = 1600.0
offset_bottom = 900.0
rect_clip_content = true
size_flags_horizontal = 3
size_flags_vertical = 3
color = Color( 0.301961, 0.301961, 0.301961, 1 )
color = Color(0.301961, 0.301961, 0.301961, 1)
script = ExtResource( 1 )
[node name="Viewport2D" type="Viewport" parent="Viewport25D"]
size = Vector2( 1600, 864 )
[node name="Viewport2D" type="SubViewport" parent="Viewport25D"]
size = Vector2(1600, 864)
transparent_bg = true
disable_3d = true
usage = 1
render_target_v_flip = true
[node name="ViewportOverlay" type="Viewport" parent="Viewport25D"]
size = Vector2( 1600, 864 )
[node name="ViewportOverlay" type="SubViewport" parent="Viewport25D"]
size = Vector2(1600, 864)
transparent_bg = true
disable_3d = true
usage = 1

View File

@@ -1,4 +1,4 @@
tool
@tool
extends Control
var zoom_level := 0
@@ -10,16 +10,16 @@ var view_mode_index := 0
var editor_interface: EditorInterface # Set in node25d_plugin.gd
var moving = false
onready var viewport_2d = $Viewport2D
onready var viewport_overlay = $ViewportOverlay
onready var view_mode_button_group: ButtonGroup = $"../TopBar/ViewModeButtons/45Degree".group
onready var zoom_label: Label = $"../TopBar/Zoom/ZoomPercent"
onready var gizmo_25d_scene = preload("res://addons/node25d/main_screen/gizmo_25d.tscn")
@onready var viewport_2d = $Viewport2D
@onready var viewport_overlay = $ViewportOverlay
@onready var view_mode_button_group: ButtonGroup = $"../TopBar/ViewModeButtons/45Degree".group
@onready var zoom_label: Label = $"../TopBar/Zoom/ZoomPercent"
@onready var gizmo_25d_scene = preload("res://addons/node25d/main_screen/gizmo_25d.tscn")
func _ready():
# Give Godot a chance to fully load the scene. Should take two frames.
yield(get_tree(), "idle_frame")
yield(get_tree(), "idle_frame")
await get_tree().process_frame
await get_tree().process_frame
var edited_scene_root = get_tree().edited_scene_root
if not edited_scene_root:
# Godot hasn't finished loading yet, so try loading the plugin again.
@@ -46,17 +46,17 @@ func _process(delta):
_recursive_change_view_mode(get_tree().edited_scene_root)
# Zooming.
if Input.is_mouse_button_pressed(BUTTON_WHEEL_UP):
if Input.is_mouse_button_pressed(MOUSE_BUTTON_WHEEL_UP):
zoom_level += 1
elif Input.is_mouse_button_pressed(BUTTON_WHEEL_DOWN):
elif Input.is_mouse_button_pressed(MOUSE_BUTTON_WHEEL_DOWN):
zoom_level -= 1
var zoom = _get_zoom_amount()
# Viewport size.
# SubViewport size.
var size = get_global_rect().size
viewport_2d.size = size
# Viewport transform.
# SubViewport transform.
var viewport_trans = Transform2D.IDENTITY
viewport_trans.x *= zoom
viewport_trans.y *= zoom
@@ -83,7 +83,7 @@ func _process(delta):
if selected == overlay_child.node_25d:
new = false
if new:
var gizmo = gizmo_25d_scene.instance()
var gizmo = gizmo_25d_scene.instantiate()
viewport_overlay.add_child(gizmo)
gizmo.node_25d = selected
gizmo.initialize()
@@ -93,25 +93,25 @@ func _process(delta):
func _gui_input(event):
if event is InputEventMouseButton:
if event.is_pressed():
if event.button_index == BUTTON_WHEEL_UP:
if event.button_index == MOUSE_BUTTON_WHEEL_UP:
zoom_level += 1
accept_event()
elif event.button_index == BUTTON_WHEEL_DOWN:
elif event.button_index == MOUSE_BUTTON_WHEEL_DOWN:
zoom_level -= 1
accept_event()
elif event.button_index == BUTTON_MIDDLE:
elif event.button_index == MOUSE_BUTTON_MIDDLE:
is_panning = true
pan_center = viewport_center - event.position
accept_event()
elif event.button_index == BUTTON_LEFT:
elif event.button_index == MOUSE_BUTTON_LEFT:
var overlay_children = viewport_overlay.get_children()
for overlay_child in overlay_children:
overlay_child.wants_to_move = true
accept_event()
elif event.button_index == BUTTON_MIDDLE:
elif event.button_index == MOUSE_BUTTON_MIDDLE:
is_panning = false
accept_event()
elif event.button_index == BUTTON_LEFT:
elif event.button_index == MOUSE_BUTTON_LEFT:
var overlay_children = viewport_overlay.get_children()
for overlay_child in overlay_children:
overlay_child.wants_to_move = false

View File

@@ -1,4 +1,4 @@
tool
@tool
extends EditorPlugin
const MainPanel = preload("res://addons/node25d/main_screen/main_screen_25d.tscn")
@@ -6,7 +6,7 @@ const MainPanel = preload("res://addons/node25d/main_screen/main_screen_25d.tscn
var main_panel_instance
func _enter_tree():
main_panel_instance = MainPanel.instance()
main_panel_instance = MainPanel.instantiate()
main_panel_instance.get_child(1).editor_interface = get_editor_interface()
# Add the main panel to the editor's main viewport.
@@ -17,7 +17,7 @@ func _enter_tree():
# When this plugin node enters tree, add the custom types.
add_custom_type("Node25D", "Node2D", preload("node_25d.gd"), preload("icons/node_25d_icon.png"))
add_custom_type("YSort25D", "Node", preload("y_sort_25d.gd"), preload("icons/y_sort_25d_icon.png"))
add_custom_type("ShadowMath25D", "KinematicBody", preload("shadow_math_25d.gd"), preload("icons/shadow_math_25d_icon.png"))
add_custom_type("ShadowMath25D", "CharacterBody3D", preload("shadow_math_25d.gd"), preload("icons/shadow_math_25d_icon.png"))
func _exit_tree():

View File

@@ -1,6 +1,6 @@
# This node converts a 3D position to 2D using a 2.5D transformation matrix.
# The transformation of its 2D form is controlled by its 3D child.
tool
@tool
extends Node2D
class_name Node25D, "res://addons/node25d/icons/node_25d_icon.png"
@@ -8,7 +8,13 @@ class_name Node25D, "res://addons/node25d/icons/node_25d_icon.png"
const SCALE = 32
# Exported spatial position for editor usage.
export(Vector3) var spatial_position setget set_spatial_position, get_spatial_position
@export var spatial_position: Vector3:
get:
# TODO: Manually copy the code from this method.
return get_spatial_position()
set(value):
# TODO: Manually copy the code from this method.
set_spatial_position(value)
# GDScript throws errors when Basis25D is its own structure.
# There is a broken implementation in a hidden folder.
@@ -20,7 +26,7 @@ var _basisZ: Vector2
# Cache the spatial stuff for internal use.
var _spatial_position: Vector3
var _spatial_node: Spatial
var _spatial_node: Node3D
# These are separated in case anyone wishes to easily extend Node25D.
@@ -46,7 +52,7 @@ func Node25D_process():
_check_view_mode()
if _spatial_node == null:
return
_spatial_position = _spatial_node.translation
_spatial_position = _spatial_node.position
var flat_pos = _spatial_position.x * _basisX
flat_pos += _spatial_position.y * _basisY
@@ -62,13 +68,13 @@ func get_basis():
func get_spatial_position():
if not _spatial_node:
_spatial_node = get_child(0)
return _spatial_node.translation
return _spatial_node.position
func set_spatial_position(value):
_spatial_position = value
if _spatial_node:
_spatial_node.translation = value
_spatial_node.position = value
elif get_child_count() > 0:
_spatial_node = get_child(0)

View File

@@ -1,19 +1,19 @@
# Adds a simple shadow below an object.
# Place this ShadowMath25D node as a child of a Shadow25D, which
# is below the target object in the scene tree (not as a child).
tool
extends KinematicBody
@tool
extends CharacterBody3D
class_name ShadowMath25D, "res://addons/node25d/icons/shadow_math_25d_icon.png"
# The maximum distance below objects that shadows will appear (in 3D units).
var shadow_length = 1000.0
var _shadow_root: Node25D
var _target_math: Spatial
var _target_math: Node3D
func _ready():
_shadow_root = get_parent()
var index = _shadow_root.get_position_in_parent()
var index = _shadow_root.get_index()
if (index > 0): # Else, Shadow is not in a valid place.
_target_math = _shadow_root.get_parent().get_child(index - 1).get_child(0)
@@ -24,7 +24,7 @@ func _process(_delta):
_shadow_root.visible = false
return # Shadow is not in a valid place or you're viewing the Shadow25D scene.
translation = _target_math.translation
position = _target_math.position
var k = move_and_collide(Vector3.DOWN * shadow_length)
if k == null:
_shadow_root.visible = false

View File

@@ -2,12 +2,12 @@
# This is different from the C# version of this project
# because the execution order is different and otherwise
# sorting is delayed by one frame.
tool
extends Node # Note: NOT Node2D, Node25D, or YSort
@tool
extends Node # Note: NOT Node2D, Node25D, or Node2D
class_name YSort25D, "res://addons/node25d/icons/y_sort_25d_icon.png"
# Whether or not to automatically call sort() in _process().
export(bool) var sort_enabled := true
@export var sort_enabled := true
var _parent_node: Node2D # NOT Node25D
@@ -36,7 +36,7 @@ func sort():
for n in parent_children:
if n.get_class() == "Node2D":
node25d_nodes.append(n)
node25d_nodes.sort_custom(Node25D, "y_sort_slight_xz")
node25d_nodes.sort_custom(Callable(Node25D, &"y_sort_slight_xz"))
var z_index = -4000
for i in range(0, node25d_nodes.size()):

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://addons/node25d/icons/y_sort_25d_icon.png" type="Texture" id=1]
[ext_resource path="res://addons/node25d/icons/y_sort_25d_icon.png" type="Texture2D" id=1]
[ext_resource path="res://assets/ui/overlay_cube.tscn" type="PackedScene" id=2]
[ext_resource path="res://assets/cube/cube_math.gd" type="Script" id=3]
[ext_resource path="res://addons/node25d/y_sort_25d.gd" type="Script" id=4]
@@ -12,7 +12,7 @@
[node name="Camera2D" type="Camera2D" parent="."]
current = true
[node name="CubeMath" type="Spatial" parent="."]
[node name="CubeMath" type="Node3D" parent="."]
script = ExtResource( 3 )
[node name="YSort25D" type="Node" parent="."]

View File

@@ -1,8 +1,8 @@
extends Spatial
extends Node3D
onready var _cube_point_scene: PackedScene = preload("res://assets/cube/cube_point.tscn")
@onready var _cube_point_scene: PackedScene = preload("res://assets/cube/cube_point.tscn")
onready var _parent = get_parent()
@onready var _parent = get_parent()
var _is_parent_ready := false
var _cube_points_math = []
var _cube_math_spatials = []
@@ -17,8 +17,8 @@ func _ready():
var b: int = (i / 3) % 3 - 1
var c: int = (i % 3) - 1
var spatial_position: Vector3 = 5 * (a * Vector3.RIGHT + b * Vector3.UP + c * Vector3.BACK)
_cube_math_spatials.append(Spatial.new())
_cube_math_spatials[i].translation = spatial_position
_cube_math_spatials.append(Node3D.new())
_cube_math_spatials[i].position = spatial_position
_cube_math_spatials[i].name = "CubeMath #" + str(i) + ", " + str(a) + " " + str(b) + " " + str(c)
add_child(_cube_math_spatials[i])
@@ -34,18 +34,18 @@ func _process(delta):
if _is_parent_ready:
if Input.is_action_just_pressed("reset_position"):
transform = Transform.IDENTITY
transform = Transform3D.IDENTITY
else:
rotate_x(delta * (Input.get_action_strength("move_back") - Input.get_action_strength("move_forward")))
rotate_y(delta * (Input.get_action_strength("move_right") - Input.get_action_strength("move_left")))
rotate_z(delta * (Input.get_action_strength("move_counterclockwise") - Input.get_action_strength("move_clockwise")))
rotate_x(delta * (Input.get_axis(&"move_forward", &"move_back")))
rotate_y(delta * (Input.get_axis(&"move_left", &"move_right")))
rotate_z(delta * (Input.get_axis(&"move_clockwise", &"move_counterclockwise")))
for i in range(27):
_cube_points_math[i].global_transform = _cube_math_spatials[i].global_transform
else:
# This code block will be run only once. It's not in _ready() because the parent isn't set up there.
for i in range(27):
var my_cube_point_scene = _cube_point_scene.duplicate(true)
var cube_point = my_cube_point_scene.instance()
var cube_point = my_cube_point_scene.instantiate()
cube_point.name = "CubePoint #" + str(i)
_cube_points_math.append(cube_point.get_child(0))
_parent.add_child(cube_point)

View File

@@ -1,8 +1,8 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://addons/node25d/node_25d.gd" type="Script" id=1]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture" id=2]
[ext_resource path="res://assets/cube/godot.png" type="Texture" id=3]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture2D" id=2]
[ext_resource path="res://assets/cube/godot.png" type="Texture2D" id=3]
[node name="CubePoint" type="Node2D"]
script = ExtResource( 1 )
@@ -10,7 +10,7 @@ __meta__ = {
"_editor_icon": ExtResource( 2 )
}
[node name="CubePointMath" type="Spatial" parent="."]
[node name="CubePointMath" type="Node3D" parent="."]
[node name="CubePointSprite" type="Sprite" parent="."]
[node name="CubePointSprite" type="Sprite2D" parent="."]
texture = ExtResource( 3 )

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/godot.png-a942b208c71d1b44958f34d302d011ec.stex"
type="StreamTexture2D"
path="res://.godot/imported/godot.png-a942b208c71d1b44958f34d302d011ec.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/cube/godot.png"
dest_files=[ "res://.import/godot.png-a942b208c71d1b44958f34d302d011ec.stex" ]
dest_files=["res://.godot/imported/godot.png-a942b208c71d1b44958f34d302d011ec.stex"]
[params]

View File

@@ -4,608 +4,608 @@
[ext_resource path="res://assets/player/player_25d.tscn" type="PackedScene" id=2]
[ext_resource path="res://assets/shadow/shadow_25d.tscn" type="PackedScene" id=3]
[ext_resource path="res://addons/node25d/node_25d.gd" type="Script" id=4]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture" id=5]
[ext_resource path="res://assets/platform/textures/forty_five.png" type="Texture" id=6]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture2D" id=5]
[ext_resource path="res://assets/platform/textures/forty_five.png" type="Texture2D" id=6]
[ext_resource path="res://assets/platform/platform_sprite.gd" type="Script" id=7]
[ext_resource path="res://addons/node25d/y_sort_25d.gd" type="Script" id=8]
[ext_resource path="res://addons/node25d/icons/y_sort_25d_icon.png" type="Texture" id=9]
[ext_resource path="res://addons/node25d/icons/y_sort_25d_icon.png" type="Texture2D" id=9]
[ext_resource path="res://assets/mr_mrs_robot.ogg" type="AudioStream" id=10]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 5, 0.5, 5 )
[sub_resource type="BoxShape3D" id=1]
extents = Vector3(5, 0.5, 5)
[sub_resource type="BoxShape" id=2]
extents = Vector3( 5, 0.5, 5 )
[sub_resource type="BoxShape3D" id=2]
extents = Vector3(5, 0.5, 5)
[sub_resource type="BoxShape" id=3]
extents = Vector3( 5, 0.5, 5 )
[sub_resource type="BoxShape3D" id=3]
extents = Vector3(5, 0.5, 5)
[node name="DemoScene" type="Node2D"]
[node name="Overlay" parent="." instance=ExtResource( 1 )]
[node name="Player25D" parent="." instance=ExtResource( 2 )]
position = Vector2( 0, -226.274 )
position = Vector2(0, -226.274)
z_index = -3952
[node name="Shadow25D" parent="." instance=ExtResource( 3 )]
visible = true
position = Vector2( 0, 11.2685 )
position = Vector2(0, 11.2685)
z_index = -3958
spatial_position = Vector3( 0, -0.498, 0 )
spatial_position = Vector3(0, -0.498, 0)
[node name="Platform0" type="Node2D" parent="."]
position = Vector2( -256, -113.137 )
position = Vector2(-256, -113.137)
z_index = -3954
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( -8, 5, 0 )
spatial_position = Vector3(-8, 5, 0)
[node name="PlatformMath" type="StaticBody" parent="Platform0"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -8, 5, 0 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8, 5, 0)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform0/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform0/PlatformMath"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform0"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform0"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform1" type="Node2D" parent="."]
position = Vector2( -256, -339.411 )
position = Vector2(-256, -339.411)
z_index = -3956
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( -8, 5, -10 )
spatial_position = Vector3(-8, 5, -10)
[node name="PlatformMath" type="StaticBody" parent="Platform1"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -8, 5, -10 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform1"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8, 5, -10)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform1/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform1/PlatformMath"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform1"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform1"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform2" type="Node2D" parent="."]
position = Vector2( 0, 22.6274 )
position = Vector2(0, 22.6274)
z_index = -3962
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 0, -1, 0 )
spatial_position = Vector3(0, -1, 0)
[node name="PlatformMath" type="StaticBody" parent="Platform2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform2/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform2/PlatformMath"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform2"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform2"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform3" type="Node2D" parent="."]
position = Vector2( 320, 22.6274 )
position = Vector2(320, 22.6274)
z_index = -3960
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 10, -1, 0 )
spatial_position = Vector3(10, -1, 0)
[node name="PlatformMath" type="StaticBody" parent="Platform3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -1, 0 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform3"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -1, 0)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform3/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform3/PlatformMath"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform3"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform3"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform4" type="Node2D" parent="."]
position = Vector2( 0, -203.647 )
position = Vector2(0, -203.647)
z_index = -3966
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 0, -1, -10 )
spatial_position = Vector3(0, -1, -10)
[node name="PlatformMath" type="StaticBody" parent="Platform4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, -10 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform4"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, -10)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform4/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform4/PlatformMath"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform4"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform4"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform5" type="Node2D" parent="."]
position = Vector2( 320, -113.137 )
position = Vector2(320, -113.137)
z_index = -3984
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 10, -5, -10 )
spatial_position = Vector3(10, -5, -10)
[node name="PlatformMath" type="StaticBody" parent="Platform5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, -10 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform5"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, -10)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform5/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform5/PlatformMath"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform5"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform5"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform6" type="Node2D" parent="."]
position = Vector2( 320, 113.137 )
position = Vector2(320, 113.137)
z_index = -3982
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 10, -5, 0 )
spatial_position = Vector3(10, -5, 0)
[node name="PlatformMath" type="StaticBody" parent="Platform6"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 0 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform6"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 0)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform6/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform6/PlatformMath"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform6"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform6"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform7" type="Node2D" parent="."]
position = Vector2( 320, 339.411 )
position = Vector2(320, 339.411)
z_index = -3978
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 10, -5, 10 )
spatial_position = Vector3(10, -5, 10)
[node name="PlatformMath" type="StaticBody" parent="Platform7"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 10 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform7"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 10)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform7/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform7/PlatformMath"]
shape = SubResource( 2 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform7"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform7"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform20" type="Node2D" parent="."]
position = Vector2( 320, 565.685 )
position = Vector2(320, 565.685)
z_index = -3976
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 10, -5, 20 )
spatial_position = Vector3(10, -5, 20)
[node name="PlatformMath" type="StaticBody" parent="Platform20"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 20 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform20"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 20)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform20/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform20/PlatformMath"]
shape = SubResource( 2 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform20"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform20"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform21" type="Node2D" parent="."]
position = Vector2( 320, 791.96 )
position = Vector2(320, 791.96)
z_index = -3972
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 10, -5, 30 )
spatial_position = Vector3(10, -5, 30)
[node name="PlatformMath" type="StaticBody" parent="Platform21"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 30 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform21"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 30)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform21/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform21/PlatformMath"]
shape = SubResource( 2 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform21"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform21"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform22" type="Node2D" parent="."]
position = Vector2( 320, 1018.23 )
position = Vector2(320, 1018.23)
z_index = -3970
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 10, -5, 40 )
spatial_position = Vector3(10, -5, 40)
[node name="PlatformMath" type="StaticBody" parent="Platform22"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 40 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform22"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, -5, 40)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform22/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform22/PlatformMath"]
shape = SubResource( 2 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform22"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform22"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform9" type="Node2D" parent="."]
position = Vector2( 640, 339.411 )
position = Vector2(640, 339.411)
z_index = -3974
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 20, -5, 10 )
spatial_position = Vector3(20, -5, 10)
[node name="PlatformMath" type="StaticBody" parent="Platform9"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 20, -5, 10 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform9"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 20, -5, 10)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform9/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform9/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform9"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform9"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform10" type="Node2D" parent="."]
position = Vector2( 896, 294.156 )
position = Vector2(896, 294.156)
z_index = -3994
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 28, -10, 3 )
spatial_position = Vector3(28, -10, 3)
[node name="PlatformMath" type="StaticBody" parent="Platform10"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 28, -10, 3 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform10"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 28, -10, 3)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform10/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform10/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform10"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform10"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform11" type="Node2D" parent="."]
position = Vector2( 896, 520.431 )
position = Vector2(896, 520.431)
z_index = -3992
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 28, -10, 13 )
spatial_position = Vector3(28, -10, 13)
[node name="PlatformMath" type="StaticBody" parent="Platform11"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 28, -10, 13 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform11"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 28, -10, 13)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform11/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform11/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform11"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform11"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform12" type="Node2D" parent="."]
position = Vector2( 896, 746.705 )
position = Vector2(896, 746.705)
z_index = -3988
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 28, -10, 23 )
spatial_position = Vector3(28, -10, 23)
[node name="PlatformMath" type="StaticBody" parent="Platform12"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 28, -10, 23 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform12"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 28, -10, 23)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform12/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform12/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform12"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform12"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform13" type="Node2D" parent="."]
position = Vector2( 576, 746.705 )
position = Vector2(576, 746.705)
z_index = -3990
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 18, -10, 23 )
spatial_position = Vector3(18, -10, 23)
[node name="PlatformMath" type="StaticBody" parent="Platform13"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 18, -10, 23 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform13"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18, -10, 23)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform13/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform13/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform13"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform13"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform14" type="Node2D" parent="."]
position = Vector2( 256, 746.705 )
position = Vector2(256, 746.705)
z_index = -3996
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( 8, -10, 23 )
spatial_position = Vector3(8, -10, 23)
[node name="PlatformMath" type="StaticBody" parent="Platform14"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, -10, 23 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform14"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, -10, 23)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform14/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform14/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform14"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform14"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform15" type="Node2D" parent="."]
position = Vector2( -64, 746.705 )
position = Vector2(-64, 746.705)
z_index = -3998
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( -2, -10, 23 )
spatial_position = Vector3(-2, -10, 23)
[node name="PlatformMath" type="StaticBody" parent="Platform15"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -2, -10, 23 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform15"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, -10, 23)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform15/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform15/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform15"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform15"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform23" type="Node2D" parent="."]
position = Vector2( -384, 746.705 )
position = Vector2(-384, 746.705)
z_index = -4000
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( -12, -10, 23 )
spatial_position = Vector3(-12, -10, 23)
[node name="PlatformMath" type="StaticBody" parent="Platform23"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -12, -10, 23 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform23"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -12, -10, 23)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform23/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform23/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform23"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform23"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform16" type="Node2D" parent="."]
position = Vector2( -320, 565.685 )
position = Vector2(-320, 565.685)
z_index = -3980
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( -10, -5, 20 )
spatial_position = Vector3(-10, -5, 20)
[node name="PlatformMath" type="StaticBody" parent="Platform16"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10, -5, 20 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform16"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, -5, 20)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform16/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform16/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform16"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform16"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform19" type="Node2D" parent="."]
position = Vector2( -320, 339.411 )
position = Vector2(-320, 339.411)
z_index = -3986
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( -10, -5, 10 )
spatial_position = Vector3(-10, -5, 10)
[node name="PlatformMath" type="StaticBody" parent="Platform19"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10, -5, 10 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform19"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, -5, 10)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform19/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform19/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform19"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform19"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform17" type="Node2D" parent="."]
position = Vector2( -480, 248.902 )
position = Vector2(-480, 248.902)
z_index = -3964
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( -15, -1, 10 )
spatial_position = Vector3(-15, -1, 10)
[node name="PlatformMath" type="StaticBody" parent="Platform17"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -15, -1, 10 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform17"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15, -1, 10)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform17/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform17/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform17"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform17"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )
[node name="Platform18" type="Node2D" parent="."]
position = Vector2( -480, 22.6274 )
position = Vector2(-480, 22.6274)
z_index = -3968
script = ExtResource( 4 )
__meta__ = {
"_editor_icon": ExtResource( 5 )
}
spatial_position = Vector3( -15, -1, 0 )
spatial_position = Vector3(-15, -1, 0)
[node name="PlatformMath" type="StaticBody" parent="Platform18"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -15, -1, 0 )
[node name="PlatformMath" type="StaticBody3D" parent="Platform18"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15, -1, 0)
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="Platform18/PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Platform18/PlatformMath"]
shape = SubResource( 3 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="Platform18"]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="Platform18"]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 6 )
script = ExtResource( 7 )

View File

@@ -2,12 +2,12 @@
importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/mr_mrs_robot.ogg-04d8a930124c76b878f30fed4f47903c.oggstr"
path="res://.godot/imported/mr_mrs_robot.ogg-04d8a930124c76b878f30fed4f47903c.oggstr"
[deps]
source_file="res://assets/mr_mrs_robot.ogg"
dest_files=[ "res://.import/mr_mrs_robot.ogg-04d8a930124c76b878f30fed4f47903c.oggstr" ]
dest_files=["res://.godot/imported/mr_mrs_robot.ogg-04d8a930124c76b878f30fed4f47903c.oggstr"]
[params]

View File

@@ -1,12 +1,12 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://addons/node25d/node_25d.gd" type="Script" id=1]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture" id=2]
[ext_resource path="res://assets/platform/textures/forty_five.png" type="Texture" id=3]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture2D" id=2]
[ext_resource path="res://assets/platform/textures/forty_five.png" type="Texture2D" id=3]
[ext_resource path="res://assets/platform/platform_sprite.gd" type="Script" id=4]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 5, 0.5, 5 )
[sub_resource type="BoxShape3D" id=1]
extents = Vector3(5, 0.5, 5)
[node name="Platform" type="Node2D"]
z_index = -3996
@@ -15,17 +15,17 @@ __meta__ = {
"_editor_icon": ExtResource( 2 )
}
[node name="PlatformMath" type="StaticBody" parent="."]
[node name="PlatformMath" type="StaticBody3D" parent="."]
collision_layer = 1048575
collision_mask = 1048575
[node name="CollisionShape" type="CollisionShape" parent="PlatformMath"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="PlatformMath"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlatformSprite" type="Sprite" parent="."]
scale = Vector2( 0.5, 0.5 )
[node name="PlatformSprite" type="Sprite2D" parent="."]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 3 )
script = ExtResource( 4 )

View File

@@ -1,12 +1,12 @@
tool
extends Sprite
@tool
extends Sprite2D
onready var _forty_five = preload("res://assets/platform/textures/forty_five.png")
onready var _isometric = preload("res://assets/platform/textures/isometric.png")
onready var _top_down = preload("res://assets/platform/textures/top_down.png")
onready var _front_side = preload("res://assets/platform/textures/front_side.png")
onready var _oblique_y = preload("res://assets/platform/textures/oblique_y.png")
onready var _oblique_z = preload("res://assets/platform/textures/oblique_z.png")
@onready var _forty_five = preload("res://assets/platform/textures/forty_five.png")
@onready var _isometric = preload("res://assets/platform/textures/isometric.png")
@onready var _top_down = preload("res://assets/platform/textures/top_down.png")
@onready var _front_side = preload("res://assets/platform/textures/front_side.png")
@onready var _oblique_y = preload("res://assets/platform/textures/oblique_y.png")
@onready var _oblique_z = preload("res://assets/platform/textures/oblique_z.png")
func _process(_delta):
if not Engine.editor_hint:

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/forty_five.png-d90cd8ed1241c4a5270d87a83aafe24d.stex"
type="StreamTexture2D"
path="res://.godot/imported/forty_five.png-d90cd8ed1241c4a5270d87a83aafe24d.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/platform/textures/forty_five.png"
dest_files=[ "res://.import/forty_five.png-d90cd8ed1241c4a5270d87a83aafe24d.stex" ]
dest_files=["res://.godot/imported/forty_five.png-d90cd8ed1241c4a5270d87a83aafe24d.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/fortyfive.png-ed5c66b01afe0b53153c3d09ee5b6584.stex"
type="StreamTexture2D"
path="res://.godot/imported/fortyfive.png-ed5c66b01afe0b53153c3d09ee5b6584.stex"
metadata={
"vram_texture": false
}
@@ -10,25 +10,25 @@ metadata={
[deps]
source_file="res://assets/platform/textures/fortyfive.png"
dest_files=[ "res://.import/fortyfive.png-ed5c66b01afe0b53153c3d09ee5b6584.stex" ]
dest_files=["res://.godot/imported/fortyfive.png-ed5c66b01afe0b53153c3d09ee5b6584.stex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/front_side.png-057b43bb7270572907c729580068368b.stex"
type="StreamTexture2D"
path="res://.godot/imported/front_side.png-057b43bb7270572907c729580068368b.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/platform/textures/front_side.png"
dest_files=[ "res://.import/front_side.png-057b43bb7270572907c729580068368b.stex" ]
dest_files=["res://.godot/imported/front_side.png-057b43bb7270572907c729580068368b.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/frontside.png-59d804a7bfdefb2229c160b22085f140.stex"
type="StreamTexture2D"
path="res://.godot/imported/frontside.png-59d804a7bfdefb2229c160b22085f140.stex"
metadata={
"vram_texture": false
}
@@ -10,25 +10,25 @@ metadata={
[deps]
source_file="res://assets/platform/textures/frontside.png"
dest_files=[ "res://.import/frontside.png-59d804a7bfdefb2229c160b22085f140.stex" ]
dest_files=["res://.godot/imported/frontside.png-59d804a7bfdefb2229c160b22085f140.stex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/isometric.png-364f65b60f600b10cfb048c20ea82124.stex"
type="StreamTexture2D"
path="res://.godot/imported/isometric.png-364f65b60f600b10cfb048c20ea82124.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/platform/textures/isometric.png"
dest_files=[ "res://.import/isometric.png-364f65b60f600b10cfb048c20ea82124.stex" ]
dest_files=["res://.godot/imported/isometric.png-364f65b60f600b10cfb048c20ea82124.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/obliqueY.png-835238e1a682fa9039cff7ef5cfcacd4.stex"
type="StreamTexture2D"
path="res://.godot/imported/obliqueY.png-835238e1a682fa9039cff7ef5cfcacd4.stex"
metadata={
"vram_texture": false
}
@@ -10,25 +10,25 @@ metadata={
[deps]
source_file="res://assets/platform/textures/obliqueY.png"
dest_files=[ "res://.import/obliqueY.png-835238e1a682fa9039cff7ef5cfcacd4.stex" ]
dest_files=["res://.godot/imported/obliqueY.png-835238e1a682fa9039cff7ef5cfcacd4.stex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/obliqueZ.png-ccf2b8e0c4fa1369940c3976d1e9a334.stex"
type="StreamTexture2D"
path="res://.godot/imported/obliqueZ.png-ccf2b8e0c4fa1369940c3976d1e9a334.stex"
metadata={
"vram_texture": false
}
@@ -10,25 +10,25 @@ metadata={
[deps]
source_file="res://assets/platform/textures/obliqueZ.png"
dest_files=[ "res://.import/obliqueZ.png-ccf2b8e0c4fa1369940c3976d1e9a334.stex" ]
dest_files=["res://.godot/imported/obliqueZ.png-ccf2b8e0c4fa1369940c3976d1e9a334.stex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/oblique_y.png-ed89b3ef35707993300443a84f7ebbd1.stex"
type="StreamTexture2D"
path="res://.godot/imported/oblique_y.png-ed89b3ef35707993300443a84f7ebbd1.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/platform/textures/oblique_y.png"
dest_files=[ "res://.import/oblique_y.png-ed89b3ef35707993300443a84f7ebbd1.stex" ]
dest_files=["res://.godot/imported/oblique_y.png-ed89b3ef35707993300443a84f7ebbd1.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/oblique_z.png-270f041a55370c5ba68850a072597e97.stex"
type="StreamTexture2D"
path="res://.godot/imported/oblique_z.png-270f041a55370c5ba68850a072597e97.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/platform/textures/oblique_z.png"
dest_files=[ "res://.import/oblique_z.png-270f041a55370c5ba68850a072597e97.stex" ]
dest_files=["res://.godot/imported/oblique_z.png-270f041a55370c5ba68850a072597e97.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/top_down.png-3df3f4c204d6337fdc9aa208196ed940.stex"
type="StreamTexture2D"
path="res://.godot/imported/top_down.png-3df3f4c204d6337fdc9aa208196ed940.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/platform/textures/top_down.png"
dest_files=[ "res://.import/top_down.png-3df3f4c204d6337fdc9aa208196ed940.stex" ]
dest_files=["res://.godot/imported/top_down.png-3df3f4c204d6337fdc9aa208196ed940.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/topdown.png-66f9d3553daec51a7ec6739d98ef44ef.stex"
type="StreamTexture2D"
path="res://.godot/imported/topdown.png-66f9d3553daec51a7ec6739d98ef44ef.stex"
metadata={
"vram_texture": false
}
@@ -10,25 +10,25 @@ metadata={
[deps]
source_file="res://assets/platform/textures/topdown.png"
dest_files=[ "res://.import/topdown.png-66f9d3553daec51a7ec6739d98ef44ef.stex" ]
dest_files=["res://.godot/imported/topdown.png-66f9d3553daec51a7ec6739d98ef44ef.stex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@@ -1,38 +1,38 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://addons/node25d/node_25d.gd" type="Script" id=1]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture" id=2]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture2D" id=2]
[ext_resource path="res://assets/player/player_math_25d.gd" type="Script" id=3]
[ext_resource path="res://assets/player/textures/jump.png" type="Texture" id=4]
[ext_resource path="res://assets/player/textures/jump.png" type="Texture2D" id=4]
[ext_resource path="res://assets/player/player_sprite.gd" type="Script" id=5]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.5, 1, 0.5 )
[sub_resource type="BoxShape3D" id=1]
extents = Vector3(0.5, 1, 0.5)
[node name="Player25D" type="Node2D"]
position = Vector2( 0, -226.274 )
position = Vector2(0, -226.274)
z_index = 100
script = ExtResource( 1 )
__meta__ = {
"_editor_icon": ExtResource( 2 )
}
spatial_position = Vector3( 0, 10, 0 )
spatial_position = Vector3(0, 10, 0)
[node name="PlayerMath25D" type="KinematicBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 0 )
[node name="PlayerMath25D" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 0)
script = ExtResource( 3 )
[node name="CollisionShape" type="CollisionShape" parent="PlayerMath25D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerMath25D"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="PlayerSprite" type="Sprite" parent="."]
scale = Vector2( 1, 0.75 )
[node name="PlayerSprite" type="Sprite2D" parent="."]
scale = Vector2(1, 0.75)
z_index = 1
texture = ExtResource( 4 )
offset = Vector2( 0, 4 )
offset = Vector2(0, 4)
hframes = 2
vframes = 5
script = ExtResource( 5 )

View File

@@ -1,10 +1,10 @@
# Handles Player-specific behavior like moving. We calculate such things with KinematicBody.
extends KinematicBody
# Handles Player-specific behavior like moving. We calculate such things with CharacterBody3D.
extends CharacterBody3D
class_name PlayerMath25D # No icon necessary
var vertical_speed := 0.0
var isometric_controls := true
onready var _parent_node25d: Node25D = get_parent()
@onready var _parent_node25d: Node25D = get_parent()
func _process(delta):
if Input.is_action_pressed("exit"):
@@ -18,7 +18,7 @@ func _process(delta):
if Input.is_action_just_pressed("toggle_isometric_controls"):
isometric_controls = not isometric_controls
if Input.is_action_just_pressed("reset_position"):
transform = Transform(Basis(), Vector3.UP * 10)
transform = Transform3D(Basis(), Vector3.UP * 10)
vertical_speed = 0
else:
_horizontal_movement(delta)

View File

@@ -1,9 +1,9 @@
tool
extends Sprite
@tool
extends Sprite2D
onready var _stand = preload("res://assets/player/textures/stand.png")
onready var _jump = preload("res://assets/player/textures/jump.png")
onready var _run = preload("res://assets/player/textures/run.png")
@onready var _stand = preload("res://assets/player/textures/stand.png")
@onready var _jump = preload("res://assets/player/textures/jump.png")
@onready var _run = preload("res://assets/player/textures/run.png")
const FRAMERATE = 15

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/jump.png-ee91d86ec39d8c1dde239a382e843e86.stex"
type="StreamTexture2D"
path="res://.godot/imported/jump.png-ee91d86ec39d8c1dde239a382e843e86.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/player/textures/jump.png"
dest_files=[ "res://.import/jump.png-ee91d86ec39d8c1dde239a382e843e86.stex" ]
dest_files=["res://.godot/imported/jump.png-ee91d86ec39d8c1dde239a382e843e86.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/run.png-6110949046e0632be1a9b1c8ac504217.stex"
type="StreamTexture2D"
path="res://.godot/imported/run.png-6110949046e0632be1a9b1c8ac504217.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/player/textures/run.png"
dest_files=[ "res://.import/run.png-6110949046e0632be1a9b1c8ac504217.stex" ]
dest_files=["res://.godot/imported/run.png-6110949046e0632be1a9b1c8ac504217.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/stand.png-4d65e60dbd5f40d1f70da6aa2507ebe3.stex"
type="StreamTexture2D"
path="res://.godot/imported/stand.png-4d65e60dbd5f40d1f70da6aa2507ebe3.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/player/textures/stand.png"
dest_files=[ "res://.import/stand.png-4d65e60dbd5f40d1f70da6aa2507ebe3.stex" ]
dest_files=["res://.godot/imported/stand.png-4d65e60dbd5f40d1f70da6aa2507ebe3.stex"]
[params]

View File

@@ -1,26 +1,26 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://addons/node25d/node_25d.gd" type="Script" id=1]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture" id=2]
[ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture2D" id=2]
[ext_resource path="res://addons/node25d/shadow_math_25d.gd" type="Script" id=3]
[ext_resource path="res://addons/node25d/icons/shadow_math_25d_icon.png" type="Texture" id=4]
[ext_resource path="res://assets/shadow/textures/forty_five.png" type="Texture" id=5]
[ext_resource path="res://addons/node25d/icons/shadow_math_25d_icon.png" type="Texture2D" id=4]
[ext_resource path="res://assets/shadow/textures/forty_five.png" type="Texture2D" id=5]
[ext_resource path="res://assets/shadow/shadow_sprite.gd" type="Script" id=6]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.5, 0.001, 0.5 )
[sub_resource type="BoxShape3D" id=1]
extents = Vector3(0.5, 0.001, 0.5)
[node name="Shadow25D" type="Node2D"]
visible = false
position = Vector2( 0, 22401.1 )
position = Vector2(0, 22401.1)
script = ExtResource( 1 )
__meta__ = {
"_editor_icon": ExtResource( 2 )
}
spatial_position = Vector3( 0, -990, 0 )
spatial_position = Vector3(0, -990, 0)
[node name="ShadowMath25D" type="KinematicBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -990, 0 )
[node name="ShadowMath25D" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -990, 0)
collision_layer = 16
collision_mask = 16
script = ExtResource( 3 )
@@ -28,13 +28,13 @@ __meta__ = {
"_editor_icon": ExtResource( 4 )
}
[node name="CollisionShape" type="CollisionShape" parent="ShadowMath25D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="ShadowMath25D"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="ShadowSprite" type="Sprite" parent="."]
scale = Vector2( 0.5, 0.5 )
[node name="ShadowSprite" type="Sprite2D" parent="."]
scale = Vector2(0.5, 0.5)
texture = ExtResource( 5 )
script = ExtResource( 6 )

View File

@@ -1,12 +1,12 @@
tool
extends Sprite
@tool
extends Sprite2D
onready var _forty_five = preload("res://assets/shadow/textures/forty_five.png")
onready var _isometric = preload("res://assets/shadow/textures/isometric.png")
onready var _top_down = preload("res://assets/shadow/textures/top_down.png")
onready var _front_side = preload("res://assets/shadow/textures/front_side.png")
onready var _oblique_y = preload("res://assets/shadow/textures/oblique_y.png")
onready var _oblique_z = preload("res://assets/shadow/textures/oblique_z.png")
@onready var _forty_five = preload("res://assets/shadow/textures/forty_five.png")
@onready var _isometric = preload("res://assets/shadow/textures/isometric.png")
@onready var _top_down = preload("res://assets/shadow/textures/top_down.png")
@onready var _front_side = preload("res://assets/shadow/textures/front_side.png")
@onready var _oblique_y = preload("res://assets/shadow/textures/oblique_y.png")
@onready var _oblique_z = preload("res://assets/shadow/textures/oblique_z.png")
func _process(_delta):
if not Engine.editor_hint:

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/forty_five.png-22dcfa54db51531b3612f686997a3fbe.stex"
type="StreamTexture2D"
path="res://.godot/imported/forty_five.png-22dcfa54db51531b3612f686997a3fbe.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/shadow/textures/forty_five.png"
dest_files=[ "res://.import/forty_five.png-22dcfa54db51531b3612f686997a3fbe.stex" ]
dest_files=["res://.godot/imported/forty_five.png-22dcfa54db51531b3612f686997a3fbe.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/fortyfive.png-efb54d3840c2ab97f9652a523a4e1e58.stex"
type="StreamTexture2D"
path="res://.godot/imported/fortyfive.png-efb54d3840c2ab97f9652a523a4e1e58.stex"
metadata={
"vram_texture": false
}
@@ -10,25 +10,25 @@ metadata={
[deps]
source_file="res://assets/shadow/textures/fortyfive.png"
dest_files=[ "res://.import/fortyfive.png-efb54d3840c2ab97f9652a523a4e1e58.stex" ]
dest_files=["res://.godot/imported/fortyfive.png-efb54d3840c2ab97f9652a523a4e1e58.stex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/front_side.png-1470842d27848ecf4de63924b0b98f42.stex"
type="StreamTexture2D"
path="res://.godot/imported/front_side.png-1470842d27848ecf4de63924b0b98f42.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/shadow/textures/front_side.png"
dest_files=[ "res://.import/front_side.png-1470842d27848ecf4de63924b0b98f42.stex" ]
dest_files=["res://.godot/imported/front_side.png-1470842d27848ecf4de63924b0b98f42.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/frontside.png-aab37f0cda9f5e8056a5178bf22351fb.stex"
type="StreamTexture2D"
path="res://.godot/imported/frontside.png-aab37f0cda9f5e8056a5178bf22351fb.stex"
metadata={
"vram_texture": false
}
@@ -10,25 +10,25 @@ metadata={
[deps]
source_file="res://assets/shadow/textures/frontside.png"
dest_files=[ "res://.import/frontside.png-aab37f0cda9f5e8056a5178bf22351fb.stex" ]
dest_files=["res://.godot/imported/frontside.png-aab37f0cda9f5e8056a5178bf22351fb.stex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/isometric.png-1a91c869806816b66a8fb886d4801f31.stex"
type="StreamTexture2D"
path="res://.godot/imported/isometric.png-1a91c869806816b66a8fb886d4801f31.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/shadow/textures/isometric.png"
dest_files=[ "res://.import/isometric.png-1a91c869806816b66a8fb886d4801f31.stex" ]
dest_files=["res://.godot/imported/isometric.png-1a91c869806816b66a8fb886d4801f31.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/oblique_y.png-47d60a179a2cdeff15364f0e389e6008.stex"
type="StreamTexture2D"
path="res://.godot/imported/oblique_y.png-47d60a179a2cdeff15364f0e389e6008.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/shadow/textures/oblique_y.png"
dest_files=[ "res://.import/oblique_y.png-47d60a179a2cdeff15364f0e389e6008.stex" ]
dest_files=["res://.godot/imported/oblique_y.png-47d60a179a2cdeff15364f0e389e6008.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/oblique_z.png-d8378bf8b95f890e76162d62a82022de.stex"
type="StreamTexture2D"
path="res://.godot/imported/oblique_z.png-d8378bf8b95f890e76162d62a82022de.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/shadow/textures/oblique_z.png"
dest_files=[ "res://.import/oblique_z.png-d8378bf8b95f890e76162d62a82022de.stex" ]
dest_files=["res://.godot/imported/oblique_z.png-d8378bf8b95f890e76162d62a82022de.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/top_down.png-a3a98721249636eff54d8113d6075229.stex"
type="StreamTexture2D"
path="res://.godot/imported/top_down.png-a3a98721249636eff54d8113d6075229.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://assets/shadow/textures/top_down.png"
dest_files=[ "res://.import/top_down.png-a3a98721249636eff54d8113d6075229.stex" ]
dest_files=["res://.godot/imported/top_down.png-a3a98721249636eff54d8113d6075229.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/topdown.png-967f612d383afa56cee62320ceaf8a99.stex"
type="StreamTexture2D"
path="res://.godot/imported/topdown.png-967f612d383afa56cee62320ceaf8a99.stex"
metadata={
"vram_texture": false
}
@@ -10,25 +10,25 @@ metadata={
[deps]
source_file="res://assets/shadow/textures/topdown.png"
dest_files=[ "res://.import/topdown.png-967f612d383afa56cee62320ceaf8a99.stex" ]
dest_files=["res://.godot/imported/topdown.png-967f612d383afa56cee62320ceaf8a99.stex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@@ -6,15 +6,15 @@
[node name="ControlHints" type="CenterContainer" parent="."]
anchor_right = 1.0
margin_bottom = 200.0
offset_bottom = 200.0
script = ExtResource( 1 )
[node name="Label" type="Label" parent="ControlHints"]
margin_left = 348.0
margin_top = 25.0
margin_right = 1251.0
margin_bottom = 175.0
rect_min_size = Vector2( 500, 50 )
offset_left = 348.0
offset_top = 25.0
offset_right = 1251.0
offset_bottom = 175.0
rect_min_size = Vector2(500, 50)
text = "
Controls: WASD to move, Space to jump, R to reset, Shift to walk, T to toggle isometric controls, C to view cube demo, Tab to toggle hints.

View File

@@ -6,15 +6,15 @@
[node name="ControlHints" type="CenterContainer" parent="."]
anchor_right = 1.0
margin_bottom = 200.0
offset_bottom = 200.0
script = ExtResource( 1 )
[node name="Label" type="Label" parent="ControlHints"]
margin_left = 416.0
margin_top = 25.0
margin_right = 1183.0
margin_bottom = 175.0
rect_min_size = Vector2( 500, 50 )
offset_left = 416.0
offset_top = 25.0
offset_right = 1183.0
offset_bottom = 175.0
rect_min_size = Vector2(500, 50)
text = "
Controls: WASDQE to rotate, R to reset, C to return to the world, Tab to toggle hints.

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
type="StreamTexture2D"
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
[params]

View File

@@ -8,27 +8,27 @@
config_version=4
_global_script_classes=[ {
_global_script_classes=[{
"base": "Node2D",
"class": "Node25D",
"language": "GDScript",
"class": &"Node25D",
"language": &"GDScript",
"path": "res://addons/node25d/node_25d.gd"
}, {
"base": "KinematicBody",
"class": "PlayerMath25D",
"language": "GDScript",
"base": "CharacterBody3D",
"class": &"PlayerMath25D",
"language": &"GDScript",
"path": "res://assets/player/player_math_25d.gd"
}, {
"base": "KinematicBody",
"class": "ShadowMath25D",
"language": "GDScript",
"base": "CharacterBody3D",
"class": &"ShadowMath25D",
"language": &"GDScript",
"path": "res://addons/node25d/shadow_math_25d.gd"
}, {
"base": "Node",
"class": "YSort25D",
"language": "GDScript",
"class": &"YSort25D",
"language": &"GDScript",
"path": "res://addons/node25d/y_sort_25d.gd"
} ]
}]
_global_script_class_icons={
"Node25D": "res://addons/node25d/icons/node_25d_icon.png",
"PlayerMath25D": "",
@@ -52,141 +52,141 @@ window/size/height=900
[editor_plugins]
enabled=PoolStringArray( "node25d" )
enabled=PackedStringArray("node25d")
[input]
move_right={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":68,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777233,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
]
]
}
move_left={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":65,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777231,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
]
]
}
move_forward={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":87,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777232,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":-1.0,"script":null)
]
]
}
move_back={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":83,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777234,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":1.0,"script":null)
]
]
}
movement_modifier={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777237,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777348,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777237,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777348,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":1,"pressure":0.0,"pressed":false,"script":null)
]
]
}
jump={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777350,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777350,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
]
]
}
reset_position={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":82,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777222,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":82,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777222,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":3,"pressure":0.0,"pressed":false,"script":null)
]
]
}
forty_five_mode={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":85,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777354,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":85,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777354,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
]
]
}
isometric_mode={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":73,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777355,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":73,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777355,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
]
]
}
top_down_mode={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":79,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777356,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":79,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777356,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
]
]
}
front_side_mode={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":74,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777351,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":74,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777351,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
]
]
}
oblique_y_mode={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":75,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777352,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":75,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777352,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":4,"pressure":0.0,"pressed":false,"script":null)
]
]
}
oblique_z_mode={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":76,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777353,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":76,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777353,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":5,"pressure":0.0,"pressed":false,"script":null)
]
]
}
toggle_isometric_controls={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":84,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":84,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":8,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777349,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777349,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
]
}
toggle_control_hints={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777218,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777347,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777218,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777347,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":10,"pressure":0.0,"pressed":false,"script":null)
]
]
}
move_clockwise={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":69,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777359,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":69,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777359,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":7,"pressure":0.0,"pressed":false,"script":null)
]
]
}
move_counterclockwise={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":81,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777357,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":81,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777357,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":6,"pressure":0.0,"pressed":false,"script":null)
]
]
}
view_cube_demo={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":67,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777358,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":67,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777358,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
]
]
}
exit={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777217,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
]
]
}
[physics]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/diagram.png-1621ff3c0b6dad34000ac99354b64701.stex"
type="StreamTexture2D"
path="res://.godot/imported/diagram.png-1621ff3c0b6dad34000ac99354b64701.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://diagram.png"
dest_files=[ "res://.import/diagram.png-1621ff3c0b6dad34000ac99354b64701.stex" ]
dest_files=["res://.godot/imported/diagram.png-1621ff3c0b6dad34000ac99354b64701.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
type="StreamTexture2D"
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
[params]

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/indicators.png-b2d98522e44d4529354ba542a9970360.stex"
type="StreamTexture2D"
path="res://.godot/imported/indicators.png-b2d98522e44d4529354ba542a9970360.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://indicators.png"
dest_files=[ "res://.import/indicators.png-b2d98522e44d4529354ba542a9970360.stex" ]
dest_files=["res://.godot/imported/indicators.png-b2d98522e44d4529354ba542a9970360.stex"]
[params]

View File

@@ -1,195 +1,195 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://diagram.png" type="Texture" id=1]
[ext_resource path="res://indicators.png" type="Texture" id=2]
[ext_resource path="res://diagram.png" type="Texture2D" id=1]
[ext_resource path="res://indicators.png" type="Texture2D" id=2]
[node name="JoypadDiagram" type="Sprite"]
position = Vector2( 368.635, 155.289 )
scale = Vector2( 0.432859, 0.446287 )
[node name="JoypadDiagram" type="Sprite2D"]
position = Vector2(368.635, 155.289)
scale = Vector2(0.432859, 0.446287)
texture = ExtResource( 1 )
[node name="Buttons" type="Node2D" parent="."]
[node name="0" type="Sprite" parent="Buttons"]
position = Vector2( 147.73, 120.925 )
scale = Vector2( 0.9, 0.9 )
[node name="0" type="Sprite2D" parent="Buttons"]
position = Vector2(147.73, 120.925)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="1" type="Sprite" parent="Buttons"]
position = Vector2( 185.769, 82.4874 )
scale = Vector2( 0.9, 0.9 )
[node name="1" type="Sprite2D" parent="Buttons"]
position = Vector2(185.769, 82.4874)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="2" type="Sprite" parent="Buttons"]
position = Vector2( 112.377, 82.4874 )
scale = Vector2( 0.9, 0.9 )
[node name="2" type="Sprite2D" parent="Buttons"]
position = Vector2(112.377, 82.4874)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="3" type="Sprite" parent="Buttons"]
position = Vector2( 149.073, 47.3293 )
scale = Vector2( 0.9, 0.9 )
[node name="3" type="Sprite2D" parent="Buttons"]
position = Vector2(149.073, 47.3293)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="4" type="Sprite" parent="Buttons"]
position = Vector2( -161.038, -158.037 )
scale = Vector2( 5.3348, 3.35512 )
[node name="4" type="Sprite2D" parent="Buttons"]
position = Vector2(-161.038, -158.037)
scale = Vector2(5.3348, 3.35512)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 10, 10, 10, 10 )
region_rect = Rect2(10, 10, 10, 10)
[node name="5" type="Sprite" parent="Buttons"]
position = Vector2( 159.362, -156.977 )
scale = Vector2( 5.3348, 3.35512 )
[node name="5" type="Sprite2D" parent="Buttons"]
position = Vector2(159.362, -156.977)
scale = Vector2(5.3348, 3.35512)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 10, 10, 10, 10 )
region_rect = Rect2(10, 10, 10, 10)
[node name="6" type="Sprite" parent="Buttons"]
position = Vector2( -159.349, -221.878 )
scale = Vector2( 1.0458, 2.16952 )
[node name="6" type="Sprite2D" parent="Buttons"]
position = Vector2(-159.349, -221.878)
scale = Vector2(1.0458, 2.16952)
texture = ExtResource( 2 )
flip_h = true
region_enabled = true
region_rect = Rect2( 0, 0, 45, 22 )
region_rect = Rect2(0, 0, 45, 22)
[node name="7" type="Sprite" parent="Buttons"]
position = Vector2( 156.677, -220.11 )
scale = Vector2( 1.0458, 2.16952 )
[node name="7" type="Sprite2D" parent="Buttons"]
position = Vector2(156.677, -220.11)
scale = Vector2(1.0458, 2.16952)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 22 )
region_rect = Rect2(0, 0, 45, 22)
[node name="8" type="Sprite" parent="Buttons"]
position = Vector2( -67.5308, 164.422 )
scale = Vector2( 0.9, 0.9 )
[node name="8" type="Sprite2D" parent="Buttons"]
position = Vector2(-67.5308, 164.422)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="9" type="Sprite" parent="Buttons"]
position = Vector2( 75.8825, 167.363 )
scale = Vector2( 0.9, 0.9 )
[node name="9" type="Sprite2D" parent="Buttons"]
position = Vector2(75.8825, 167.363)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="10" type="Sprite" parent="Buttons"]
position = Vector2( -46.6707, 52.702 )
scale = Vector2( 0.810497, 0.57205 )
[node name="10" type="Sprite2D" parent="Buttons"]
position = Vector2(-46.6707, 52.702)
scale = Vector2(0.810497, 0.57205)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="11" type="Sprite" parent="Buttons"]
position = Vector2( 56.2581, 54.4382 )
scale = Vector2( 0.810497, 0.57205 )
[node name="11" type="Sprite2D" parent="Buttons"]
position = Vector2(56.2581, 54.4382)
scale = Vector2(0.810497, 0.57205)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="12" type="Sprite" parent="Buttons"]
position = Vector2( -139.402, 46.8295 )
scale = Vector2( 0.9, 0.9 )
[node name="12" type="Sprite2D" parent="Buttons"]
position = Vector2(-139.402, 46.8295)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)
[node name="13" type="Sprite" parent="Buttons"]
position = Vector2( -139.838, 115.789 )
scale = Vector2( 0.9, 0.9 )
[node name="13" type="Sprite2D" parent="Buttons"]
position = Vector2(-139.838, 115.789)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_v = true
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)
[node name="14" type="Sprite" parent="Buttons"]
position = Vector2( -172.262, 81.8793 )
scale = Vector2( 0.9, 0.9 )
[node name="14" type="Sprite2D" parent="Buttons"]
position = Vector2(-172.262, 81.8793)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="15" type="Sprite" parent="Buttons"]
position = Vector2( -105.085, 81.0326 )
scale = Vector2( 0.9, 0.9 )
[node name="15" type="Sprite2D" parent="Buttons"]
position = Vector2(-105.085, 81.0326)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_h = true
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="16" type="Sprite" parent="Buttons"]
position = Vector2( 4, 64 )
scale = Vector2( 0.9, 0.9 )
[node name="16" type="Sprite2D" parent="Buttons"]
position = Vector2(4, 64)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 45, 45 )
region_rect = Rect2(0, 0, 45, 45)
[node name="Axes" type="Node2D" parent="."]
[node name="0-" type="Sprite" parent="Axes"]
position = Vector2( -94.4295, 164.932 )
scale = Vector2( 0.9, 0.9 )
[node name="0-" type="Sprite2D" parent="Axes"]
position = Vector2(-94.4295, 164.932)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="0+" type="Sprite" parent="Axes"]
position = Vector2( -40.3475, 164.509 )
scale = Vector2( 0.9, 0.9 )
[node name="0+" type="Sprite2D" parent="Axes"]
position = Vector2(-40.3475, 164.509)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_h = true
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="1-" type="Sprite" parent="Axes"]
position = Vector2( -67.6802, 137.926 )
scale = Vector2( 0.9, 0.9 )
[node name="1-" type="Sprite2D" parent="Axes"]
position = Vector2(-67.6802, 137.926)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)
[node name="1+" type="Sprite" parent="Axes"]
position = Vector2( -67.4618, 192.915 )
scale = Vector2( 0.9, 0.9 )
[node name="1+" type="Sprite2D" parent="Axes"]
position = Vector2(-67.4618, 192.915)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_v = true
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)
[node name="2-" type="Sprite" parent="Axes"]
position = Vector2( 48.8152, 167.145 )
scale = Vector2( 0.9, 0.9 )
[node name="2-" type="Sprite2D" parent="Axes"]
position = Vector2(48.8152, 167.145)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="2+" type="Sprite" parent="Axes"]
position = Vector2( 102.899, 167.857 )
scale = Vector2( 0.9, 0.9 )
[node name="2+" type="Sprite2D" parent="Axes"]
position = Vector2(102.899, 167.857)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_h = true
region_enabled = true
region_rect = Rect2( 50, 0, 14, 54 )
region_rect = Rect2(50, 0, 14, 54)
[node name="3-" type="Sprite" parent="Axes"]
position = Vector2( 76.6557, 140.986 )
scale = Vector2( 0.9, 0.9 )
[node name="3-" type="Sprite2D" parent="Axes"]
position = Vector2(76.6557, 140.986)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)
[node name="3+" type="Sprite" parent="Axes"]
position = Vector2( 76.0009, 195.339 )
scale = Vector2( 0.9, 0.9 )
[node name="3+" type="Sprite2D" parent="Axes"]
position = Vector2(76.0009, 195.339)
scale = Vector2(0.9, 0.9)
texture = ExtResource( 2 )
flip_v = true
region_enabled = true
region_rect = Rect2( 50, 0, 54, 14 )
region_rect = Rect2(50, 0, 54, 14)

View File

@@ -9,22 +9,22 @@ extends Control
const DEADZONE = 0.2
const FONT_COLOR_DEFAULT = Color(1.0, 1.0, 1.0, 0.5)
const FONT_COLOR_ACTIVE = Color.white
const FONT_COLOR_ACTIVE = Color.WHITE
var joy_num
var cur_joy = -1
var axis_value
onready var axes = $Axes
onready var button_grid = $Buttons/ButtonGrid
onready var joypad_axes = $JoypadDiagram/Axes
onready var joypad_buttons = $JoypadDiagram/Buttons
onready var joypad_name = $DeviceInfo/JoyName
onready var joypad_number = $DeviceInfo/JoyNumber
@onready var axes = $Axes
@onready var button_grid = $Buttons/ButtonGrid
@onready var joypad_axes = $JoypadDiagram/Axes
@onready var joypad_buttons = $JoypadDiagram/Buttons
@onready var joypad_name = $DeviceInfo/JoyName
@onready var joypad_number = $DeviceInfo/JoyNumber
func _ready():
set_physics_process(true)
Input.connect("joy_connection_changed", self, "_on_joy_connection_changed")
Input.connect(&"joy_connection_changed", self._on_joy_connection_changed)
# Guide button, not supported <= 3.2.3, so manually hide to account for that case.
joypad_buttons.get_child(16).hide()
@@ -41,8 +41,8 @@ func _process(_delta):
# Loop through the axes and show their current values.
for axis in range(int(min(JOY_AXIS_MAX, 11))):
axis_value = Input.get_joy_axis(joy_num, axis)
axes.get_node("Axis" + str(axis) + "/ProgressBar").set_value(100 * axis_value)
axes.get_node("Axis" + str(axis) + "/ProgressBar/Value").set_text(str(axis_value))
axes.get_node(^"Axis" + str(axis) + "/ProgressBar").set_value(100 * axis_value)
axes.get_node(^"Axis" + str(axis) + "/ProgressBar/Value").set_text(str(axis_value))
# Scaled value used for alpha channel using valid range rather than including unusable deadzone values.
var scaled_alpha_value = (abs(axis_value) - DEADZONE) / (1.0 - DEADZONE)
# Show joypad direction indicators
@@ -76,9 +76,9 @@ func _process(_delta):
joypad_buttons.get_child(JOY_ANALOG_R2).self_modulate.a = scaled_alpha_value
# Highlight axis labels that are within the "active" value range. Simular to the button highlighting for loop below.
axes.get_node("Axis" + str(axis) + "/Label").add_color_override("font_color", FONT_COLOR_DEFAULT)
axes.get_node(^"Axis" + str(axis) + "/Label").add_color_override("font_color", FONT_COLOR_DEFAULT)
if abs(axis_value) >= DEADZONE:
axes.get_node("Axis" + str(axis) + "/Label").add_color_override("font_color", FONT_COLOR_ACTIVE)
axes.get_node(^"Axis" + str(axis) + "/Label").add_color_override("font_color", FONT_COLOR_ACTIVE)
# Loop through the buttons and highlight the ones that are pressed.
for btn in range(JOY_BUTTON_0, int(min(JOY_BUTTON_MAX, 24))):
@@ -118,7 +118,7 @@ func _on_Remap_pressed():
func _on_Clear_pressed():
var guid = Input.get_joy_guid(cur_joy)
if guid.empty():
if guid.is_empty():
printerr("No gamepad selected")
return
Input.remove_joy_mapping(guid)

File diff suppressed because it is too large Load Diff

View File

@@ -8,12 +8,12 @@
config_version=4
_global_script_classes=[ {
_global_script_classes=[{
"base": "Reference",
"class": "JoyMapping",
"language": "GDScript",
"class": &"JoyMapping",
"language": &"GDScript",
"path": "res://remap/joy_mapping.gd"
} ]
}]
_global_script_class_icons={
"JoyMapping": ""
}
@@ -39,7 +39,7 @@ window/stretch/aspect="expand"
[gdnative]
singletons=[ ]
singletons=[]
[rendering]

View File

@@ -1,4 +1,4 @@
extends Reference
extends RefCounted
class_name JoyMapping

View File

@@ -11,11 +11,11 @@ var cur_step = -1
var cur_mapping = {}
var last_mapping = ""
onready var joy_buttons = $Mapping/Margin/VBox/ViewportContainer/Viewport/JoypadDiagram/Buttons
onready var joy_axes = $Mapping/Margin/VBox/ViewportContainer/Viewport/JoypadDiagram/Axes
onready var joy_mapping_text = $Mapping/Margin/VBox/Info/Text/Value
onready var joy_mapping_full_axis = $Mapping/Margin/VBox/Info/Extra/FullAxis
onready var joy_mapping_axis_invert = $Mapping/Margin/VBox/Info/Extra/InvertAxis
@onready var joy_buttons = $Mapping/Margin/VBox/SubViewportContainer/SubViewport/JoypadDiagram/Buttons
@onready var joy_axes = $Mapping/Margin/VBox/SubViewportContainer/SubViewport/JoypadDiagram/Axes
@onready var joy_mapping_text = $Mapping/Margin/VBox/Info/Text/Value
@onready var joy_mapping_full_axis = $Mapping/Margin/VBox/Info/Extra/FullAxis
@onready var joy_mapping_axis_invert = $Mapping/Margin/VBox/Info/Extra/InvertAxis
func _input(event):
@@ -60,7 +60,7 @@ func create_mapping_string(mapping):
func start(idx):
joy_guid = Input.get_joy_guid(idx)
joy_name = Input.get_joy_name(idx)
if joy_guid.empty():
if joy_guid.is_empty():
printerr("Unable to find controller")
return
if OS.get_name() == "HTML5":

View File

@@ -11,10 +11,10 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -128.0
margin_top = -96.0
margin_right = 128.0
margin_bottom = 96.0
offset_left = -128.0
offset_top = -96.0
offset_right = 128.0
offset_bottom = 96.0
__meta__ = {
"_edit_use_anchors_": false
}
@@ -22,19 +22,19 @@ __meta__ = {
[node name="Margin" type="MarginContainer" parent="Start"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/margin_right = 12
custom_constants/margin_top = 12
custom_constants/margin_left = 12
custom_constants/margin_bottom = 12
custom_constants/offset_right = 12
custom_constants/offset_top = 12
custom_constants/offset_left = 12
custom_constants/offset_bottom = 12
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Layout" type="VBoxContainer" parent="Start/Margin"]
margin_left = 12.0
margin_top = 12.0
margin_right = 244.0
margin_bottom = 180.0
offset_left = 12.0
offset_top = 12.0
offset_right = 244.0
offset_bottom = 180.0
custom_constants/separation = 20
alignment = 1
__meta__ = {
@@ -42,69 +42,69 @@ __meta__ = {
}
[node name="HTML5" type="VBoxContainer" parent="Start/Margin/Layout"]
margin_top = 28.0
margin_right = 232.0
margin_bottom = 66.0
offset_top = 28.0
offset_right = 232.0
offset_bottom = 66.0
[node name="Label" type="Label" parent="Start/Margin/Layout/HTML5"]
margin_right = 232.0
margin_bottom = 14.0
offset_right = 232.0
offset_bottom = 14.0
text = "Try a common mapping:"
[node name="known" type="HBoxContainer" parent="Start/Margin/Layout/HTML5"]
margin_top = 18.0
margin_right = 232.0
margin_bottom = 38.0
offset_top = 18.0
offset_right = 232.0
offset_bottom = 38.0
custom_constants/separation = 20
alignment = 1
[node name="Xbox" type="Button" parent="Start/Margin/Layout/HTML5/known"]
margin_left = 44.0
margin_right = 87.0
margin_bottom = 20.0
offset_left = 44.0
offset_right = 87.0
offset_bottom = 20.0
text = "Xbox"
[node name="XboxOSX" type="Button" parent="Start/Margin/Layout/HTML5/known"]
margin_left = 107.0
margin_right = 188.0
margin_bottom = 20.0
offset_left = 107.0
offset_right = 188.0
offset_bottom = 20.0
text = "Xbox (OSX)"
[node name="Label" type="Label" parent="Start/Margin/Layout"]
margin_top = 86.0
margin_right = 232.0
margin_bottom = 100.0
offset_top = 86.0
offset_right = 232.0
offset_bottom = 100.0
text = "Or start the wizard"
[node name="Buttons" type="HBoxContainer" parent="Start/Margin/Layout"]
margin_top = 120.0
margin_right = 232.0
margin_bottom = 140.0
offset_top = 120.0
offset_right = 232.0
offset_bottom = 140.0
[node name="Cancel" type="Button" parent="Start/Margin/Layout/Buttons"]
margin_right = 54.0
margin_bottom = 20.0
offset_right = 54.0
offset_bottom = 20.0
text = "Cancel"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Control" type="Control" parent="Start/Margin/Layout/Buttons"]
margin_left = 58.0
margin_right = 172.0
margin_bottom = 20.0
offset_left = 58.0
offset_right = 172.0
offset_bottom = 20.0
size_flags_horizontal = 3
[node name="Wizard" type="Button" parent="Start/Margin/Layout/Buttons"]
margin_left = 176.0
margin_right = 232.0
margin_bottom = 20.0
offset_left = 176.0
offset_right = 232.0
offset_bottom = 20.0
text = "Wizard"
[node name="Mapping" type="WindowDialog" parent="."]
margin_right = 305.0
margin_bottom = 437.0
rect_min_size = Vector2( 330, 440 )
offset_right = 305.0
offset_bottom = 437.0
rect_min_size = Vector2(330, 440)
popup_exclusive = true
__meta__ = {
"_edit_use_anchors_": false
@@ -113,123 +113,123 @@ __meta__ = {
[node name="Margin" type="MarginContainer" parent="Mapping"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/margin_right = 12
custom_constants/margin_top = 12
custom_constants/margin_left = 12
custom_constants/margin_bottom = 12
custom_constants/offset_right = 12
custom_constants/offset_top = 12
custom_constants/offset_left = 12
custom_constants/offset_bottom = 12
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBox" type="VBoxContainer" parent="Mapping/Margin"]
margin_left = 12.0
margin_top = 12.0
margin_right = 318.0
margin_bottom = 428.0
offset_left = 12.0
offset_top = 12.0
offset_right = 318.0
offset_bottom = 428.0
custom_constants/separation = 5
[node name="ViewportContainer" type="ViewportContainer" parent="Mapping/Margin/VBox"]
margin_right = 306.0
margin_bottom = 305.0
rect_min_size = Vector2( 305, 305 )
[node name="SubViewportContainer" type="SubViewportContainer" parent="Mapping/Margin/VBox"]
offset_right = 306.0
offset_bottom = 305.0
rect_min_size = Vector2(305, 305)
stretch = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Viewport" type="Viewport" parent="Mapping/Margin/VBox/ViewportContainer"]
size = Vector2( 306, 305 )
[node name="SubViewport" type="SubViewport" parent="Mapping/Margin/VBox/SubViewportContainer"]
size = Vector2(306, 305)
handle_input_locally = false
render_target_update_mode = 0
[node name="JoypadDiagram" parent="Mapping/Margin/VBox/ViewportContainer/Viewport" instance=ExtResource( 2 )]
position = Vector2( 0, 0 )
[node name="JoypadDiagram" parent="Mapping/Margin/VBox/SubViewportContainer/SubViewport" instance=ExtResource( 2 )]
position = Vector2(0, 0)
[node name="Camera2D" type="Camera2D" parent="Mapping/Margin/VBox/ViewportContainer/Viewport"]
[node name="Camera2D" type="Camera2D" parent="Mapping/Margin/VBox/SubViewportContainer/SubViewport"]
current = true
[node name="Info" type="VBoxContainer" parent="Mapping/Margin/VBox"]
margin_top = 310.0
margin_right = 306.0
margin_bottom = 408.0
offset_top = 310.0
offset_right = 306.0
offset_bottom = 408.0
custom_constants/separation = 20
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Text" type="HBoxContainer" parent="Mapping/Margin/VBox/Info"]
margin_right = 306.0
margin_bottom = 14.0
offset_right = 306.0
offset_bottom = 14.0
[node name="Text" type="Label" parent="Mapping/Margin/VBox/Info/Text"]
margin_right = 125.0
margin_bottom = 14.0
offset_right = 125.0
offset_bottom = 14.0
text = "Currently selected: "
[node name="Value" type="Label" parent="Mapping/Margin/VBox/Info/Text"]
margin_left = 129.0
margin_right = 129.0
margin_bottom = 14.0
offset_left = 129.0
offset_right = 129.0
offset_bottom = 14.0
[node name="Extra" type="HBoxContainer" parent="Mapping/Margin/VBox/Info"]
margin_top = 34.0
margin_right = 306.0
margin_bottom = 58.0
offset_top = 34.0
offset_right = 306.0
offset_bottom = 58.0
[node name="FullAxis" type="CheckBox" parent="Mapping/Margin/VBox/Info/Extra"]
margin_right = 80.0
margin_bottom = 24.0
offset_right = 80.0
offset_bottom = 24.0
hint_tooltip = "Check this if the sign of the axis keep changing from + to - when pressing and releasing.
Do not check it otherwise"
text = "Full axis"
[node name="InvertAxis" type="CheckBox" parent="Mapping/Margin/VBox/Info/Extra"]
margin_left = 84.0
margin_right = 181.0
margin_bottom = 24.0
offset_left = 84.0
offset_right = 181.0
offset_bottom = 24.0
hint_tooltip = "Check this if you think the axis should be inverted"
text = "Invert Axis"
[node name="Buttons" type="HBoxContainer" parent="Mapping/Margin/VBox/Info"]
margin_top = 78.0
margin_right = 306.0
margin_bottom = 98.0
offset_top = 78.0
offset_right = 306.0
offset_bottom = 98.0
[node name="Prev" type="Button" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_right = 67.0
margin_bottom = 20.0
offset_right = 67.0
offset_bottom = 20.0
text = "Previous"
[node name="Control" type="Control" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_left = 71.0
margin_right = 142.0
margin_bottom = 20.0
offset_left = 71.0
offset_right = 142.0
offset_bottom = 20.0
size_flags_horizontal = 3
[node name="Skip" type="Button" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_left = 146.0
margin_right = 184.0
margin_bottom = 20.0
offset_left = 146.0
offset_right = 184.0
offset_bottom = 20.0
text = "Skip"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Control2" type="Control" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_left = 188.0
margin_right = 260.0
margin_bottom = 20.0
offset_left = 188.0
offset_right = 260.0
offset_bottom = 20.0
size_flags_horizontal = 3
[node name="Next" type="Button" parent="Mapping/Margin/VBox/Info/Buttons"]
margin_left = 264.0
margin_right = 306.0
margin_bottom = 20.0
offset_left = 264.0
offset_right = 306.0
offset_bottom = 20.0
text = "Next"
[node name="MapWindow" type="WindowDialog" parent="."]
margin_right = 400.0
margin_bottom = 200.0
offset_right = 400.0
offset_bottom = 200.0
popup_exclusive = true
__meta__ = {
"_edit_use_anchors_": false
@@ -238,29 +238,29 @@ __meta__ = {
[node name="Margin" type="MarginContainer" parent="MapWindow"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/margin_right = 12
custom_constants/margin_top = 12
custom_constants/margin_left = 12
custom_constants/margin_bottom = 12
custom_constants/offset_right = 12
custom_constants/offset_top = 12
custom_constants/offset_left = 12
custom_constants/offset_bottom = 12
[node name="VBoxContainer" type="VBoxContainer" parent="MapWindow/Margin"]
margin_left = 12.0
margin_top = 12.0
margin_right = 388.0
margin_bottom = 188.0
offset_left = 12.0
offset_top = 12.0
offset_right = 388.0
offset_bottom = 188.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="MapWindow/Margin/VBoxContainer"]
margin_right = 376.0
margin_bottom = 14.0
offset_right = 376.0
offset_bottom = 14.0
text = "This is the resulting remap string:"
[node name="TextEdit" type="TextEdit" parent="MapWindow/Margin/VBoxContainer"]
margin_top = 18.0
margin_right = 376.0
margin_bottom = 176.0
offset_top = 18.0
offset_right = 376.0
offset_bottom = 176.0
size_flags_vertical = 3
readonly = true
wrap_enabled = true

View File

@@ -6,10 +6,10 @@
[node name="Scale100" type="Node2D" parent="."]
rotation = 2.98023e-08
scale = Vector2( 100, 100 )
scale = Vector2(100, 100)
[node name="AxisMarker" parent="Scale100" instance=ExtResource( 1 )]
[node name="AxisMarker2" parent="Scale100/AxisMarker" instance=ExtResource( 1 )]
position = Vector2( 1.5, 1 )
position = Vector2(1.5, 1)
rotation = 0.349066

View File

@@ -2,9 +2,9 @@
[ext_resource path="res://marker/AxisMarker3D.tscn" type="PackedScene" id=1]
[node name="3D" type="Spatial"]
[node name="3D" type="Node3D"]
[node name="AxisMarker" parent="." instance=ExtResource( 1 )]
[node name="AxisMarker" parent="AxisMarker" instance=ExtResource( 1 )]
transform = Transform( 0.921381, -0.293412, 0.254887, 0.254887, 0.951251, 0.173648, -0.293412, -0.0950286, 0.951251, 1, 1, -1 )
transform = Transform3D(0.921381, -0.293412, 0.254887, 0.254887, 0.951251, 0.173648, -0.293412, -0.0950286, 0.951251, 1, 1, -1)

View File

@@ -1,6 +1,6 @@
[gd_resource type="Environment" load_steps=2 format=2]
[sub_resource type="ProceduralSky" id=1]
[sub_resource type="Sky" id=1]
[resource]
background_mode = 2

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
type="StreamTexture2D"
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
[params]

View File

@@ -1,4 +1,4 @@
tool
@tool
class_name AxisMarker2D, "res://marker/AxisMarker2D.svg"
extends Node2D

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/AxisMarker2D.svg-a52a23070c2ca9dcdd860a47183ce756.stex"
type="StreamTexture2D"
path="res://.godot/imported/AxisMarker2D.svg-a52a23070c2ca9dcdd860a47183ce756.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://marker/AxisMarker2D.svg"
dest_files=[ "res://.import/AxisMarker2D.svg-a52a23070c2ca9dcdd860a47183ce756.stex" ]
dest_files=["res://.godot/imported/AxisMarker2D.svg-a52a23070c2ca9dcdd860a47183ce756.stex"]
[params]

View File

@@ -8,33 +8,33 @@ script = ExtResource( 1 )
[node name="Origin" type="Node" parent="."]
[node name="Line" type="Line2D" parent="Origin"]
points = PoolVector2Array( 0, 0, 0, 0 )
points = PackedVector2Array(0, 0, 0, 0)
width = 0.1
default_color = Color( 0, 0.266667, 1, 1 )
default_color = Color(0, 0.266667, 1, 1)
__meta__ = {
"_edit_lock_": true
}
[node name="Center" type="Line2D" parent="."]
points = PoolVector2Array( -0.05, 0, 0.05, 0 )
points = PackedVector2Array(-0.05, 0, 0.05, 0)
width = 0.1
default_color = Color( 0, 0.266667, 1, 1 )
default_color = Color(0, 0.266667, 1, 1)
__meta__ = {
"_edit_lock_": true
}
[node name="X" type="Line2D" parent="."]
points = PoolVector2Array( 0.05, 0, 1, 0 )
points = PackedVector2Array(0.05, 0, 1, 0)
width = 0.1
default_color = Color( 0.866667, 0, 0, 1 )
default_color = Color(0.866667, 0, 0, 1)
__meta__ = {
"_edit_lock_": true
}
[node name="Y" type="Line2D" parent="."]
points = PoolVector2Array( 0, 0.05, 0, 1 )
points = PackedVector2Array(0, 0.05, 0, 1)
width = 0.1
default_color = Color( 0, 0.866667, 0, 1 )
default_color = Color(0, 0.866667, 0, 1)
__meta__ = {
"_edit_lock_": true
}

View File

@@ -1,17 +1,17 @@
tool
@tool
class_name AxisMarker3D, "res://marker/AxisMarker3D.svg"
extends Spatial
extends Node3D
func _process(_delta):
var holder: Spatial = get_child(0).get_child(0)
var cube: Spatial = holder.get_child(0)
var holder: Node3D = get_child(0).get_child(0)
var cube: Node3D = holder.get_child(0)
# "Hide" the origin vector if the AxisMarker is at (0, 0, 0)
if translation == Vector3():
holder.transform = Transform()
cube.transform = Transform().scaled(Vector3.ONE * 0.0001)
if position == Vector3():
holder.transform = Transform3D()
cube.transform = Transform3D().scaled(Vector3.ONE * 0.0001)
return
holder.transform = Transform(Basis(), translation / 2)
holder.transform = holder.transform.looking_at(translation, Vector3.UP)
holder.transform = Transform3D(Basis(), position / 2)
holder.transform = holder.transform.looking_at(position, Vector3.UP)
holder.transform = get_parent().global_transform * holder.transform
cube.transform = Transform(Basis().scaled(Vector3(0.1, 0.1, translation.length())))
cube.transform = Transform3D(Basis().scaled(Vector3(0.1, 0.1, position.length())))

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/AxisMarker3D.svg-613a31ba426aca266949d27353333ae4.stex"
type="StreamTexture2D"
path="res://.godot/imported/AxisMarker3D.svg-613a31ba426aca266949d27353333ae4.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://marker/AxisMarker3D.svg"
dest_files=[ "res://.import/AxisMarker3D.svg-613a31ba426aca266949d27353333ae4.stex" ]
dest_files=["res://.godot/imported/AxisMarker3D.svg-613a31ba426aca266949d27353333ae4.stex"]
[params]

View File

@@ -2,49 +2,49 @@
[ext_resource path="res://marker/AxisMarker3D.gd" type="Script" id=1]
[sub_resource type="CubeMesh" id=1]
size = Vector3( 1, 1, 1 )
[sub_resource type="BoxMesh" id=1]
size = Vector3(1, 1, 1)
[sub_resource type="SpatialMaterial" id=2]
albedo_color = Color( 0, 1, 1, 1 )
[sub_resource type="StandardMaterial3D" id=2]
albedo_color = Color(0, 1, 1, 1)
[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 1, 0, 0, 1 )
[sub_resource type="StandardMaterial3D" id=3]
albedo_color = Color(1, 0, 0, 1)
[sub_resource type="SpatialMaterial" id=4]
albedo_color = Color( 0, 1, 0, 1 )
[sub_resource type="StandardMaterial3D" id=4]
albedo_color = Color(0, 1, 0, 1)
[sub_resource type="SpatialMaterial" id=5]
albedo_color = Color( 0, 0, 1, 1 )
[sub_resource type="StandardMaterial3D" id=5]
albedo_color = Color(0, 0, 1, 1)
[node name="AxisMarker" type="Spatial"]
[node name="AxisMarker" type="Node3D"]
script = ExtResource( 1 )
[node name="Origin" type="Node" parent="."]
[node name="Holder" type="Spatial" parent="Origin"]
[node name="Holder" type="Node3D" parent="Origin"]
[node name="Cube" type="MeshInstance" parent="Origin/Holder"]
transform = Transform( 0.0001, 0, 0, 0, 0.0001, 0, 0, 0, 0.0001, 0, 0, 0 )
[node name="Cube" type="MeshInstance3D" parent="Origin/Holder"]
transform = Transform3D(0.0001, 0, 0, 0, 0.0001, 0, 0, 0, 0.0001, 0, 0, 0)
mesh = SubResource( 1 )
material/0 = SubResource( 2 )
surface_material_override/0 = SubResource( 2 )
[node name="Center" type="MeshInstance" parent="."]
transform = Transform( 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0 )
[node name="Center" type="MeshInstance3D" parent="."]
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
mesh = SubResource( 1 )
material/0 = SubResource( 2 )
surface_material_override/0 = SubResource( 2 )
[node name="X" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.55, 0, 0 )
[node name="X" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.55, 0, 0)
mesh = SubResource( 1 )
material/0 = SubResource( 3 )
surface_material_override/0 = SubResource( 3 )
[node name="Y" type="MeshInstance" parent="."]
transform = Transform( 0.1, 0, 0, 0, 1, 0, 0, 0, 0.1, 0, 0.55, 0 )
[node name="Y" type="MeshInstance3D" parent="."]
transform = Transform3D(0.1, 0, 0, 0, 1, 0, 0, 0, 0.1, 0, 0.55, 0)
mesh = SubResource( 1 )
material/0 = SubResource( 4 )
surface_material_override/0 = SubResource( 4 )
[node name="Z" type="MeshInstance" parent="."]
transform = Transform( 0.1, 0, 0, 0, 0.1, 0, 0, 0, 1, 0, 0, 0.55 )
[node name="Z" type="MeshInstance3D" parent="."]
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 1, 0, 0, 0.55)
mesh = SubResource( 1 )
material/0 = SubResource( 5 )
surface_material_override/0 = SubResource( 5 )

View File

@@ -8,17 +8,17 @@
config_version=4
_global_script_classes=[ {
_global_script_classes=[{
"base": "Node2D",
"class": "AxisMarker2D",
"language": "GDScript",
"class": &"AxisMarker2D",
"language": &"GDScript",
"path": "res://marker/AxisMarker2D.gd"
}, {
"base": "Spatial",
"class": "AxisMarker3D",
"language": "GDScript",
"base": "Node3D",
"class": &"AxisMarker3D",
"language": &"GDScript",
"path": "res://marker/AxisMarker3D.gd"
} ]
}]
_global_script_class_icons={
"AxisMarker2D": "res://marker/AxisMarker2D.svg",
"AxisMarker3D": "res://marker/AxisMarker3D.svg"
@@ -26,7 +26,7 @@ _global_script_class_icons={
[application]
config/name="Matrix Transform"
config/name="Matrix Transform3D"
config/description="This demo project is a playground where you can visualize how transforms work.
Do not 'run' this project. You are only meant to use it within the Godot editor.

View File

@@ -1,7 +1,7 @@
extends Control
# The OpenSimplexNoise object.
onready var noise: OpenSimplexNoise = $SeamlessNoiseTexture.texture.noise
@onready var noise: OpenSimplexNoise = $SeamlessNoiseTexture.texture.noise
# Various noise parameters.
var min_noise = -1
@@ -35,7 +35,7 @@ func _on_DocumentationButton_pressed():
func _on_RandomSeedButton_pressed():
$ParameterContainer/SeedSpinBox.value = floor(rand_range(-2147483648, 2147483648))
$ParameterContainer/SeedSpinBox.value = floor(randf_range(-2147483648, 2147483648))
func _on_SeedSpinBox_value_changed(value):

View File

@@ -1,6 +1,6 @@
[gd_resource type="ShaderMaterial" load_steps=2 format=2]
[ext_resource path="res://OpenSimplexNoise_Viewer.shader" type="Shader" id=1]
[ext_resource path="res://OpenSimplexNoise_Viewer.gdshader" type="Shader" id=1]
[resource]
shader = ExtResource( 1 )

View File

@@ -11,10 +11,10 @@ noise = SubResource( 1 )
[node name="OpenSimplexNoise Viewer" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 24.0
margin_top = 24.0
margin_right = -24.0
margin_bottom = -24.0
offset_left = 24.0
offset_top = 24.0
offset_right = -24.0
offset_bottom = -24.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
@@ -26,10 +26,10 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -196.0
margin_top = -256.0
margin_right = 316.0
margin_bottom = 256.0
offset_left = -196.0
offset_top = -256.0
offset_right = 316.0
offset_bottom = 256.0
grow_horizontal = 2
grow_vertical = 2
texture = SubResource( 2 )
@@ -40,15 +40,15 @@ __meta__ = {
[node name="ButtonsContainer" type="VBoxContainer" parent="."]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -137.0
margin_bottom = 44.0
offset_left = -137.0
offset_bottom = 44.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DocumentationButton" type="Button" parent="ButtonsContainer"]
margin_right = 137.0
margin_bottom = 20.0
offset_right = 137.0
offset_bottom = 20.0
grow_horizontal = 0
text = "API Documentation"
__meta__ = {
@@ -56,9 +56,9 @@ __meta__ = {
}
[node name="RandomSeedButton" type="Button" parent="ButtonsContainer"]
margin_top = 24.0
margin_right = 137.0
margin_bottom = 44.0
offset_top = 24.0
offset_right = 137.0
offset_bottom = 44.0
grow_horizontal = 0
text = "Random Seed"
__meta__ = {
@@ -66,15 +66,15 @@ __meta__ = {
}
[node name="ParameterContainer" type="VBoxContainer" parent="."]
margin_right = 280.0
margin_bottom = 136.0
offset_right = 280.0
offset_bottom = 136.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SeedSpinBox" type="SpinBox" parent="ParameterContainer"]
margin_right = 280.0
margin_bottom = 24.0
offset_right = 280.0
offset_bottom = 24.0
min_value = -2.14748e+09
max_value = 2.14748e+09
allow_greater = true
@@ -82,34 +82,34 @@ allow_lesser = true
prefix = "Seed:"
[node name="LacunaritySpinBox" type="SpinBox" parent="ParameterContainer"]
margin_top = 28.0
margin_right = 280.0
margin_bottom = 52.0
offset_top = 28.0
offset_right = 280.0
offset_bottom = 52.0
step = 0.1
allow_greater = true
prefix = "Lacunarity:"
[node name="PeriodSpinBox" type="SpinBox" parent="ParameterContainer"]
margin_top = 56.0
margin_right = 280.0
margin_bottom = 80.0
offset_top = 56.0
offset_right = 280.0
offset_bottom = 80.0
min_value = -100000.0
max_value = 100000.0
allow_greater = true
prefix = "Period:"
[node name="PersistenceSpinBox" type="SpinBox" parent="ParameterContainer"]
margin_top = 84.0
margin_right = 280.0
margin_bottom = 108.0
offset_top = 84.0
offset_right = 280.0
offset_bottom = 108.0
max_value = 1000.0
allow_greater = true
prefix = "Persistance:"
[node name="OctavesSpinBox" type="SpinBox" parent="ParameterContainer"]
margin_top = 112.0
margin_right = 280.0
margin_bottom = 136.0
offset_top = 112.0
offset_right = 280.0
offset_bottom = 136.0
min_value = 1.0
max_value = 9.0
value = 1.0
@@ -118,16 +118,16 @@ prefix = "Octaves:"
[node name="ClipContainer" type="VBoxContainer" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -52.0
margin_right = 280.0
offset_top = -52.0
offset_right = 280.0
grow_vertical = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MinClipSpinBox" type="SpinBox" parent="ClipContainer"]
margin_right = 280.0
margin_bottom = 24.0
offset_right = 280.0
offset_bottom = 24.0
min_value = -1.0
max_value = 1.0
step = 0.01
@@ -135,9 +135,9 @@ value = -1.0
prefix = "Min:"
[node name="MaxClipSpinBox" type="SpinBox" parent="ClipContainer"]
margin_top = 28.0
margin_right = 280.0
margin_bottom = 52.0
offset_top = 28.0
offset_right = 280.0
offset_bottom = 52.0
min_value = -1.0
max_value = 1.0
step = 0.01

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
type="StreamTexture2D"
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
[params]

View File

@@ -1,6 +1,6 @@
using Godot;
public class MonoTest : Node
public partial class MonoTest : Node
{
public string OperatingSystem()
{

View File

@@ -1,4 +1,4 @@
<Project Sdk="Godot.NET.Sdk/3.3.0">
<Project Sdk="Godot.NET.Sdk/4.0.0-dev5">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<RootNamespace>OperatingSystemTesting</RootNamespace>

View File

@@ -27,7 +27,7 @@ func _on_ChangeWindowIcon_pressed():
func _on_MoveWindowToForeground_pressed():
OS.set_window_title("Will move window to foreground in 5 seconds, try unfocusing the window...")
yield(get_tree().create_timer(5), "timeout")
await get_tree().create_timer(5).timeout
OS.move_window_to_foreground()
# Restore the previous window title.
OS.set_window_title(ProjectSettings.get_setting("application/config/name"))
@@ -35,7 +35,7 @@ func _on_MoveWindowToForeground_pressed():
func _on_RequestAttention_pressed():
OS.set_window_title("Will request attention in 5 seconds, try unfocusing the window...")
yield(get_tree().create_timer(5), "timeout")
await get_tree().create_timer(5).timeout
OS.request_attention()
# Restore the previous window title.
OS.set_window_title(ProjectSettings.get_setting("application/config/name"))
@@ -50,7 +50,7 @@ func _on_VibrateDeviceLong_pressed():
func _on_AddGlobalMenuItems_pressed():
OS.global_menu_add_item("Hello", "World", 0, null)
OS.global_menu_add_item("Hello", "World3D", 0, null)
OS.global_menu_add_separator("Hello")
OS.global_menu_add_item("Hello2", "World2", 0, null)

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
type="StreamTexture2D"
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
@@ -10,25 +10,25 @@ metadata={
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
compress/streamed=false
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0

View File

@@ -1,7 +1,7 @@
extends Node
onready var rtl = $HBoxContainer/Features
onready var mono_test = $MonoTest
@onready var rtl = $HBoxContainer/Features
@onready var mono_test = $MonoTest
# Returns a human-readable string from a date and time, date, or time dictionary.
@@ -61,7 +61,7 @@ func add_line(key, value):
func _ready():
add_header("Audio")
var audio_drivers = PoolStringArray()
var audio_drivers = PackedStringArray()
for i in OS.get_audio_driver_count():
audio_drivers.push_back(OS.get_audio_driver_name(i))
add_line("Available drivers", audio_drivers.join(", "))
@@ -110,8 +110,8 @@ func _ready():
add_line("Model name", OS.get_model_name())
add_line("Processor count", OS.get_processor_count())
add_line("Device unique ID", OS.get_unique_id())
add_line("Video adapter name", VisualServer.get_video_adapter_name())
add_line("Video adapter vendor", VisualServer.get_video_adapter_vendor())
add_line("Video adapter name", RenderingServer.get_video_adapter_name())
add_line("Video adapter vendor", RenderingServer.get_video_adapter_vendor())
add_header("Input")
add_line("Latin keyboard variant", OS.get_latin_keyboard_variant())
@@ -148,7 +148,7 @@ func _ready():
add_line("Ringtones", OS.get_system_dir(OS.SYSTEM_DIR_RINGTONES))
add_header("Video")
var video_drivers = PoolStringArray()
var video_drivers = PackedStringArray()
for i in OS.get_video_driver_count():
video_drivers.push_back(OS.get_video_driver_name(i))
add_line("Available drivers", video_drivers.join(", "))

View File

@@ -1,18 +1,18 @@
[gd_scene load_steps=8 format=2]
[ext_resource path="res://os_test.gd" type="Script" id=1]
[ext_resource path="res://noto_sans_ui_bold.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://noto_sans_ui_regular.ttf" type="DynamicFontData" id=3]
[ext_resource path="res://noto_sans_ui_bold.ttf" type="FontData" id=2]
[ext_resource path="res://noto_sans_ui_regular.ttf" type="FontData" id=3]
[ext_resource path="res://actions.gd" type="Script" id=4]
[sub_resource type="DynamicFont" id=1]
[sub_resource type="Font" id=1]
size = 14
font_data = ExtResource( 3 )
[sub_resource type="Theme" id=2]
default_font = SubResource( 1 )
[sub_resource type="DynamicFont" id=3]
[sub_resource type="Font" id=3]
size = 14
font_data = ExtResource( 2 )
@@ -28,18 +28,18 @@ __meta__ = {
[node name="HBoxContainer" type="HBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = 20.0
margin_right = -20.0
margin_bottom = -20.0
offset_left = 20.0
offset_top = 20.0
offset_right = -20.0
offset_bottom = -20.0
custom_constants/separation = 20
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Features" type="RichTextLabel" parent="HBoxContainer"]
margin_right = 482.0
margin_bottom = 560.0
offset_right = 482.0
offset_bottom = 560.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/line_separation = 4
@@ -51,17 +51,17 @@ __meta__ = {
}
[node name="Actions" type="VBoxContainer" parent="HBoxContainer"]
margin_left = 502.0
margin_right = 984.0
margin_bottom = 560.0
offset_left = 502.0
offset_right = 984.0
offset_bottom = 560.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 20
script = ExtResource( 4 )
[node name="Label" type="Label" parent="HBoxContainer/Actions"]
margin_right = 482.0
margin_bottom = 20.0
offset_right = 482.0
offset_bottom = 20.0
custom_fonts/font = SubResource( 3 )
text = "Actions"
align = 1
@@ -70,9 +70,9 @@ __meta__ = {
}
[node name="GridContainer" type="GridContainer" parent="HBoxContainer/Actions"]
margin_top = 40.0
margin_right = 482.0
margin_bottom = 560.0
offset_top = 40.0
offset_right = 482.0
offset_bottom = 560.0
size_flags_horizontal = 3
size_flags_vertical = 3
columns = 2
@@ -81,118 +81,118 @@ __meta__ = {
}
[node name="OpenShellWeb" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_right = 239.0
margin_bottom = 70.0
offset_right = 239.0
offset_bottom = 70.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Open Shell (web)"
[node name="OpenShellFolder" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_left = 243.0
margin_right = 482.0
margin_bottom = 70.0
offset_left = 243.0
offset_right = 482.0
offset_bottom = 70.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Open Shell (folder)"
[node name="ChangeWindowTitle" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_top = 74.0
margin_right = 239.0
margin_bottom = 144.0
offset_top = 74.0
offset_right = 239.0
offset_bottom = 144.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Change Window Title"
[node name="ChangeWindowIcon" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_left = 243.0
margin_top = 74.0
margin_right = 482.0
margin_bottom = 144.0
offset_left = 243.0
offset_top = 74.0
offset_right = 482.0
offset_bottom = 144.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Change Window Icon"
[node name="MoveWindowToForeground" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_top = 148.0
margin_right = 239.0
margin_bottom = 218.0
offset_top = 148.0
offset_right = 239.0
offset_bottom = 218.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Move Window to Foreground"
[node name="RequestAttention" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_left = 243.0
margin_top = 148.0
margin_right = 482.0
margin_bottom = 218.0
offset_left = 243.0
offset_top = 148.0
offset_right = 482.0
offset_bottom = 218.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Request Attention"
[node name="VibrateDeviceShort" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_top = 222.0
margin_right = 239.0
margin_bottom = 292.0
offset_top = 222.0
offset_right = 239.0
offset_bottom = 292.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Vibrate Device (200 ms)"
[node name="VibrateDeviceLong" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_left = 243.0
margin_top = 222.0
margin_right = 482.0
margin_bottom = 292.0
offset_left = 243.0
offset_top = 222.0
offset_right = 482.0
offset_bottom = 292.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Vibrate Device (1000 ms)"
[node name="AddGlobalMenuItems" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_top = 296.0
margin_right = 239.0
margin_bottom = 366.0
offset_top = 296.0
offset_right = 239.0
offset_bottom = 366.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Add Global Menu Items"
[node name="RemoveGlobalMenuItem" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_left = 243.0
margin_top = 296.0
margin_right = 482.0
margin_bottom = 366.0
offset_left = 243.0
offset_top = 296.0
offset_right = 482.0
offset_bottom = 366.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Remove Global Menu Item"
[node name="GetClipboard" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_top = 370.0
margin_right = 239.0
margin_bottom = 440.0
offset_top = 370.0
offset_right = 239.0
offset_bottom = 440.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Get Clipboard Contents"
[node name="SetClipboard" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_left = 243.0
margin_top = 370.0
margin_right = 482.0
margin_bottom = 440.0
offset_left = 243.0
offset_top = 370.0
offset_right = 482.0
offset_bottom = 440.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Set Clipboard Contents"
[node name="DisplayAlert" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_top = 444.0
margin_right = 239.0
margin_bottom = 514.0
offset_top = 444.0
offset_right = 239.0
offset_bottom = 514.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Display Alert"
[node name="KillCurrentProcess" type="Button" parent="HBoxContainer/Actions/GridContainer"]
margin_left = 243.0
margin_top = 444.0
margin_right = 482.0
margin_bottom = 514.0
offset_left = 243.0
offset_top = 444.0
offset_right = 482.0
offset_bottom = 514.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Kill Current Process"

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
type="StreamTexture2D"
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
[params]

View File

@@ -5,7 +5,7 @@ func _ready():
# process even when the SceneTree is paused. Without that it would
# not be able to unpause the game. Note that you can set this through
# the inspector as well.
pause_mode = Node.PAUSE_MODE_PROCESS
process_mode = Node.PROCESS_MODE_ALWAYS
func _toggled(button_pressed):

View File

@@ -23,7 +23,7 @@ window/stretch/aspect="expand"
[gdnative]
singletons=[ ]
singletons=[]
[rendering]

View File

@@ -2,7 +2,7 @@
[ext_resource path="res://pause_button.gd" type="Script" id=1]
[sub_resource type="CubeMesh" id=1]
[sub_resource type="BoxMesh" id=1]
[sub_resource type="Animation" id=2]
length = 10.0
@@ -14,20 +14,20 @@ tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 10 ),
"transitions": PoolRealArray( 1, 1 ),
"times": PackedFloat32Array(0, 10),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, -360, 0 ) ]
"values": [Vector3(0, 0, 0), Vector3(0, -360, 0)]
}
[node name="PauseScene" type="Spatial"]
[node name="PauseScene" type="Node3D"]
[node name="Cube" type="MeshInstance" parent="."]
[node name="Cube" type="MeshInstance3D" parent="."]
mesh = SubResource( 1 )
material/0 = null
surface_material_override/0 = null
[node name="Camera" type="Camera" parent="."]
transform = Transform( 0.571594, 0.275303, -0.772974, 0, 0.942035, 0.335515, 0.820537, -0.191779, 0.538461, -5.59754, 2.75935, 4.01344 )
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(0.571594, 0.275303, -0.772974, 0, 0.942035, 0.335515, 0.820537, -0.191779, 0.538461, -5.59754, 2.75935, 4.01344)
fov = 74.0
near = 0.1
@@ -35,21 +35,21 @@ near = 0.1
autoplay = "spin"
anims/spin = SubResource( 2 )
[node name="SpotLight" type="SpotLight" parent="."]
transform = Transform( 0.792992, 0.251051, -0.555101, 0, 0.911149, 0.412078, 0.609232, -0.326775, 0.722534, -3.05357, 1.80053, 3.64099 )
[node name="SpotLight3D" type="SpotLight3D" parent="."]
transform = Transform3D(0.792992, 0.251051, -0.555101, 0, 0.911149, 0.412078, 0.609232, -0.326775, 0.722534, -3.05357, 1.80053, 3.64099)
spot_range = 6.0
[node name="PauseButton" type="Button" parent="."]
pause_mode = 2
process_mode = 3
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -125.0
margin_top = 150.0
margin_right = 125.0
margin_bottom = 200.0
rect_pivot_offset = Vector2( 123, 25 )
offset_left = -125.0
offset_top = 150.0
offset_right = 125.0
offset_bottom = 200.0
rect_pivot_offset = Vector2(123, 25)
toggle_mode = true
text = "Pause"
script = ExtResource( 1 )

View File

@@ -2,7 +2,7 @@ extends Control
var mousepos
onready var observer = $"../Observer"
@onready var observer = $"../Observer"
func _ready():
if not check_wm_api():

View File

@@ -1,8 +1,8 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
type="StreamTexture2D"
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
@@ -10,7 +10,7 @@ metadata={
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"]
[params]

View File

@@ -1,4 +1,4 @@
extends KinematicBody
extends CharacterBody3D
const STATE_MENU = 0
const STATE_GRAB = 1
@@ -6,14 +6,14 @@ const STATE_GRAB = 1
var r_pos = Vector2()
var state = STATE_MENU
onready var camera = $Camera
@onready var camera = $Camera3D
func _process(delta):
if state != STATE_GRAB:
return
var x_movement = Input.get_action_strength("move_right") - Input.get_action_strength("move_left")
var z_movement = Input.get_action_strength("move_backwards") - Input.get_action_strength("move_forward")
var x_movement = Input.get_axis(&"move_left", &"move_right")
var z_movement = Input.get_axis(&"move_forward", &"move_backwards")
var dir = direction(Vector3(x_movement, 0, z_movement))
transform.origin += dir * 10 * delta

View File

@@ -2,19 +2,19 @@
[ext_resource path="res://observer/observer.gd" type="Script" id=1]
[sub_resource type="BoxShape" id=1]
[sub_resource type="BoxShape3D" id=1]
[node name="Observer" type="KinematicBody"]
[node name="Observer" type="CharacterBody3D"]
script = ExtResource( 1 )
[node name="CollisionShape" type="CollisionShape" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource( 1 )
[node name="Camera" type="Camera" parent="."]
[node name="Camera3D" type="Camera3D" parent="."]
fov = 74.0
near = 0.1
far = 1000.0
[node name="OmniLight" type="OmniLight" parent="."]
[node name="OmniLight3D" type="OmniLight3D" parent="."]
omni_range = 8.0
omni_attenuation = 2.0

View File

@@ -26,48 +26,48 @@ window/resizable=true
[gdnative]
singletons=[ ]
singletons=[]
[input]
mouse_mode_captured={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777246,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777246,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
]
}
mouse_mode_hidden={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777245,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777245,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
]
}
mouse_mode_visible={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777244,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777244,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
]
}
move_backwards={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":83,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777234,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
]
}
move_forward={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":87,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777232,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
]
}
move_left={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":65,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777231,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
]
}
move_right={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":68,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"store_command":true,"alt_pressed":false,"shift_pressed":false,"meta_pressed":false,"command_pressed":false,"pressed":false,"keycode":16777233,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
]
}
[rendering]

View File

@@ -3,21 +3,21 @@
[ext_resource path="res://observer/observer.tscn" type="PackedScene" id=1]
[ext_resource path="res://control.gd" type="Script" id=2]
[sub_resource type="SpatialMaterial" id=1]
albedo_color = Color( 0.835294, 0.133333, 0.133333, 1 )
[sub_resource type="StandardMaterial3D" id=1]
albedo_color = Color(0.835294, 0.133333, 0.133333, 1)
[sub_resource type="CubeMesh" id=2]
[sub_resource type="BoxMesh" id=2]
material = SubResource( 1 )
size = Vector3( 5, 5, 5 )
size = Vector3(5, 5, 5)
[node name="WindowManagement" type="Spatial"]
[node name="WindowManagement" type="Node3D"]
[node name="Observer" parent="." instance=ExtResource( 1 )]
transform = Transform( 0.910685, 0, -0.4131, 0, 1, 0, 0.4131, 0, 0.910685, -4.81287, -0.152566, 9.90641 )
transform = Transform3D(0.910685, 0, -0.4131, 0, 1, 0, 0.4131, 0, 0.910685, -4.81287, -0.152566, 9.90641)
[node name="TestCube" type="MeshInstance" parent="."]
[node name="TestCube" type="MeshInstance3D" parent="."]
mesh = SubResource( 2 )
material/0 = null
surface_material_override/0 = null
[node name="Control" type="Control" parent="."]
anchor_right = 1.0
@@ -27,77 +27,77 @@ size_flags_vertical = 2
script = ExtResource( 2 )
[node name="Button_Fullscreen" type="Button" parent="Control"]
margin_left = 20.0
margin_top = 20.0
margin_right = 120.0
margin_bottom = 45.0
offset_left = 20.0
offset_top = 20.0
offset_right = 120.0
offset_bottom = 45.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "Fullscreen"
[node name="Button_FixedSize" type="Button" parent="Control"]
margin_left = 20.0
margin_top = 60.0
margin_right = 120.0
margin_bottom = 85.0
offset_left = 20.0
offset_top = 60.0
offset_right = 120.0
offset_bottom = 85.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "FixedSize"
[node name="Button_Minimized" type="Button" parent="Control"]
margin_left = 20.0
margin_top = 100.0
margin_right = 120.0
margin_bottom = 125.0
offset_left = 20.0
offset_top = 100.0
offset_right = 120.0
offset_bottom = 125.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "Minimized"
[node name="Button_Maximized" type="Button" parent="Control"]
margin_left = 20.0
margin_top = 140.0
margin_right = 120.0
margin_bottom = 165.0
offset_left = 20.0
offset_top = 140.0
offset_right = 120.0
offset_bottom = 165.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "Maximized"
[node name="Button_MoveTo" type="Button" parent="Control"]
margin_left = 20.0
margin_top = 178.0
margin_right = 120.0
margin_bottom = 203.0
offset_left = 20.0
offset_top = 178.0
offset_right = 120.0
offset_bottom = 203.0
size_flags_horizontal = 2
size_flags_vertical = 2
text = "MoveTo"
[node name="Button_Resize" type="Button" parent="Control"]
margin_left = 20.0
margin_top = 218.0
margin_right = 120.0
margin_bottom = 243.0
offset_left = 20.0
offset_top = 218.0
offset_right = 120.0
offset_bottom = 243.0
size_flags_horizontal = 2
size_flags_vertical = 2
text = "Resize"
[node name="Button_Screen0" type="Button" parent="Control"]
margin_left = 20.0
margin_top = 258.0
margin_right = 120.0
margin_bottom = 283.0
offset_left = 20.0
offset_top = 258.0
offset_right = 120.0
offset_bottom = 283.0
size_flags_horizontal = 2
size_flags_vertical = 2
text = "Screen0"
[node name="Button_Screen1" type="Button" parent="Control"]
margin_left = 20.0
margin_top = 298.0
margin_right = 120.0
margin_bottom = 323.0
offset_left = 20.0
offset_top = 298.0
offset_right = 120.0
offset_bottom = 323.0
size_flags_horizontal = 2
size_flags_vertical = 2
text = "Screen1"
@@ -105,10 +105,10 @@ text = "Screen1"
[node name="Button_MouseModeVisible" type="Button" parent="Control"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -221.0
margin_right = 225.0
margin_bottom = -196.0
offset_left = 20.0
offset_top = -221.0
offset_right = 225.0
offset_bottom = -196.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
@@ -118,10 +118,10 @@ align = 0
[node name="Button_MouseModeHidden" type="Button" parent="Control"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -186.0
margin_right = 225.0
margin_bottom = -161.0
offset_left = 20.0
offset_top = -186.0
offset_right = 225.0
offset_bottom = -161.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
@@ -131,10 +131,10 @@ align = 0
[node name="Button_MouseModeCaptured" type="Button" parent="Control"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -151.0
margin_right = 225.0
margin_bottom = -126.0
offset_left = 20.0
offset_top = -151.0
offset_right = 225.0
offset_bottom = -126.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
@@ -144,10 +144,10 @@ align = 0
[node name="Label_Mode" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 140.0
margin_right = -20.0
margin_bottom = 153.0
offset_left = -140.0
offset_top = 140.0
offset_right = -20.0
offset_bottom = 153.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Mode:"
@@ -155,10 +155,10 @@ text = "Mode:"
[node name="Label_Position" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 60.0
margin_right = -20.0
margin_bottom = 73.0
offset_left = -140.0
offset_top = 60.0
offset_right = -20.0
offset_bottom = 73.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Position:"
@@ -167,10 +167,10 @@ valign = 1
[node name="Label_Size" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 100.0
margin_right = -20.0
margin_bottom = 113.0
offset_left = -140.0
offset_top = 100.0
offset_right = -20.0
offset_bottom = 113.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Size:"
@@ -179,10 +179,10 @@ valign = 1
[node name="Label_MousePosition" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 220.0
margin_right = -20.0
margin_bottom = 153.0
offset_left = -140.0
offset_top = 220.0
offset_right = -20.0
offset_bottom = 153.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Mouse Position:"
@@ -190,10 +190,10 @@ text = "Mouse Position:"
[node name="Label_Screen_Count" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 300.0
margin_right = -20.0
margin_bottom = 314.0
offset_left = -140.0
offset_top = 300.0
offset_right = -20.0
offset_bottom = 314.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Screen_Count:"
@@ -202,10 +202,10 @@ valign = 1
[node name="Label_Screen_Current" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 20.0
margin_right = -20.0
margin_bottom = 40.0
offset_left = -140.0
offset_top = 20.0
offset_right = -20.0
offset_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Screen:"
@@ -214,10 +214,10 @@ valign = 1
[node name="Label_Screen0_Resolution" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 340.0
margin_right = -16.0
margin_bottom = 353.0
offset_left = -140.0
offset_top = 340.0
offset_right = -16.0
offset_bottom = 353.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Screen0 Resolution: "
@@ -226,10 +226,10 @@ valign = 1
[node name="Label_Screen0_Position" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 380.0
margin_right = -16.0
margin_bottom = 396.0
offset_left = -140.0
offset_top = 380.0
offset_right = -16.0
offset_bottom = 396.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Screen0 Position: "
@@ -238,10 +238,10 @@ valign = 1
[node name="Label_Screen0_DPI" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 416.0
margin_right = -16.0
margin_bottom = 432.0
offset_left = -140.0
offset_top = 416.0
offset_right = -16.0
offset_bottom = 432.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Screen0 DPI:"
@@ -250,10 +250,10 @@ valign = 1
[node name="Label_Screen1_Resolution" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 451.0
margin_right = -16.0
margin_bottom = 467.0
offset_left = -140.0
offset_top = 451.0
offset_right = -16.0
offset_bottom = 467.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Screen1 Resolution: "
@@ -262,10 +262,10 @@ valign = 1
[node name="Label_Screen1_Position" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 489.0
margin_right = -16.0
margin_bottom = 505.0
offset_left = -140.0
offset_top = 489.0
offset_right = -16.0
offset_bottom = 505.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Screen1 Position: "
@@ -274,10 +274,10 @@ valign = 1
[node name="Label_Screen1_DPI" type="Label" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -140.0
margin_top = 524.0
margin_right = -16.0
margin_bottom = 540.0
offset_left = -140.0
offset_top = 524.0
offset_right = -16.0
offset_bottom = 540.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Screen1 DPI:"
@@ -286,10 +286,10 @@ valign = 1
[node name="Label_KeyInfo" type="Label" parent="Control"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -122.0
margin_right = 286.0
margin_bottom = -63.0
offset_left = 20.0
offset_top = -122.0
offset_right = 286.0
offset_bottom = -63.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "F1: Activate MOUSE_MODE_VISIBLE
@@ -300,10 +300,10 @@ valign = 2
[node name="Label_MouseModeCaptured_KeyInfo" type="Label" parent="Control"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -65.0
margin_right = 286.0
margin_bottom = -11.0
offset_left = 20.0
offset_top = -65.0
offset_right = 286.0
offset_bottom = -11.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "ESC: Deactivate MOUSE_MODE_CAPTURED
@@ -314,29 +314,29 @@ valign = 2
[node name="Label_MouseModes" type="Label" parent="Control"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -249.0
margin_right = 286.0
margin_bottom = -227.0
offset_left = 20.0
offset_top = -249.0
offset_right = 286.0
offset_bottom = -227.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "MouseModes:"
valign = 2
[node name="ImplementationDialog" type="AcceptDialog" parent="Control"]
margin_left = 200.0
margin_top = 100.0
margin_right = 600.0
margin_bottom = 450.0
offset_left = 200.0
offset_top = 100.0
offset_right = 600.0
offset_bottom = 450.0
size_flags_horizontal = 2
size_flags_vertical = 2
window_title = "Please be advised..."
[node name="Text" type="Label" parent="Control/ImplementationDialog"]
margin_left = 8.0
margin_top = 8.0
margin_right = 392.0
margin_bottom = 314.0
offset_left = 8.0
offset_top = 8.0
offset_right = 392.0
offset_bottom = 314.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "This is an Implementation-Test-Demo