forked from team-sg/hero-mark-2
added rust factory
This commit is contained in:
parent
c1c0a8251a
commit
936ea5b04d
3 changed files with 59 additions and 4 deletions
Binary file not shown.
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 2.3 KiB |
25
maps/rust.tscn
Normal file
25
maps/rust.tscn
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
[gd_scene load_steps=5 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://maps/map.gd" type="Script" id=1]
|
||||||
|
[ext_resource path="res://objects/Camera2D.tscn" type="PackedScene" id=2]
|
||||||
|
[ext_resource path="res://graphics/backgrounds/rust.png" type="Texture" id=3]
|
||||||
|
[ext_resource path="res://tilesets/t_rust.tres" type="TileSet" id=4]
|
||||||
|
|
||||||
|
[node name="Map" type="Node2D" groups=["map"]]
|
||||||
|
pause_mode = 1
|
||||||
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="Camera2D" parent="." instance=ExtResource( 2 )]
|
||||||
|
|
||||||
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||||
|
layer = -64
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite" parent="CanvasLayer"]
|
||||||
|
position = Vector2( 128, 96 )
|
||||||
|
texture = ExtResource( 3 )
|
||||||
|
|
||||||
|
[node name="TileMap" type="TileMap" parent="."]
|
||||||
|
tile_set = ExtResource( 4 )
|
||||||
|
cell_size = Vector2( 8, 8 )
|
||||||
|
format = 1
|
||||||
|
tile_data = PoolIntArray( 1245195, 0, 65537, 1245196, 0, 65537, 1245197, 0, 65537, 1245198, 0, 65537, 1441792, 0, 1, 1441793, 0, 2, 1441794, 0, 2, 1441795, 0, 2, 1441796, 0, 2, 1441797, 0, 2, 1441798, 0, 2, 1441799, 0, 2, 1441800, 0, 2, 1441801, 0, 2, 1441802, 0, 2, 1441803, 0, 2, 1441804, 0, 2, 1441805, 0, 2, 1441806, 0, 2, 1441807, 0, 2, 1441808, 0, 2, 1441809, 0, 2, 1441810, 0, 2, 1441811, 0, 2, 1441812, 0, 2, 1441813, 0, 2, 1441814, 0, 2, 1441815, 0, 2, 1441816, 0, 2, 1441817, 0, 2, 1441818, 0, 2, 1441819, 0, 2, 1441820, 0, 2, 1441821, 0, 2, 1441822, 0, 2, 1441823, 0, 2, 1507328, 0, 0, 1507329, 0, 0, 1507330, 0, 0, 1507331, 0, 0, 1507332, 0, 0, 1507333, 0, 0, 1507334, 0, 0, 1507335, 0, 0, 1507336, 0, 0, 1507337, 0, 0, 1507338, 0, 0, 1507339, 0, 0, 1507340, 0, 0, 1507341, 0, 0, 1507342, 0, 0, 1507343, 0, 0, 1507344, 0, 0, 1507345, 0, 0, 1507346, 0, 0, 1507347, 0, 0, 1507348, 0, 0, 1507349, 0, 0, 1507350, 0, 0, 1507351, 0, 0, 1507352, 0, 0, 1507353, 0, 0, 1507354, 0, 0, 1507355, 0, 0, 1507356, 0, 0, 1507357, 0, 0, 1507358, 0, 0, 1507359, 0, 0 )
|
|
@ -30,20 +30,20 @@ shader = ExtResource( 17 )
|
||||||
shader_param/border_color = Color( 0, 0, 0, 1 )
|
shader_param/border_color = Color( 0, 0, 0, 1 )
|
||||||
shader_param/border_corners = false
|
shader_param/border_corners = false
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=2]
|
[sub_resource type="AtlasTexture" id=6]
|
||||||
atlas = ExtResource( 21 )
|
atlas = ExtResource( 21 )
|
||||||
region = Rect2( 0, 0, 12, 12 )
|
region = Rect2( 0, 0, 12, 12 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=3]
|
[sub_resource type="AtlasTexture" id=7]
|
||||||
atlas = ExtResource( 21 )
|
atlas = ExtResource( 21 )
|
||||||
region = Rect2( 12, 0, 12, 12 )
|
region = Rect2( 12, 0, 12, 12 )
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id=5]
|
[sub_resource type="SpriteFrames" id=5]
|
||||||
animations = [ {
|
animations = [ {
|
||||||
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
|
"frames": [ SubResource( 6 ), SubResource( 7 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "default",
|
"name": "default",
|
||||||
"speed": 10.0
|
"speed": 20.0
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
[node name="Map2" type="Node2D" groups=["map"]]
|
[node name="Map2" type="Node2D" groups=["map"]]
|
||||||
|
@ -166,3 +166,33 @@ position = Vector2( 40, 128 )
|
||||||
z_index = -3
|
z_index = -3
|
||||||
frames = SubResource( 5 )
|
frames = SubResource( 5 )
|
||||||
playing = true
|
playing = true
|
||||||
|
|
||||||
|
[node name="SawTest2" type="AnimatedSprite" parent="."]
|
||||||
|
material = SubResource( 4 )
|
||||||
|
position = Vector2( 112, 136 )
|
||||||
|
z_index = -3
|
||||||
|
frames = SubResource( 5 )
|
||||||
|
frame = 1
|
||||||
|
playing = true
|
||||||
|
|
||||||
|
[node name="SawTest3" type="AnimatedSprite" parent="."]
|
||||||
|
material = SubResource( 4 )
|
||||||
|
position = Vector2( 120, 168 )
|
||||||
|
z_index = -3
|
||||||
|
frames = SubResource( 5 )
|
||||||
|
frame = 1
|
||||||
|
playing = true
|
||||||
|
|
||||||
|
[node name="SawTest4" type="AnimatedSprite" parent="."]
|
||||||
|
material = SubResource( 4 )
|
||||||
|
position = Vector2( 160, 168 )
|
||||||
|
z_index = -3
|
||||||
|
frames = SubResource( 5 )
|
||||||
|
playing = true
|
||||||
|
|
||||||
|
[node name="SawTest5" type="AnimatedSprite" parent="."]
|
||||||
|
material = SubResource( 4 )
|
||||||
|
position = Vector2( 56, 176 )
|
||||||
|
z_index = -3
|
||||||
|
frames = SubResource( 5 )
|
||||||
|
playing = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue