Remake art assets of the 2D Grid-based Navigation with Astar demo
@@ -1,22 +1,60 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://tileset/tileset.tres" type="TileSet" id=1]
|
||||
[ext_resource path="res://pathfind_astar.gd" type="Script" id=2]
|
||||
[ext_resource path="res://character.gd" type="Script" id=3]
|
||||
[ext_resource path="res://sprites/character.png" type="Texture" id=4]
|
||||
[ext_resource path="res://sprites/space.png" type="Texture" id=5]
|
||||
[ext_resource path="res://sprites/sparkle.png" type="Texture" id=6]
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id=1]
|
||||
blend_mode = 1
|
||||
particles_animation = true
|
||||
particles_anim_h_frames = 8
|
||||
particles_anim_v_frames = 1
|
||||
particles_anim_loop = false
|
||||
|
||||
[sub_resource type="Curve" id=2]
|
||||
_data = [ Vector2( 0, 0 ), 0.0, 1.15429, 0, 0, Vector2( 0.316832, 0.342045 ), 0.0399209, 0.0399209, 0, 0, Vector2( 1, 0.136364 ), -1.05591, 0.0, 0, 0 ]
|
||||
|
||||
[sub_resource type="Gradient" id=3]
|
||||
offsets = PoolRealArray( 0, 0.692737, 1 )
|
||||
colors = PoolColorArray( 1, 0.893555, 0, 1, 0.265625, 1, 0.490903, 1, 0.0154343, 0.688679, 0.987793, 1 )
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="Background" type="Sprite" parent="."]
|
||||
texture = ExtResource( 5 )
|
||||
offset = Vector2( 512, 300 )
|
||||
|
||||
[node name="TileMap" type="TileMap" parent="."]
|
||||
tile_set = ExtResource( 1 )
|
||||
format = 1
|
||||
tile_data = PoolIntArray( 65537, 0, 0, 65541, 0, 0, 65545, 0, 0, 65550, 0, 0, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 327683, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 393226, 0, 0, 393227, 0, 0, 393228, 0, 0, 458761, 0, 0, 524290, 0, 0, 524291, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524296, 0, 0, 524297, 0, 0 )
|
||||
tile_data = PoolIntArray( 65537, 0, 0, 65541, -1073741824, 0, 65545, 1610612736, 0, 65550, 0, 0, 196614, 0, 0, 196615, 1610612736, 0, 196616, -1610612736, 0, 196617, 0, 0, 196618, 0, 0, 196619, -1610612736, 0, 262145, 0, 0, 262146, 1610612736, 0, 262147, 0, 0, 327683, 1610612736, 0, 393219, 0, 0, 393220, 1610612736, 0, 393221, 0, 0, 393222, 0, 0, 393226, 0, 0, 393227, -1610612736, 0, 393228, -1073741824, 0, 458761, 0, 0, 524290, -1073741824, 0, 524291, 1610612736, 0, 524292, 1610612736, 0, 524293, -1610612736, 0, 524294, 0, 0, 524295, 0, 0, 524296, -1610612736, 0, 524297, 0, 0 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Character" type="Position2D" parent="."]
|
||||
position = Vector2( 32, 32 )
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="CPUParticles2D" type="CPUParticles2D" parent="Character"]
|
||||
material = SubResource( 1 )
|
||||
position = Vector2( -20, 0 )
|
||||
rotation = 1.5708
|
||||
amount = 30
|
||||
texture = ExtResource( 6 )
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 8.0
|
||||
angular_velocity = 360.0
|
||||
angular_velocity_random = 1.0
|
||||
damping = 61.46
|
||||
damping_random = 1.0
|
||||
scale_amount_curve = SubResource( 2 )
|
||||
color_ramp = SubResource( 3 )
|
||||
hue_variation = 0.11
|
||||
hue_variation_random = 1.0
|
||||
anim_speed = 1.0
|
||||
|
||||
[node name="Sprite2D" type="Sprite" parent="Character"]
|
||||
position = Vector2( 7, 0 )
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 6.7 KiB |
@@ -1,7 +1,7 @@
|
||||
extends TileMap
|
||||
|
||||
const BASE_LINE_WIDTH = 3.0
|
||||
const DRAW_COLOR = Color.white
|
||||
const DRAW_COLOR = Color("#5391c9")
|
||||
|
||||
# The Tilemap node doesn't have clear bounds so we're defining the map's limits here.
|
||||
export(Vector2) var map_size = Vector2.ONE * 16
|
||||
|
||||
@@ -35,3 +35,4 @@ click={
|
||||
quality/driver/driver_name="GLES2"
|
||||
vram_compression/import_etc=true
|
||||
vram_compression/import_etc2=false
|
||||
environment/default_clear_color=Color( 0, 0.0627451, 0.247059, 1 )
|
||||
|
||||
|
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 103 B After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 640 B After Width: | Height: | Size: 3.2 KiB |
BIN
2d/navigation_astar/sprites/space.png
Normal file
|
After Width: | Height: | Size: 112 KiB |
35
2d/navigation_astar/sprites/space.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/space.png-97c58c64ad84df3792f6a98aa7f4b875.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sprites/space.png"
|
||||
dest_files=[ "res://.import/space.png-97c58c64ad84df3792f6a98aa7f4b875.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
|
||||
BIN
2d/navigation_astar/sprites/sparkle.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
35
2d/navigation_astar/sprites/sparkle.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/sparkle.png-3b8036349814d91f8265031bd47464fc.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sprites/sparkle.png"
|
||||
dest_files=[ "res://.import/sparkle.png-3b8036349814d91f8265031bd47464fc.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
|
||||