Minimap
This commit is contained in:
parent
231ff2bb1d
commit
6c5350d47e
32 changed files with 114 additions and 186 deletions
|
|
@ -1,20 +1,21 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dsmwg1rxedi3x"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/objects/Minimap.gd" id="1_8abec"]
|
||||
[ext_resource type="Texture2D" uid="uid://dmvfwcq7wewxt" path="res://sprites/minimapoverlay.png" id="1_705ro"]
|
||||
[ext_resource type="Script" path="res://scripts/Ship/minimap.gd" id="1_l4bpl"]
|
||||
[ext_resource type="PackedScene" uid="uid://c7iafvpoopwc0" path="res://scenes/MinimapMarker.tscn" id="2_u2t3y"]
|
||||
[ext_resource type="Texture2D" uid="uid://5gkjqkiiiggg" path="res://sprites/Minimap/minimap_back.png" id="3_jpxtx"]
|
||||
|
||||
[node name="Minimap" type="Control"]
|
||||
layout_mode = 3
|
||||
anchor_right = 0.15
|
||||
anchor_bottom = 0.267
|
||||
offset_bottom = -0.240021
|
||||
anchor_right = 0.187
|
||||
anchor_bottom = 0.333
|
||||
offset_right = 0.639984
|
||||
offset_bottom = 0.23999
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_8abec")
|
||||
script = ExtResource("1_l4bpl")
|
||||
marker = ExtResource("2_u2t3y")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
position = Vector2(96, 96)
|
||||
texture = ExtResource("1_705ro")
|
||||
position = Vector2(120, 120)
|
||||
texture = ExtResource("3_jpxtx")
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://c7iafvpoopwc0"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/objects/MinimapMarker.gd" id="1_j37jj"]
|
||||
[ext_resource type="Texture2D" uid="uid://bavanv7ua7qlx" path="res://sprites/minimaphostile.png" id="2_pfl45"]
|
||||
[ext_resource type="Texture2D" uid="uid://bqn08woclyoj0" path="res://sprites/minimapbase.png" id="3_sgrhe"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1kf1jbsnw2m3" path="res://sprites/minimapbounty.png" id="4_4lyow"]
|
||||
[ext_resource type="Texture2D" uid="uid://de34fc1qbeajo" path="res://sprites/minimapquest.png" id="5_tj884"]
|
||||
[ext_resource type="Script" path="res://scripts/Ship/minimap_marker.gd" id="1_oa2nn"]
|
||||
[ext_resource type="Texture2D" uid="uid://bchjqn3y7ne64" path="res://sprites/Minimap/ship_marker.png" id="2_s6imu"]
|
||||
[ext_resource type="Texture2D" uid="uid://ct42eokncdaho" path="res://sprites/Minimap/base_marker.png" id="3_xt68o"]
|
||||
[ext_resource type="Texture2D" uid="uid://dn2cooyrbr1sh" path="res://sprites/Minimap/spinot_marker.png" id="4_araym"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8my0ci3s8e5a" path="res://sprites/Minimap/quest_marker.png" id="5_0jfap"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_7tbqy"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_pfl45")
|
||||
"texture": ExtResource("2_s6imu")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_sgrhe")
|
||||
"texture": ExtResource("3_xt68o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_4lyow")
|
||||
"texture": ExtResource("4_araym")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_tj884")
|
||||
"texture": ExtResource("5_0jfap")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
|
|
@ -27,9 +27,9 @@ animations = [{
|
|||
}]
|
||||
|
||||
[node name="MinimapMarker" type="Node2D"]
|
||||
script = ExtResource("1_j37jj")
|
||||
script = ExtResource("1_oa2nn")
|
||||
|
||||
[node name="MarkerSprite" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(82, 0)
|
||||
position = Vector2(104, 0)
|
||||
sprite_frames = SubResource("SpriteFrames_7tbqy")
|
||||
speed_scale = 0.0
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=15 format=3 uid="uid://dok3i8u5t1ka4"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://dok3i8u5t1ka4"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Ship/player_ship.gd" id="2_oqdd7"]
|
||||
[ext_resource type="Script" path="res://scripts/Ship/player_input_controller.gd" id="3_0e84a"]
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
[ext_resource type="Script" path="res://scripts/Ship/weapons.gd" id="6_f6fm2"]
|
||||
[ext_resource type="PackedScene" uid="uid://bf10g066l8grd" path="res://scenes/Ships/Modules/Weapons/laser.tscn" id="7_0ss0b"]
|
||||
[ext_resource type="Theme" uid="uid://dmb8bcdghdjd" path="res://main_theme.tres" id="8_8lpnq"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsmwg1rxedi3x" path="res://scenes/Minimap.tscn" id="9_7swe7"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_ry4sc"]
|
||||
resource_name = "money_counter"
|
||||
|
|
@ -173,6 +174,12 @@ script = SubResource("GDScript_rrgab")
|
|||
|
||||
[node name="NonColorableGUI" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Minimap" parent="NonColorableGUI" instance=ExtResource("9_7swe7")]
|
||||
offset_left = 520.0
|
||||
offset_top = 480.0
|
||||
offset_right = 520.0
|
||||
offset_bottom = 479.76
|
||||
|
||||
[node name="Camera" type="Camera2D" parent="."]
|
||||
zoom = Vector2(0.5, 0.5)
|
||||
script = ExtResource("5_rclap")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue