parent
85a5520013
commit
d6842dd411
@ -0,0 +1,8 @@ |
|||||||
|
extends Sprite |
||||||
|
|
||||||
|
func _on_Camera_camera_moved(new_location): |
||||||
|
var map_x = new_location.x |
||||||
|
var map_y = new_location.z |
||||||
|
position.x = map_x |
||||||
|
position.y = map_y |
||||||
|
pass # Replace with function body. |
||||||
|
After Width: | Height: | Size: 7.5 KiB |
@ -0,0 +1,35 @@ |
|||||||
|
[remap] |
||||||
|
|
||||||
|
importer="texture" |
||||||
|
type="StreamTexture" |
||||||
|
path="res://.import/cursor.png-c6b2f949aa939fd4f4289acd7e6ebaee.stex" |
||||||
|
metadata={ |
||||||
|
"vram_texture": false |
||||||
|
} |
||||||
|
|
||||||
|
[deps] |
||||||
|
|
||||||
|
source_file="res://ui/map/cursor/cursor.png" |
||||||
|
dest_files=[ "res://.import/cursor.png-c6b2f949aa939fd4f4289acd7e6ebaee.stex" ] |
||||||
|
|
||||||
|
[params] |
||||||
|
|
||||||
|
compress/mode=0 |
||||||
|
compress/lossy_quality=0.7 |
||||||
|
compress/hdr_mode=0 |
||||||
|
compress/bptc_ldr=0 |
||||||
|
compress/normal_map=0 |
||||||
|
flags/repeat=0 |
||||||
|
flags/filter=true |
||||||
|
flags/mipmaps=false |
||||||
|
flags/anisotropic=false |
||||||
|
flags/srgb=2 |
||||||
|
process/fix_alpha_border=true |
||||||
|
process/premult_alpha=false |
||||||
|
process/HDR_as_SRGB=false |
||||||
|
process/invert_color=false |
||||||
|
process/normal_map_invert_y=false |
||||||
|
stream=false |
||||||
|
size_limit=0 |
||||||
|
detect_3d=true |
||||||
|
svg/scale=1.0 |
||||||
@ -1,6 +1,12 @@ |
|||||||
[gd_scene load_steps=2 format=2] |
[gd_scene load_steps=4 format=2] |
||||||
|
|
||||||
[ext_resource path="res://ui/map/map.gd" type="Script" id=1] |
[ext_resource path="res://ui/map/map.gd" type="Script" id=1] |
||||||
|
[ext_resource path="res://ui/map/cursor/cursor.png" type="Texture" id=2] |
||||||
|
[ext_resource path="res://ui/map/cursor/Cursor.gd" type="Script" id=3] |
||||||
|
|
||||||
[node name="Map" type="Node2D"] |
[node name="Map" type="Node2D"] |
||||||
script = ExtResource( 1 ) |
script = ExtResource( 1 ) |
||||||
|
|
||||||
|
[node name="Cursor" type="Sprite" parent="."] |
||||||
|
texture = ExtResource( 2 ) |
||||||
|
script = ExtResource( 3 ) |
||||||
|
|||||||
Loading…
Reference in new issue