chore: restructured project
All checks were successful
Coding Quality / Build and analyze (pull_request) Successful in 2m10s
All checks were successful
Coding Quality / Build and analyze (pull_request) Successful in 2m10s
This commit is contained in:
@@ -1 +0,0 @@
|
||||
extends Node2D
|
||||
@@ -1 +0,0 @@
|
||||
uid://1c5nfdg2aud4
|
||||
@@ -1,37 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://o2egm85y3wul"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://1c5nfdg2aud4" path="res://Games/SpaceResources/Assets/TheMoon/TheMoon.gd" id="1_sr6fy"]
|
||||
[ext_resource type="Texture2D" uid="uid://dng410xo7qqfv" path="res://Assets/PixelPlanets/a-moon.png" id="2_oy8k5"]
|
||||
|
||||
[node name="TheMoon" type="Node2D" unique_id=1994078602]
|
||||
script = ExtResource("1_sr6fy")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1777467462]
|
||||
texture_filter = 1
|
||||
texture_repeat = 1
|
||||
texture = ExtResource("2_oy8k5")
|
||||
|
||||
[node name="Control" type="Control" parent="." unique_id=1752474701]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_left = 20.0
|
||||
offset_top = 20.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 20.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Control" unique_id=61689214]
|
||||
layout_mode = 0
|
||||
offset_right = 110.0
|
||||
offset_bottom = 77.0
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer" unique_id=1786036540]
|
||||
layout_mode = 2
|
||||
text = "Iron"
|
||||
|
||||
[node name="Label2" type="Label" parent="Control/VBoxContainer" unique_id=374559952]
|
||||
layout_mode = 2
|
||||
text = "Copper"
|
||||
|
||||
[node name="Label3" type="Label" parent="Control/VBoxContainer" unique_id=1739358724]
|
||||
layout_mode = 2
|
||||
text = "Copper"
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 15 KiB |
@@ -1,39 +0,0 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://pyvdyr3pes5o"
|
||||
valid=false
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Games/SpaceResources/Planing/Movement 2D.svg"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
@@ -1,52 +0,0 @@
|
||||
extends Camera2D
|
||||
|
||||
class_name RecurionCamera
|
||||
|
||||
@export var movement_speed: float = 1
|
||||
|
||||
var mouse_pos_a: Vector2 = Vector2.ZERO
|
||||
var mouse_pos_b: Vector2 = Vector2.ZERO
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
process_keyboard_input(delta)
|
||||
process_mouse_input()
|
||||
|
||||
|
||||
func process_keyboard_input(delta: float):
|
||||
var direction: Vector2 = Vector2.ZERO
|
||||
|
||||
if (Input.is_action_pressed("w")):
|
||||
direction += Vector2.UP
|
||||
if (Input.is_action_pressed("s")):
|
||||
direction += Vector2.DOWN
|
||||
if (Input.is_action_pressed("a")):
|
||||
direction += Vector2.LEFT
|
||||
if (Input.is_action_pressed("d")):
|
||||
direction += Vector2.RIGHT
|
||||
direction = direction.normalized() * movement_speed
|
||||
position += direction * delta * 100
|
||||
|
||||
|
||||
func process_mouse_input():
|
||||
if (Input.is_action_just_pressed("mouse_down")):
|
||||
mouse_pos_a = get_global_mouse_position()
|
||||
mouse_pos_b = mouse_pos_a
|
||||
|
||||
elif (Input.is_action_pressed("mouse_down")):
|
||||
mouse_pos_b = get_global_mouse_position()
|
||||
|
||||
position = mouse_pos_a - mouse_pos_b + position
|
||||
|
||||
elif (Input.is_action_just_released("mouse_down")):
|
||||
mouse_pos_a = Vector2.ZERO
|
||||
mouse_pos_b = Vector2.ZERO
|
||||
|
||||
mouse_pos_b = mouse_pos_a
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if (event is InputEventMouseButton):
|
||||
var zoom_value = Input.get_axis("scroll_down", "scroll_up")
|
||||
if (zoom.y + zoom_value > 0.0):
|
||||
zoom += Vector2.ONE * zoom_value
|
||||
@@ -1 +0,0 @@
|
||||
uid://bqslv86lm78ci
|
||||
@@ -1 +0,0 @@
|
||||
extends Node
|
||||
@@ -1 +0,0 @@
|
||||
uid://bqlwhd5slcp0h
|
||||
@@ -1,12 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://cbqapc1frbhtv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dslwh6krdrhb" path="res://Games/SpaceResources/UI/ui.gd" id="1_0oc4u"]
|
||||
|
||||
[node name="Ui" type="Control" unique_id=1649292342]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_0oc4u")
|
||||
@@ -1 +0,0 @@
|
||||
extends Control
|
||||
@@ -1 +0,0 @@
|
||||
uid://dslwh6krdrhb
|
||||
Reference in New Issue
Block a user