From 19d5a852ddb5eeee4bd43f31bc17bc5f92d834a4 Mon Sep 17 00:00:00 2001 From: ttwings Date: Sun, 21 Aug 2022 20:52:12 +0800 Subject: [PATCH] view and control split --- AnimTest.gd | 7 +- Main.gd | 12 - Main.tscn | 38 +- core/Attack.gd | 24 +- core/Base.gd | 16 +- core/Character.gd | 2 + core/Defense.gd | 14 +- core/Fighter.gd | 7 + core/Hero.gd | 12 + core/Item.gd | 2 +- core/Monster.gd | 60 +- core/Race.gd | 10 +- core/Scroll.gd | 2 +- core/Thing.gd | 93 +- core/actor.gd | 84 +- core/ex/Game.gd | 2 +- core/global/GameData.gd | 5 + d/{monsters => }/heros/hero_ttwings.tres | 0 d/human.tres | 10 +- d/monsters/animals/monstrous_spider.gd | 10 - project.godot | 134 ++- tscn/ActorV.gd | 13 + tscn/ActorV.tscn | 25 + tscn/HeroV.gd | 3 + tscn/HeroV.tscn | 20 + tscn/ItemV.gd | 7 + tscn/ItemV.tscn | 15 + tscn/ItemView.gd | 9 - tscn/ItemView.tscn | 20 - tscn/{MapView.gd => MapV.gd} | 0 tscn/MapV.tscn | 29 + tscn/MapView.tscn | 53 - tscn/Player.gd | 37 +- tscn/Player.tscn | 28 +- tscn/ThingV.gd | 60 + tscn/{ThingView.tscn => ThingV.tscn} | 6 +- tscn/ThingView.gd | 16 - tscn/X_5.gd | 7 + tscn/item/EquipV.gd | 29 + tscn/item/EquipV.tscn | 15 + tscn/map/MapV.gd | 9 + tscn/map/MapV.tscn | 26 + tscn/monster/MonsterV.gd | 19 + tscn/monster/MonsterV.tscn | 31 + tscn/weapon/WeaponTexture.tscn | 1330 ++++++++++++++++++++++ 45 files changed, 2002 insertions(+), 349 deletions(-) create mode 100644 core/Character.gd create mode 100644 core/Fighter.gd create mode 100644 core/global/GameData.gd rename d/{monsters => }/heros/hero_ttwings.tres (100%) delete mode 100644 d/monsters/animals/monstrous_spider.gd create mode 100644 tscn/ActorV.gd create mode 100644 tscn/ActorV.tscn create mode 100644 tscn/HeroV.gd create mode 100644 tscn/HeroV.tscn create mode 100644 tscn/ItemV.gd create mode 100644 tscn/ItemV.tscn delete mode 100644 tscn/ItemView.gd delete mode 100644 tscn/ItemView.tscn rename tscn/{MapView.gd => MapV.gd} (100%) create mode 100644 tscn/MapV.tscn delete mode 100644 tscn/MapView.tscn create mode 100644 tscn/ThingV.gd rename tscn/{ThingView.tscn => ThingV.tscn} (60%) delete mode 100644 tscn/ThingView.gd create mode 100644 tscn/item/EquipV.gd create mode 100644 tscn/item/EquipV.tscn create mode 100644 tscn/map/MapV.gd create mode 100644 tscn/map/MapV.tscn create mode 100644 tscn/monster/MonsterV.gd create mode 100644 tscn/monster/MonsterV.tscn create mode 100644 tscn/weapon/WeaponTexture.tscn diff --git a/AnimTest.gd b/AnimTest.gd index 2bb0b79..531ff46 100644 --- a/AnimTest.gd +++ b/AnimTest.gd @@ -2,5 +2,10 @@ extends Node2D func _ready(): Anima.begin(self)\ - .then(Anima.Node(self).anima_position_x(640,3))\ + .then(Anima.Node(get_node("Sprite")).anima_position_x(640,3))\ .play() + + +# 玩家节点向地图节点发送移动信号 +# 地图节点控制玩家节点移动 +# 移动完成后,玩家节点坐标变化 diff --git a/Main.gd b/Main.gd index d810720..d6a872e 100644 --- a/Main.gd +++ b/Main.gd @@ -1,17 +1,5 @@ extends Control -# class_name Main - -# Declare member variables here. Examples: -# var a = 2 -# var b = "text" -onready var game = $Game -onready var ui = $UI # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. - - -# Called every frame. 'delta' is the elapsed time since the previous frame. -#func _process(delta): -# pass diff --git a/Main.tscn b/Main.tscn index 0c19bc9..5b66702 100644 --- a/Main.tscn +++ b/Main.tscn @@ -1,12 +1,10 @@ -[gd_scene load_steps=23 format=2] +[gd_scene load_steps=19 format=2] -[ext_resource path="res://tscn/Player.tscn" type="PackedScene" id=1] +[ext_resource path="res://tscn/map/MapV.tscn" type="PackedScene" id=1] [ext_resource path="res://res/texture/dungeon/floor/floor_sand_rock_0.png" type="Texture" id=2] -[ext_resource path="res://res/texture/dungeon/trees.tres" type="TileSet" id=3] -[ext_resource path="res://res/texture/dungeon/floor.tres" type="TileSet" id=4] +[ext_resource path="res://tscn/map/MapV.gd" type="Script" id=3] [ext_resource path="res://res/shortcuts/shortcut_action9.tres" type="ShortCut" id=5] [ext_resource path="res://res/shortcuts/shortcut_action0.tres" type="ShortCut" id=8] -[ext_resource path="res://res/texture/monster/animals/rat.png" type="Texture" id=9] [ext_resource path="res://res/shortcuts/shortcut_action1.tres" type="ShortCut" id=10] [ext_resource path="res://res/shortcuts/shortcut_action5.tres" type="ShortCut" id=11] [ext_resource path="res://res/shortcuts/shortcut_action6.tres" type="ShortCut" id=12] @@ -16,12 +14,9 @@ [ext_resource path="res://res/shortcuts/shortcut_action2.tres" type="ShortCut" id=16] [ext_resource path="res://res/shortcuts/shortcut_action3.tres" type="ShortCut" id=17] [ext_resource path="res://core/ex/Game.gd" type="Script" id=18] -[ext_resource path="res://core/Battlefield.gd" type="Script" id=19] [ext_resource path="res://Main.gd" type="Script" id=20] [ext_resource path="res://res/theme/default_font.tres" type="DynamicFont" id=21] -[sub_resource type="TileSet" id=1] - [sub_resource type="Theme" id=2] default_font = ExtResource( 21 ) @@ -38,30 +33,8 @@ anchor_right = 1.0 anchor_bottom = 1.0 script = ExtResource( 18 ) -[node name="BattleFiled" type="TileMap" parent="Game"] -tile_set = SubResource( 1 ) -format = 1 -script = ExtResource( 19 ) - -[node name="Floor" type="TileMap" parent="Game/BattleFiled"] -tile_set = ExtResource( 4 ) -format = 1 -tile_data = PoolIntArray( 0, 11, 0, 1, 12, 0, 2, 15, 0, 3, 15, 0, 4, 9, 0, 5, 18, 0, 6, 13, 0, 7, 20, 0, 8, 16, 0, 9, 16, 0, 10, 16, 0, 11, 12, 0, 12, 12, 0, 13, 13, 0, 14, 13, 0, 15, 12, 0, 16, 11, 0, 17, 11, 0, 18, 17, 0, 19, 16, 0, 20, 10, 0, 21, 11, 0, 22, 9, 0, 23, 12, 0, 24, 12, 0, 25, 17, 0, 26, 13, 0, 27, 15, 0, 28, 12, 0, 29, 19, 0, 30, 17, 0, 31, 11, 0, 32, 13, 0, 33, 13, 0, 34, 10, 0, 35, 14, 0, 36, 18, 0, 65536, 10, 0, 65537, 11, 0, 65538, 12, 0, 65539, 15, 0, 65540, 13, 0, 65541, 13, 0, 65542, 11, 0, 65543, 9, 0, 65544, 17, 0, 65545, 11, 0, 65546, 19, 0, 65547, 15, 0, 65548, 20, 0, 65549, 11, 0, 65550, 16, 0, 65551, 10, 0, 65552, 20, 0, 65553, 20, 0, 65554, 11, 0, 65555, 14, 0, 65556, 17, 0, 65557, 17, 0, 65558, 12, 0, 65559, 19, 0, 65560, 13, 0, 65561, 9, 0, 65562, 18, 0, 65563, 17, 0, 65564, 12, 0, 65565, 15, 0, 65566, 9, 0, 65567, 10, 0, 65568, 10, 0, 65569, 13, 0, 65570, 9, 0, 65571, 18, 0, 65572, 20, 0, 131072, 11, 0, 131073, 12, 0, 131074, 17, 0, 131075, 18, 0, 131076, 20, 0, 131077, 12, 0, 131078, 12, 0, 131079, 12, 0, 131080, 17, 0, 131081, 19, 0, 131082, 18, 0, 131083, 9, 0, 131084, 17, 0, 131085, 10, 0, 131086, 15, 0, 131087, 12, 0, 131088, 20, 0, 131089, 13, 0, 131090, 12, 0, 131091, 15, 0, 131092, 10, 0, 131093, 17, 0, 131094, 19, 0, 131095, 15, 0, 131096, 17, 0, 131097, 17, 0, 131098, 11, 0, 131099, 17, 0, 131100, 12, 0, 131101, 17, 0, 131102, 16, 0, 131103, 20, 0, 131104, 17, 0, 131105, 13, 0, 131106, 15, 0, 131107, 20, 0, 131108, 12, 0, 196608, 18, 0, 196609, 16, 0, 196610, 9, 0, 196611, 15, 0, 196612, 11, 0, 196613, 12, 0, 196614, 11, 0, 196615, 15, 0, 196616, 13, 0, 196617, 19, 0, 196618, 17, 0, 196619, 20, 0, 196620, 16, 0, 196621, 15, 0, 196622, 10, 0, 196623, 17, 0, 196624, 13, 0, 196625, 15, 0, 196626, 11, 0, 196627, 10, 0, 196628, 17, 0, 196629, 13, 0, 196630, 9, 0, 196631, 10, 0, 196632, 15, 0, 196633, 18, 0, 196634, 18, 0, 196635, 15, 0, 196636, 11, 0, 196637, 17, 0, 196638, 17, 0, 196639, 12, 0, 196640, 14, 0, 196641, 9, 0, 196642, 18, 0, 196643, 12, 0, 196644, 13, 0, 262144, 11, 0, 262145, 12, 0, 262146, 15, 0, 262147, 14, 0, 262148, 13, 0, 262149, 17, 0, 262150, 18, 0, 262151, 10, 0, 262152, 17, 0, 262153, 18, 0, 262154, 11, 0, 262155, 11, 0, 262156, 11, 0, 262157, 17, 0, 262158, 14, 0, 262159, 13, 0, 262160, 15, 0, 262161, 17, 0, 262162, 16, 0, 262163, 20, 0, 262164, 20, 0, 262165, 19, 0, 262166, 20, 0, 262167, 14, 0, 262168, 11, 0, 262169, 13, 0, 262170, 14, 0, 262171, 18, 0, 262172, 12, 0, 262173, 13, 0, 262174, 18, 0, 262175, 20, 0, 262176, 11, 0, 262177, 16, 0, 262178, 15, 0, 262179, 12, 0, 262180, 16, 0, 327680, 13, 0, 327681, 12, 0, 327682, 14, 0, 327683, 12, 0, 327684, 13, 0, 327685, 16, 0, 327686, 15, 0, 327687, 9, 0, 327688, 11, 0, 327689, 12, 0, 327690, 17, 0, 327691, 11, 0, 327692, 20, 0, 327693, 12, 0, 327694, 11, 0, 327695, 12, 0, 327696, 10, 0, 327697, 14, 0, 327698, 10, 0, 327699, 14, 0, 327700, 13, 0, 327701, 11, 0, 327702, 14, 0, 327703, 10, 0, 327704, 20, 0, 327705, 14, 0, 327706, 10, 0, 327707, 15, 0, 327708, 12, 0, 327709, 12, 0, 327710, 14, 0, 327711, 19, 0, 327712, 12, 0, 327713, 13, 0, 327714, 18, 0, 327715, 17, 0, 327716, 13, 0, 393216, 19, 0, 393217, 17, 0, 393218, 18, 0, 393219, 12, 0, 393220, 18, 0, 393221, 13, 0, 393222, 19, 0, 393223, 9, 0, 393224, 14, 0, 393225, 14, 0, 393226, 9, 0, 393227, 18, 0, 393228, 11, 0, 393229, 19, 0, 393230, 14, 0, 393231, 17, 0, 393232, 11, 0, 393233, 15, 0, 393234, 12, 0, 393235, 11, 0, 393236, 18, 0, 393237, 19, 0, 393238, 11, 0, 393239, 17, 0, 393240, 20, 0, 393241, 13, 0, 393242, 17, 0, 393243, 10, 0, 393244, 19, 0, 393245, 15, 0, 393246, 16, 0, 393247, 10, 0, 393248, 11, 0, 393249, 10, 0, 393250, 20, 0, 393251, 19, 0, 393252, 14, 0, 458752, 18, 0, 458753, 15, 0, 458754, 19, 0, 458755, 19, 0, 458756, 20, 0, 458757, 15, 0, 458758, 14, 0, 458759, 11, 0, 458760, 14, 0, 458761, 15, 0, 458762, 20, 0, 458763, 9, 0, 458764, 15, 0, 458765, 19, 0, 458766, 19, 0, 458767, 10, 0, 458768, 13, 0, 458769, 17, 0, 458770, 18, 0, 458771, 13, 0, 458772, 18, 0, 458773, 16, 0, 458774, 13, 0, 458775, 19, 0, 458776, 15, 0, 458777, 17, 0, 458778, 11, 0, 458779, 12, 0, 458780, 17, 0, 458781, 10, 0, 458782, 14, 0, 458783, 14, 0, 458784, 9, 0, 458785, 15, 0, 458786, 16, 0, 458787, 20, 0, 458788, 10, 0, 524288, 15, 0, 524289, 20, 0, 524290, 13, 0, 524291, 16, 0, 524292, 12, 0, 524293, 19, 0, 524294, 16, 0, 524295, 10, 0, 524296, 20, 0, 524297, 19, 0, 524298, 14, 0, 524299, 13, 0, 524300, 13, 0, 524301, 17, 0, 524302, 17, 0, 524303, 14, 0, 524304, 20, 0, 524305, 11, 0, 524306, 9, 0, 524307, 9, 0, 524308, 13, 0, 524309, 20, 0, 524310, 14, 0, 524311, 10, 0, 524312, 9, 0, 524313, 20, 0, 524314, 15, 0, 524315, 14, 0, 524316, 19, 0, 524317, 9, 0, 524318, 19, 0, 524319, 15, 0, 524320, 9, 0, 524321, 17, 0, 524322, 18, 0, 524323, 11, 0, 524324, 20, 0, 589824, 19, 0, 589825, 9, 0, 589826, 20, 0, 589827, 16, 0, 589828, 17, 0, 589829, 9, 0, 589830, 17, 0, 589831, 13, 0, 589832, 19, 0, 589833, 13, 0, 589834, 20, 0, 589835, 20, 0, 589836, 12, 0, 589837, 17, 0, 589838, 13, 0, 589839, 12, 0, 589840, 13, 0, 589841, 16, 0, 589842, 19, 0, 589843, 9, 0, 589844, 10, 0, 589845, 20, 0, 589846, 15, 0, 589847, 20, 0, 589848, 14, 0, 589849, 13, 0, 589850, 15, 0, 589851, 9, 0, 589852, 14, 0, 589853, 19, 0, 589854, 16, 0, 589855, 11, 0, 589856, 14, 0, 589857, 20, 0, 589858, 14, 0, 589859, 13, 0, 589860, 19, 0, 655360, 14, 0, 655361, 13, 0, 655362, 11, 0, 655363, 13, 0, 655364, 13, 0, 655365, 15, 0, 655366, 19, 0, 655367, 16, 0, 655368, 13, 0, 655369, 14, 0, 655370, 18, 0, 655371, 14, 0, 655372, 10, 0, 655373, 15, 0, 655374, 16, 0, 655375, 18, 0, 655376, 11, 0, 655377, 10, 0, 655378, 15, 0, 655379, 19, 0, 655380, 10, 0, 655381, 17, 0, 655382, 10, 0, 655383, 19, 0, 655384, 18, 0, 655385, 17, 0, 655386, 17, 0, 655387, 9, 0, 655388, 14, 0, 655389, 10, 0, 655390, 16, 0, 655391, 12, 0, 655392, 17, 0, 655393, 19, 0, 655394, 18, 0, 655395, 13, 0, 655396, 17, 0, 720896, 19, 0, 720897, 12, 0, 720898, 19, 0, 720899, 14, 0, 720900, 11, 0, 720901, 19, 0, 720902, 11, 0, 720903, 10, 0, 720904, 17, 0, 720905, 14, 0, 720906, 20, 0, 720907, 20, 0, 720908, 13, 0, 720909, 14, 0, 720910, 20, 0, 720911, 15, 0, 720912, 10, 0, 720913, 12, 0, 720914, 9, 0, 720915, 18, 0, 720916, 17, 0, 720917, 15, 0, 720918, 16, 0, 720919, 19, 0, 720920, 10, 0, 720921, 14, 0, 720922, 20, 0, 720923, 14, 0, 720924, 15, 0, 720925, 15, 0, 720926, 18, 0, 720927, 15, 0, 720928, 16, 0, 720929, 15, 0, 720930, 9, 0, 720931, 17, 0, 720932, 9, 0, 786432, 20, 0, 786433, 12, 0, 786434, 19, 0, 786435, 12, 0, 786436, 18, 0, 786437, 13, 0, 786438, 10, 0, 786439, 18, 0, 786440, 13, 0, 786441, 12, 0, 786442, 15, 0, 786443, 14, 0, 786444, 16, 0, 786445, 18, 0, 786446, 18, 0, 786447, 19, 0, 786448, 16, 0, 786449, 14, 0, 786450, 11, 0, 786451, 17, 0, 786452, 13, 0, 786453, 14, 0, 786454, 13, 0, 786455, 14, 0, 786456, 15, 0, 786457, 20, 0, 786458, 19, 0, 786459, 12, 0, 786460, 17, 0, 786461, 16, 0, 786462, 16, 0, 786463, 19, 0, 786464, 14, 0, 786465, 10, 0, 786466, 16, 0, 786467, 9, 0, 786468, 10, 0, 851968, 15, 0, 851969, 11, 0, 851970, 17, 0, 851971, 19, 0, 851972, 14, 0, 851973, 14, 0, 851974, 17, 0, 851975, 20, 0, 851976, 14, 0, 851977, 19, 0, 851978, 13, 0, 851979, 11, 0, 851980, 14, 0, 851981, 16, 0, 851982, 10, 0, 851983, 17, 0, 851984, 18, 0, 851985, 16, 0, 851986, 20, 0, 851987, 19, 0, 851988, 9, 0, 851989, 18, 0, 851990, 16, 0, 851991, 13, 0, 851992, 12, 0, 851993, 19, 0, 851994, 9, 0, 851995, 15, 0, 851996, 9, 0, 851997, 14, 0, 851998, 20, 0, 851999, 9, 0, 852000, 15, 0, 852001, 10, 0, 852002, 18, 0, 852003, 18, 0, 852004, 11, 0, 917504, 15, 0, 917505, 12, 0, 917506, 14, 0, 917507, 11, 0, 917508, 19, 0, 917509, 9, 0, 917510, 17, 0, 917511, 14, 0, 917512, 19, 0, 917513, 13, 0, 917514, 20, 0, 917515, 18, 0, 917516, 10, 0, 917517, 17, 0, 917518, 19, 0, 917519, 17, 0, 917520, 14, 0, 917521, 20, 0, 917522, 19, 0, 917523, 12, 0, 917524, 16, 0, 917525, 18, 0, 917526, 20, 0, 917527, 19, 0, 917528, 10, 0, 917529, 11, 0, 917530, 17, 0, 917531, 19, 0, 917532, 9, 0, 917533, 13, 0, 917534, 19, 0, 917535, 9, 0, 917536, 11, 0, 917537, 11, 0, 917538, 11, 0, 917539, 17, 0, 917540, 18, 0, 983040, 10, 0, 983041, 11, 0, 983042, 20, 0, 983043, 9, 0, 983044, 13, 0, 983045, 10, 0, 983046, 11, 0, 983047, 11, 0, 983048, 20, 0, 983049, 20, 0, 983050, 16, 0, 983051, 11, 0, 983052, 19, 0, 983053, 18, 0, 983054, 11, 0, 983055, 9, 0, 983056, 12, 0, 983057, 17, 0, 983058, 15, 0, 983059, 12, 0, 983060, 12, 0, 983061, 20, 0, 983062, 19, 0, 983063, 17, 0, 983064, 10, 0, 983065, 17, 0, 983066, 9, 0, 983067, 15, 0, 983068, 19, 0, 983069, 11, 0, 983070, 13, 0, 983071, 17, 0, 983072, 15, 0, 983073, 14, 0, 983074, 12, 0, 983075, 19, 0, 983076, 16, 0, 1048576, 17, 0, 1048577, 11, 0, 1048578, 17, 0, 1048579, 14, 0, 1048580, 15, 0, 1048581, 19, 0, 1048582, 10, 0, 1048583, 15, 0, 1048584, 18, 0, 1048585, 17, 0, 1048586, 13, 0, 1048587, 20, 0, 1048588, 20, 0, 1048589, 10, 0, 1048590, 20, 0, 1048591, 19, 0, 1048592, 9, 0, 1048593, 13, 0, 1048594, 16, 0, 1048595, 15, 0, 1048596, 10, 0, 1048597, 19, 0, 1048598, 9, 0, 1048599, 20, 0, 1048600, 16, 0, 1048601, 9, 0, 1048602, 19, 0, 1048603, 11, 0, 1048604, 13, 0, 1048605, 9, 0, 1048606, 11, 0, 1048607, 16, 0, 1048608, 14, 0, 1048609, 9, 0, 1048610, 10, 0, 1048611, 18, 0, 1048612, 18, 0, 1114112, 14, 0, 1114113, 18, 0, 1114114, 19, 0, 1114115, 20, 0, 1114116, 19, 0, 1114117, 18, 0, 1114118, 14, 0, 1114119, 18, 0, 1114120, 16, 0, 1114121, 19, 0, 1114122, 13, 0, 1114123, 13, 0, 1114124, 19, 0, 1114125, 14, 0, 1114126, 11, 0, 1114127, 10, 0, 1114128, 9, 0, 1114129, 18, 0, 1114130, 15, 0, 1114131, 10, 0, 1114132, 16, 0, 1114133, 13, 0, 1114134, 11, 0, 1114135, 13, 0, 1114136, 20, 0, 1114137, 11, 0, 1114138, 16, 0, 1114139, 20, 0, 1114140, 20, 0, 1114141, 17, 0, 1114142, 16, 0, 1114143, 16, 0, 1114144, 12, 0, 1114145, 13, 0, 1114146, 14, 0, 1114147, 17, 0, 1114148, 18, 0, 1179648, 11, 0, 1179649, 10, 0, 1179650, 15, 0, 1179651, 15, 0, 1179652, 10, 0, 1179653, 12, 0, 1179654, 18, 0, 1179655, 11, 0, 1179656, 19, 0, 1179657, 10, 0, 1179658, 17, 0, 1179659, 14, 0, 1179660, 15, 0, 1179661, 16, 0, 1179662, 13, 0, 1179663, 12, 0, 1179664, 9, 0, 1179665, 10, 0, 1179666, 17, 0, 1179667, 18, 0, 1179668, 12, 0, 1179669, 12, 0, 1179670, 10, 0, 1179671, 13, 0, 1179672, 19, 0, 1179673, 20, 0, 1179674, 11, 0, 1179675, 14, 0, 1179676, 9, 0, 1179677, 15, 0, 1179678, 19, 0, 1179679, 20, 0, 1179680, 13, 0, 1179681, 10, 0, 1179682, 17, 0, 1179683, 19, 0, 1179684, 14, 0, 1245184, 13, 0, 1245185, 18, 0, 1245186, 19, 0, 1245187, 15, 0, 1245188, 16, 0, 1245189, 16, 0, 1245190, 18, 0, 1245191, 10, 0, 1245192, 12, 0, 1245193, 19, 0, 1245194, 10, 0, 1245195, 9, 0, 1245196, 9, 0, 1245197, 12, 0, 1245198, 17, 0, 1245199, 9, 0, 1245200, 12, 0, 1245201, 11, 0, 1245202, 18, 0, 1245203, 9, 0, 1245204, 13, 0, 1245205, 17, 0, 1245206, 11, 0, 1245207, 14, 0, 1245208, 18, 0, 1245209, 19, 0, 1245210, 12, 0, 1245211, 12, 0, 1245212, 10, 0, 1245213, 18, 0, 1245214, 12, 0, 1245215, 16, 0, 1245216, 17, 0, 1245217, 15, 0, 1245218, 9, 0, 1245219, 11, 0, 1245220, 19, 0, 1310720, 18, 0, 1310721, 16, 0, 1310722, 17, 0, 1310723, 17, 0, 1310724, 11, 0, 1310725, 17, 0, 1310726, 16, 0, 1310727, 14, 0, 1310728, 10, 0, 1310729, 20, 0, 1310730, 13, 0, 1310731, 13, 0, 1310732, 12, 0, 1310733, 11, 0, 1310734, 15, 0, 1310735, 17, 0, 1310736, 20, 0, 1310737, 20, 0, 1310738, 20, 0, 1310739, 15, 0, 1310740, 19, 0, 1310741, 19, 0, 1310742, 15, 0, 1310743, 20, 0, 1310744, 20, 0, 1310745, 17, 0, 1310746, 14, 0, 1310747, 19, 0, 1310748, 13, 0, 1310749, 11, 0, 1310750, 17, 0, 1310751, 13, 0, 1310752, 17, 0, 1310753, 13, 0, 1310754, 14, 0, 1310755, 13, 0, 1310756, 18, 0, 1376256, 14, 0, 1376257, 18, 0, 1376258, 20, 0, 1376259, 13, 0, 1376260, 19, 0, 1376261, 13, 0, 1376262, 17, 0, 1376263, 16, 0, 1376264, 20, 0, 1376265, 13, 0, 1376266, 15, 0, 1376267, 9, 0, 1376268, 15, 0, 1376269, 15, 0, 1376270, 13, 0, 1376271, 16, 0, 1376272, 20, 0, 1376273, 16, 0, 1376274, 9, 0, 1376275, 12, 0, 1376276, 9, 0, 1376277, 13, 0, 1376278, 18, 0, 1376279, 10, 0, 1376280, 19, 0, 1376281, 16, 0, 1376282, 16, 0, 1376283, 20, 0, 1376284, 10, 0, 1376285, 20, 0, 1376286, 15, 0, 1376287, 10, 0, 1376288, 14, 0, 1376289, 16, 0, 1376290, 20, 0, 1376291, 14, 0, 1376292, 10, 0, 1441792, 14, 0, 1441793, 14, 0, 1441794, 20, 0, 1441795, 10, 0, 1441796, 17, 0, 1441797, 16, 0, 1441798, 12, 0, 1441799, 9, 0, 1441800, 15, 0, 1441801, 18, 0, 1441802, 15, 0, 1441803, 17, 0, 1441804, 19, 0, 1441805, 19, 0, 1441806, 13, 0, 1441807, 16, 0, 1441808, 10, 0, 1441809, 12, 0, 1441810, 13, 0, 1441811, 16, 0, 1441812, 16, 0, 1441813, 13, 0, 1441814, 15, 0, 1441815, 16, 0, 1441816, 19, 0, 1441817, 16, 0, 1441818, 11, 0, 1441819, 19, 0, 1441820, 15, 0, 1441821, 13, 0, 1441822, 19, 0, 1441823, 19, 0, 1441824, 18, 0, 1441825, 9, 0, 1441826, 10, 0, 1441827, 12, 0, 1441828, 13, 0, 1507328, 19, 0, 1507329, 20, 0, 1507330, 10, 0, 1507331, 12, 0, 1507332, 12, 0, 1507333, 19, 0, 1507334, 14, 0, 1507335, 18, 0, 1507336, 11, 0, 1507337, 12, 0, 1507338, 17, 0, 1507339, 14, 0, 1507340, 20, 0, 1507341, 14, 0, 1507342, 15, 0, 1507343, 17, 0, 1507344, 20, 0, 1507345, 11, 0, 1507346, 19, 0, 1507347, 10, 0, 1507348, 12, 0, 1507349, 12, 0, 1507350, 9, 0, 1507351, 19, 0, 1507352, 11, 0, 1507353, 19, 0, 1507354, 18, 0, 1507355, 13, 0, 1507356, 16, 0, 1507357, 17, 0, 1507358, 20, 0, 1507359, 12, 0, 1507360, 10, 0, 1507361, 14, 0, 1507362, 12, 0, 1507363, 14, 0, 1507364, 18, 0, 1572864, 20, 0, 1572865, 17, 0, 1572866, 13, 0, 1572867, 16, 0, 1572868, 17, 0, 1572869, 16, 0, 1572870, 9, 0, 1572871, 20, 0, 1572872, 10, 0, 1572873, 17, 0, 1572874, 15, 0, 1572875, 18, 0, 1572876, 15, 0, 1572877, 14, 0, 1572878, 11, 0, 1572879, 17, 0, 1572880, 13, 0, 1572881, 11, 0, 1572882, 15, 0, 1572883, 14, 0, 1572884, 12, 0, 1572885, 10, 0, 1572886, 19, 0, 1572887, 15, 0, 1572888, 14, 0, 1572889, 19, 0, 1572890, 9, 0, 1572891, 13, 0, 1572892, 15, 0, 1572893, 20, 0, 1572894, 19, 0, 1572895, 14, 0, 1572896, 10, 0, 1572897, 17, 0, 1572898, 16, 0, 1572899, 20, 0, 1572900, 16, 0, 1638400, 18, 0, 1638401, 13, 0, 1638402, 11, 0, 1638403, 10, 0, 1638404, 20, 0, 1638405, 11, 0, 1638406, 9, 0, 1638407, 18, 0, 1638408, 17, 0, 1638409, 16, 0, 1638410, 16, 0, 1638411, 18, 0, 1638412, 14, 0, 1638413, 19, 0, 1638414, 11, 0, 1638415, 18, 0, 1638416, 14, 0, 1638417, 15, 0, 1638418, 20, 0, 1638419, 12, 0, 1638420, 15, 0, 1638421, 20, 0, 1638422, 11, 0, 1638423, 12, 0, 1638424, 18, 0, 1638425, 16, 0, 1638426, 17, 0, 1638427, 16, 0, 1638428, 20, 0, 1638429, 17, 0, 1638430, 16, 0, 1638431, 19, 0, 1638432, 19, 0, 1638433, 18, 0, 1638434, 14, 0, 1638435, 20, 0, 1638436, 19, 0 ) - -[node name="Trees" type="TileMap" parent="Game/BattleFiled"] -tile_set = ExtResource( 3 ) -format = 1 -tile_data = PoolIntArray( 65570, 6, 0, 196619, 3, 0, 327708, 1, 0, 393237, 1, 0, 524322, 3, 0, 589844, 8, 0, 655365, 2, 0, 720909, 2, 0, 720913, 7, 0, 851987, 4, 0, 851991, 0, 0, 917506, 7, 0, 917507, 1, 0, 917530, 7, 0, 983062, 0, 0, 1114114, 4, 0, 1114120, 5, 0, 1114143, 7, 0, 1245199, 0, 0, 1245203, 3, 0, 1441793, 5, 0, 1441818, 0, 0, 1507329, 0, 0 ) - -[node name="Monsters" type="Node2D" parent="Game/BattleFiled"] - -[node name="rat" type="Sprite" parent="Game/BattleFiled/Monsters"] -position = Vector2( 704, 320 ) -texture = ExtResource( 9 ) -centered = false - -[node name="Player" parent="Game/BattleFiled" instance=ExtResource( 1 )] -position = Vector2( 576, 320 ) +[node name="MapV" parent="Game" instance=ExtResource( 1 )] +script = ExtResource( 3 ) [node name="UI" type="CanvasLayer" parent="."] @@ -287,6 +260,7 @@ text = "20" anchor_left = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 +margin_left = -400.0 rect_min_size = Vector2( 400, 0 ) [node name="MapStatus" type="Panel" parent="UI/Right"] diff --git a/core/Attack.gd b/core/Attack.gd index 1931971..bb67042 100644 --- a/core/Attack.gd +++ b/core/Attack.gd @@ -37,15 +37,15 @@ enum AP_damage_effects{none, daze, fear, silence, confusion} func _init(alias = "", min_damage = 0, max_damage = 0, critical_rate = 0.05, critical_multiple = 2, attack_type = "", attack_range = 1, attack_distance = 1, attack_speed = 100, attack_animation = "", attack_sound = ""): - self.alias = alias - self.min_damage = min_damage - self.max_damage = max_damage - self.critical_rate = critical_rate - self.critical_multiple = critical_multiple - self.attack_type = attack_type - self.attack_range = attack_range - self.attack_distance = attack_distance - self.attack_speed = attack_speed - self.attack_animation = attack_animation - self.attack_sound = attack_sound - self.effects = {} \ No newline at end of file + self.alias = alias + self.min_damage = min_damage + self.max_damage = max_damage + self.critical_rate = critical_rate + self.critical_multiple = critical_multiple + self.attack_type = attack_type + self.attack_range = attack_range + self.attack_distance = attack_distance + self.attack_speed = attack_speed + self.attack_animation = attack_animation + self.attack_sound = attack_sound + self.effects = {} diff --git a/core/Base.gd b/core/Base.gd index 6a20b5b..a0f1291 100644 --- a/core/Base.gd +++ b/core/Base.gd @@ -46,16 +46,16 @@ func del_append(base:Base): #查找是否有目标id的append func find_append(id:String): - for base in appends: - if base.id == id: - return base - return null + for base in appends: + if base.id == id: + return base + return null # 判断是否含有目标id的append func has_append(id:String): - for base in appends: - if base.id == id: - return true - return false + for base in appends: + if base.id == id: + return true + return false #是否包含所有标签 tabs 可以是多个标签如“xxx xxx” func has_all_tabs(tabs): diff --git a/core/Character.gd b/core/Character.gd new file mode 100644 index 0000000..0ca6b08 --- /dev/null +++ b/core/Character.gd @@ -0,0 +1,2 @@ +extends Thing + diff --git a/core/Defense.gd b/core/Defense.gd index 5987d91..0924928 100644 --- a/core/Defense.gd +++ b/core/Defense.gd @@ -10,14 +10,14 @@ var ap_def = 0 var effect_def = {} # 添加一个效果防御 func add_effect_def(effect_name, value): - effect_def[effect_name] = value - return + effect_def[effect_name] = value + return # 删除一个效果防御 func del_effect_def(effect_name): - if effect_name in effect_def: - effect_def.erase(effect_name) - return - return + if effect_name in effect_def: + effect_def.erase(effect_name) + return + return # 防御 func defend(attack:Attack): - pass \ No newline at end of file + pass diff --git a/core/Fighter.gd b/core/Fighter.gd new file mode 100644 index 0000000..2b903af --- /dev/null +++ b/core/Fighter.gd @@ -0,0 +1,7 @@ +extends Resource +class_name Fighter + +var race : Race + +func _init(r): + race = r diff --git a/core/Hero.gd b/core/Hero.gd index a68e5c5..d8f3de6 100644 --- a/core/Hero.gd +++ b/core/Hero.gd @@ -4,6 +4,18 @@ class_name Hero var player_id = "ttwings" +# 种族的基本属性 export(Resource) var race +# 战斗属性、动作 export(Resource) var fighter +# 接收控制 export(Resource) var controller + +var map + +func Grap(): + var items = [] + for ob in map.get_objects_in_cell(fighter.get_map_pos()): + if ob.item: + items.append(ob) + diff --git a/core/Item.gd b/core/Item.gd index b49bb96..89a3f10 100644 --- a/core/Item.gd +++ b/core/Item.gd @@ -1,4 +1,4 @@ -extends Buff +extends Thing class_name Item signal onSetNum() diff --git a/core/Monster.gd b/core/Monster.gd index ef0e24e..73e1694 100644 --- a/core/Monster.gd +++ b/core/Monster.gd @@ -1,53 +1,19 @@ extends Actor class_name Monster +# view is MonsterV -# race is Race -export(Resource) var race -# 角色名称 -export(String) var alias -# 玩家名称 -export(String) var character_name -# 设置基本属性,肉身HP,灵力MP,神识AP -export(int) var Hp = 0 -export(int) var Mp = 0 -export(int) var Ap = 0 -export(int) var Hp_max = 0 -export(int) var Mp_max = 0 -export(int) var Ap_max = 0 -export(int) var Hp_temp = 0 -export(int) var Mp_temp = 0 -export(int) var Ap_temp = 0 -# 设置等级 -export(int) var level = 0 -# 设置经验值 -export(int) var experience = 0 -# 获得最大肉体值 -func get_max_hp(): - var maxhp = 0 - if race and race is Race: - maxhp = int(rand_range(race.Hp_dice,level * race.Hp_dice)) - else: - print("race is ",race) - return maxhp - return maxhp +# 攻击方式 +export(Dictionary) var attacks = {} +# 目前的攻击方式 +export(String) var current_attack = "" +# 防御方式 +export(Dictionary) var defenses = {} +# 目前的防御方式 +export(String) var current_defense = "" -# 获得最大灵力值 -func get_max_mp(): - var maxmp = 0 - if race and race is Race: - maxmp = int(rand_range(race.Hp_dice,level * race.Hp_dice)) - else: - print("race is ",race) - return maxmp - return maxmp +func _init(r): + race = r -# 获得最大神识值 -func get_max_ap(): - var maxap = 0 - if race and race is Race: - maxap = int(rand_range(race.Hp_dice,level * race.Hp_dice)) - else: - print("race is ",race) - return maxap - return maxap + + diff --git a/core/Race.gd b/core/Race.gd index 1aa8f53..b00c0f1 100644 --- a/core/Race.gd +++ b/core/Race.gd @@ -4,7 +4,7 @@ class_name Race # 当设置属性时 # signal on_set_attribute(id) # 种类 -export(String) var race +export(String) var type # 名称 export(String) var alias # 体型 @@ -34,14 +34,6 @@ export(int) var fortitude = 0 export(int) var reflex = 0 # 意志 export(int) var will = 0 -# 攻击方式 -export(Dictionary) var attacks = {} -# 目前的攻击方式 -export(String) var current_attack = "" -# 防御方式 -export(Dictionary) var defenses = {} -# 目前的防御方式 -export(String) var current_defense = "" # 遵守法律 export(int) var law = 0 diff --git a/core/Scroll.gd b/core/Scroll.gd index db26f17..f2fb886 100644 --- a/core/Scroll.gd +++ b/core/Scroll.gd @@ -15,4 +15,4 @@ var quantity = 1 var level = 1 func use(): - pass \ No newline at end of file + pass diff --git a/core/Thing.gd b/core/Thing.gd index 2853487..77e61a2 100644 --- a/core/Thing.gd +++ b/core/Thing.gd @@ -1,6 +1,6 @@ -extends Node2D +extends Resource +class_name Thing -tool # const color for rice text label bbcode const NOR = "[/color]" const BLK = "[color=#000000]" @@ -37,84 +37,63 @@ signal about_to_act(delta) var map -export(String) var alias = "thing" -export(String,MULTILINE) var description = "" +var alias = "thing" +var description = "this is a thing" +var apperence = "thing" +#export(Texture) var sprite_path setget _set_sprite_path -export(Texture) var sprite_path setget _set_sprite_path - -export(bool) var blocks_movement = false -export(bool) var blocks_sight = false -export(bool) var stay_visible = false +var blocks_movement = false +var blocks_sight = false +var stay_visible = false var found = false # current map cell var cell = Vector2() setget _set_cell, _get_cell -# components dictionary -var components = {} -var item -var race -var fighter -var ai # status effects dictionary var status_effects = {} +# AI +var ai # sid var sid = 0 # dbpath var dbpath = "" # get save dictionary func get_save_dict(): - var data = { - "sid": sid, - "dbpath": dbpath, - "cell": {"x":self.cell.x, "y":self.cell.y}, - "components": {}, - "status_effects": status_effects, - "found": found - } - for component in components: - if self.components[component].has_method("get_save_dict"): - data["components"][component] = self.components[component].get_save_dict() - return data + var data = { + "sid": sid, + "dbpath": dbpath, + "cell": {"x":self.cell.x, "y":self.cell.y}, + "components": {}, + "status_effects": status_effects, + "found": found + } + return data func get_message_name(): - if "player" in self.components: - return "你" - else: - return self.alias + if "player" in self.components: + return "你" + else: + return self.alias func kill(): - if self.blocks_movement or self.blocks_sight: - emit_signal("map_cell_changed", self.cell, null) - queue_free() + if self.blocks_movement or self.blocks_sight: + emit_signal("map_cell_changed", self.cell, null) func _rpg_process(delta = 5): - for status in self.status_effects: - status._rpg_process(delta) - if "AI" in self.components: - self.components["AI"].act(delta) + for status in self.status_effects: + status._rpg_process(delta) + if ai : + ai.act(delta) -func _ready(): - connect("about_to_act",self,"_on_about_to_act") - add_to_group("things") - if self.blocks_movement: - add_to_group("blockers") - if self.blocks_sight: - add_to_group("sight_blockers") func _get_cell(): - if map is TileMap: - return map.world_to_map(position) + return cell func _set_cell(cell): - var old = self.cell - self.cell = cell - self.position = map.map_to_world(cell) - emit_signal("map_cell_changed", old, cell) - -func _set_sprite_path(path): - sprite_path = path - if is_inside_tree(): - $Sprite.texture = sprite_path + var old = self.cell + self.cell = cell + self.position = map.map_to_world(cell) + emit_signal("map_cell_changed", old, cell) func _on_about_to_act(delta): - _rpg_process(delta) \ No newline at end of file + _rpg_process(delta) diff --git a/core/actor.gd b/core/actor.gd index f6affa5..755127e 100644 --- a/core/actor.gd +++ b/core/actor.gd @@ -1,23 +1,20 @@ -tool -# 演员类 用来控制场景中对象的显示 -extends Node2D +extends Thing class_name Actor +# view node is ActorV -onready var tween = $Tween +# Race +var race = Race -var animation : Animation -# 以格子为单位进行移动 -var cell = Vector2(0, 0) # 目标格子 var target_cell = Vector2(0, 0) # 当前移动方向 var direction = Vector2(0, 0) -# # 当前肉体行动能量,控制肌体的能量 -# var current_hp_energy = 0.0 -# # 当前灵力行动能量,控制体内灵力的能量 -# var current_mp_energy = 0.0 -# # 当前神识行动能量,控制调动大脑思考,神识外放的能量 -# var current_ap_energy = 0.0 +# 当前肉体行动能量,控制肌体的能量 +var current_hp_energy = 0.0 +# 当前灵力行动能量,控制体内灵力的能量 +var current_mp_energy = 0.0 +# 当前神识行动能量,控制调动大脑思考,神识外放的能量 +var current_ap_energy = 0.0 # 肉体能量回复速度,每回合回复的量 var hp_recover_speed = 1 @@ -31,6 +28,67 @@ var hp_action = null var mp_action = null var ap_action = null +# 设置基本属性,肉身HP,灵力MP,神识AP +export(int) var Hp = 0 +export(int) var Mp = 0 +export(int) var Ap = 0 +export(int) var Hp_max = 0 +export(int) var Mp_max = 0 +export(int) var Ap_max = 0 +export(int) var Hp_temp = 0 +export(int) var Mp_temp = 0 +export(int) var Ap_temp = 0 +# 设置等级 +export(int) var level = 0 +# 设置经验值 +export(int) var experience = 0 + +# 当前buff +var buffs = {} + +# 获得最大肉体值 +func get_max_hp(): + var maxhp = 0 + if race and race is Race: + maxhp = int(rand_range(race.Hp_dice,level * race.Hp_dice)) + else: + print("race is ",race) + return maxhp + return maxhp + +# 获得最大灵力值 +func get_max_mp(): + var maxmp = 0 + if race and race is Race: + maxmp = int(rand_range(race.Hp_dice,level * race.Hp_dice)) + else: + print("race is ",race) + return maxmp + return maxmp + +# 获得最大神识值 +func get_max_ap(): + var maxap = 0 + if race and race is Race: + maxap = int(rand_range(race.Hp_dice,level * race.Hp_dice)) + else: + print("race is ",race) + return maxap + return maxap + +# 获得生命比值 +func get_hurt_state(): + var diff = (self.Hp * 1.0) / (self.Hp_max * 1.0) + if diff >= 1.0 : return 0 + elif diff >= 0.9 : return 1 + elif diff >= 0.75 : return 2 + elif diff >= 0.5 : return 3 + elif diff >= 0.25 : return 4 + elif diff >= 0.1 : return 5 + else: return 6 + + + # 伤害 func hurt(actor,attack_value,attack_type,source): if source == null: diff --git a/core/ex/Game.gd b/core/ex/Game.gd index 141bfbf..a097588 100644 --- a/core/ex/Game.gd +++ b/core/ex/Game.gd @@ -2,7 +2,7 @@ extends Node class_name Game # 战场 -var battle_field : Battlefield +var battle_field # 选择点 var hovered_location : Location var selected_location : Location diff --git a/core/global/GameData.gd b/core/global/GameData.gd new file mode 100644 index 0000000..b4aad53 --- /dev/null +++ b/core/global/GameData.gd @@ -0,0 +1,5 @@ +extends Node + +var player +var map +var inventory diff --git a/d/monsters/heros/hero_ttwings.tres b/d/heros/hero_ttwings.tres similarity index 100% rename from d/monsters/heros/hero_ttwings.tres rename to d/heros/hero_ttwings.tres diff --git a/d/human.tres b/d/human.tres index 0145cfb..3b85128 100644 --- a/d/human.tres +++ b/d/human.tres @@ -4,8 +4,8 @@ [resource] script = ExtResource( 1 ) -race = "人族" -alias = "老巴" +type = "人族" +alias = "青年人族" body = "中型" speed = 4 initiative = 2 @@ -22,11 +22,5 @@ armor_class = 2 fortitude = 2 reflex = 2 will = 2 -attacks = { -} -current_attack = "" -defenses = { -} -current_defense = "" law = 0 good = 0 diff --git a/d/monsters/animals/monstrous_spider.gd b/d/monsters/animals/monstrous_spider.gd deleted file mode 100644 index 5e25af2..0000000 --- a/d/monsters/animals/monstrous_spider.gd +++ /dev/null @@ -1,10 +0,0 @@ -extends Race - -func _init(): - race = "蜘蛛" - alias = "变种小蜘蛛" - body = "超小型" - Hp_dice = 8 - speed = 4 - armor_class = 15 - attacks = {"1" : Attack.new("啮咬",5,1,1,4,"毒素")} \ No newline at end of file diff --git a/project.godot b/project.godot index ae0a522..3337b26 100644 --- a/project.godot +++ b/project.godot @@ -17,13 +17,18 @@ _global_script_classes=[ { "base": "Reference", "class": "ActionResult", "language": "GDScript", -"path": "res://core/ActionResult.gd" +"path": "res://core/Actionresult.gd" }, { -"base": "Node2D", +"base": "Thing", "class": "Actor", "language": "GDScript", "path": "res://core/Actor.gd" }, { +"base": "ThingV", +"class": "ActorV", +"language": "GDScript", +"path": "res://tscn/ActorV.gd" +}, { "base": "AnimaAnimatable", "class": "AnimaAccordion", "language": "GDScript", @@ -39,7 +44,7 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://addons/anima/utils/animations.gd" }, { -"base": "Reference", +"base": "AnimaShape", "class": "AnimaArc", "language": "GDScript", "path": "res://addons/anima/shapes/Arc.gd" @@ -64,12 +69,12 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://addons/anima/components/AnimaChars.gd" }, { -"base": "Reference", +"base": "AnimaShape", "class": "AnimaCircle", "language": "GDScript", "path": "res://addons/anima/shapes/Circle.gd" }, { -"base": "Reference", +"base": "AnimaShape", "class": "AnimaCubicBezier", "language": "GDScript", "path": "res://addons/anima/shapes/CubicBezier.gd" @@ -79,27 +84,27 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://addons/anima/core/declaration/anima_declaration_base.gd" }, { -"base": "Reference", +"base": "AnimaDeclarationBase", "class": "AnimaDeclarationForAnimation", "language": "GDScript", "path": "res://addons/anima/core/declaration/anima_declaration_for_animation.gd" }, { -"base": "Reference", +"base": "AnimaDeclarationBase", "class": "AnimaDeclarationForProperty", "language": "GDScript", "path": "res://addons/anima/core/declaration/anima_declaration_for_property.gd" }, { -"base": "Reference", +"base": "AnimaDeclarationBase", "class": "AnimaDeclarationForRelativeProperty", "language": "GDScript", "path": "res://addons/anima/core/declaration/anima_declaration_for_relative_property.gd" }, { -"base": "Reference", +"base": "AnimaDeclarationNode", "class": "AnimaDeclarationGrid", "language": "GDScript", "path": "res://addons/anima/core/declaration/anima_declaration_grid.gd" }, { -"base": "Reference", +"base": "AnimaDeclarationNode", "class": "AnimaDeclarationGroup", "language": "GDScript", "path": "res://addons/anima/core/declaration/anima_declaration_group.gd" @@ -119,17 +124,17 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://addons/anima/core/easings.gd" }, { -"base": "Reference", +"base": "Control", "class": "AnimaLabel", "language": "GDScript", "path": "res://addons/anima/components/AnimaLabel.gd" }, { -"base": "Reference", +"base": "AnimaShape", "class": "AnimaLine", "language": "GDScript", "path": "res://addons/anima/shapes/Line.gd" }, { -"base": "Reference", +"base": "Node", "class": "AnimaNode", "language": "GDScript", "path": "res://addons/anima/core/anima_node.gd" @@ -139,7 +144,7 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://addons/anima/utils/node_properties.gd" }, { -"base": "Reference", +"base": "Node", "class": "AnimaPlayer", "language": "GDScript", "path": "res://addons/anima/core/player.gd" @@ -149,17 +154,17 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://addons/anima/utils/anima_properties_list.gd" }, { -"base": "Reference", +"base": "AnimaShape", "class": "AnimaRectangle", "language": "GDScript", "path": "res://addons/anima/shapes/Rectangle.gd" }, { -"base": "Reference", +"base": "AnimaAnimatable", "class": "AnimaShape", "language": "GDScript", "path": "res://addons/anima/shapes/Shape.gd" }, { -"base": "Reference", +"base": "Control", "class": "AnimaSquare", "language": "GDScript", "path": "res://addons/anima/shapes/Square.gd" @@ -169,12 +174,12 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://addons/anima/utils/strings.gd" }, { -"base": "Reference", +"base": "AnimaShape", "class": "AnimaTriangle", "language": "GDScript", "path": "res://addons/anima/shapes/Triangle.gd" }, { -"base": "Reference", +"base": "Tween", "class": "AnimaTween", "language": "GDScript", "path": "res://addons/anima/core/tween.gd" @@ -184,7 +189,7 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://addons/anima/utils/tween_utils.gd" }, { -"base": "Reference", +"base": "Node", "class": "AnimaVisualNode", "language": "GDScript", "path": "res://addons/anima/core/visual_node.gd" @@ -229,6 +234,11 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://core/Field.gd" }, { +"base": "Resource", +"class": "Fighter", +"language": "GDScript", +"path": "res://core/Fighter.gd" +}, { "base": "Node", "class": "Game", "language": "GDScript", @@ -239,7 +249,12 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://core/Hero.gd" }, { -"base": "Buff", +"base": "ActorV", +"class": "HeroV", +"language": "GDScript", +"path": "res://tscn/HeroV.gd" +}, { +"base": "Thing", "class": "Item", "language": "GDScript", "path": "res://core/Item.gd" @@ -289,6 +304,16 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://core/Terrain.gd" }, { +"base": "Resource", +"class": "Thing", +"language": "GDScript", +"path": "res://core/Thing.gd" +}, { +"base": "Node2D", +"class": "ThingV", +"language": "GDScript", +"path": "res://tscn/ThingV.gd" +}, { "base": "Action", "class": "WalkAction", "language": "GDScript", @@ -303,12 +328,13 @@ _global_script_class_icons={ "Action": "", "ActionResult": "", "Actor": "", +"ActorV": "", "AnimaAccordion": "", "AnimaAnimatable": "", "AnimaAnimationsUtils": "", "AnimaArc": "", "AnimaAwaitableAddChild": "", -"AnimaButton": "", +"AnimaButton": "res://addons/anima/icons/button.svg", "AnimaCarousel": "", "AnimaChars": "", "AnimaCircle": "", @@ -344,8 +370,10 @@ _global_script_class_icons={ "Buff": "", "Defense": "", "Field": "", +"Fighter": "", "Game": "", "Hero": "", +"HeroV": "", "Item": "", "Loader": "", "Location": "", @@ -356,6 +384,8 @@ _global_script_class_icons={ "Scroll": "", "Skill": "", "Terrain": "", +"Thing": "", +"ThingV": "", "WalkAction": "", "Weather": "" } @@ -374,6 +404,11 @@ ANIMA="*res://addons/anima/core/costants.gd" AnimaUI="*res://addons/anima/ui/AnimaUI.gd" Anima="*res://addons/anima/core/anima.gd" Sys="*res://core/global/Sys.gd" +GameData="*res://core/global/GameData.gd" + +[debug] + +gdscript/warnings/enable=false [display] @@ -503,6 +538,61 @@ action0={ , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777350,"physical_scancode":0,"unicode":0,"echo":false,"script":null) ] } +step_N={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":69,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +step_S={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +step_W={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +step_E={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":70,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +step_EN={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +step_ES={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":88,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +step_WN={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":82,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +step_WS={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":86,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +act_GRAB={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":71,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +act_DROP={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":88,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} +act_THROW={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":84,"physical_scancode":0,"unicode":0,"echo":false,"script":null) + ] +} [node] diff --git a/tscn/ActorV.gd b/tscn/ActorV.gd new file mode 100644 index 0000000..7098fd4 --- /dev/null +++ b/tscn/ActorV.gd @@ -0,0 +1,13 @@ +extends ThingV +class_name ActorV +# Class Actor view node + +var actor + +func init(t): + .init(t) + actor = t + +func add_tip(bbc): + tip.bbcode_enabled = true + tip.bbcode_text = bbc diff --git a/tscn/ActorV.tscn b/tscn/ActorV.tscn new file mode 100644 index 0000000..39ecf6a --- /dev/null +++ b/tscn/ActorV.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://tscn/ActorV.gd" type="Script" id=1] +[ext_resource path="res://addons/anima/core/player.gd" type="Script" id=2] +[ext_resource path="res://res/texture/player/base/shadow.png" type="Texture" id=3] + +[node name="ActorV" type="Node2D"] +script = ExtResource( 1 ) + +[node name="Icon" type="Sprite" parent="."] + +[node name="Brand" type="Sprite" parent="."] + +[node name="Shadow" type="Sprite" parent="."] +texture = ExtResource( 3 ) +centered = false + +[node name="Tip" type="RichTextLabel" parent="."] +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="AnimaPlayer" type="Node" parent="."] +script = ExtResource( 2 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] diff --git a/tscn/HeroV.gd b/tscn/HeroV.gd new file mode 100644 index 0000000..c473cfa --- /dev/null +++ b/tscn/HeroV.gd @@ -0,0 +1,3 @@ +extends ActorV + +class_name HeroV diff --git a/tscn/HeroV.tscn b/tscn/HeroV.tscn new file mode 100644 index 0000000..7da5c10 --- /dev/null +++ b/tscn/HeroV.tscn @@ -0,0 +1,20 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://tscn/HeroV.gd" type="Script" id=1] +[ext_resource path="res://addons/anima/core/player.gd" type="Script" id=2] + +[node name="HeroV" type="Node2D"] +script = ExtResource( 1 ) + +[node name="Icon" type="Sprite" parent="."] + +[node name="Brand" type="Sprite" parent="."] + +[node name="Tip" type="RichTextLabel" parent="."] +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="AnimaPlayer" type="Node" parent="."] +script = ExtResource( 2 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] diff --git a/tscn/ItemV.gd b/tscn/ItemV.gd new file mode 100644 index 0000000..554573f --- /dev/null +++ b/tscn/ItemV.gd @@ -0,0 +1,7 @@ +extends ThingV + +var item + +func init(t): + .init(t) + self.item = t diff --git a/tscn/ItemV.tscn b/tscn/ItemV.tscn new file mode 100644 index 0000000..3960062 --- /dev/null +++ b/tscn/ItemV.tscn @@ -0,0 +1,15 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://tscn/ItemV.gd" type="Script" id=2] + +[node name="ItemV" type="Node2D"] +script = ExtResource( 2 ) + +[node name="Icon" type="Sprite" parent="."] +centered = false + +[node name="Brand" type="Sprite" parent="."] + +[node name="Tip" type="RichTextLabel" parent="."] +margin_right = 40.0 +margin_bottom = 40.0 diff --git a/tscn/ItemView.gd b/tscn/ItemView.gd deleted file mode 100644 index 6dc38b5..0000000 --- a/tscn/ItemView.gd +++ /dev/null @@ -1,9 +0,0 @@ -extends Node2D - -var item - -func _ready(): - pass # Replace with function body. - -func _init(item): - item = item diff --git a/tscn/ItemView.tscn b/tscn/ItemView.tscn deleted file mode 100644 index 065c133..0000000 --- a/tscn/ItemView.tscn +++ /dev/null @@ -1,20 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://res/texture/item/weapon/spear.png" type="Texture" id=1] -[ext_resource path="res://tscn/ItemView.gd" type="Script" id=2] - -[node name="ItemView" type="Node2D"] -script = ExtResource( 2 ) - -[node name="Sprite" type="Sprite" parent="."] -texture = ExtResource( 1 ) -centered = false - -[node name="UI" type="Node2D" parent="."] - -[node name="RichTextLabel" type="RichTextLabel" parent="UI"] -margin_right = 64.0 -margin_bottom = 64.0 -bbcode_enabled = true -bbcode_text = "[color=#FF0000]item[/color]" -text = "item" diff --git a/tscn/MapView.gd b/tscn/MapV.gd similarity index 100% rename from tscn/MapView.gd rename to tscn/MapV.gd diff --git a/tscn/MapV.tscn b/tscn/MapV.tscn new file mode 100644 index 0000000..d311e93 --- /dev/null +++ b/tscn/MapV.tscn @@ -0,0 +1,29 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://tscn/Player.tscn" type="PackedScene" id=1] +[ext_resource path="res://core/Monster.gd" type="Script" id=2] +[ext_resource path="res://tscn/MapV.gd" type="Script" id=3] + +[node name="MapView" type="TileMap"] +format = 1 +script = ExtResource( 3 ) + +[node name="Wall" type="TileMap" parent="."] +unique_name_in_owner = true +position = Vector2( 0, -3 ) +format = 1 + +[node name="Floor" type="TileMap" parent="."] +unique_name_in_owner = true +position = Vector2( 0, -3 ) +format = 1 + +[node name="Fog" type="TileMap" parent="."] +unique_name_in_owner = true +position = Vector2( 0, -3 ) +format = 1 + +[node name="Player" parent="." instance=ExtResource( 1 )] + +[node name="Monster" type="Node2D" parent="."] +script = ExtResource( 2 ) diff --git a/tscn/MapView.tscn b/tscn/MapView.tscn deleted file mode 100644 index 47cfcd4..0000000 --- a/tscn/MapView.tscn +++ /dev/null @@ -1,53 +0,0 @@ -[gd_scene load_steps=4 format=2] - -[ext_resource path="res://tscn/Player.tscn" type="PackedScene" id=1] -[ext_resource path="res://tscn/MapView.gd" type="Script" id=2] -[ext_resource path="res://core/Monster.gd" type="Script" id=3] - -[node name="MapView" type="TileMap"] -format = 1 -script = ExtResource( 2 ) - -[node name="Wall" type="TileMap" parent="."] -unique_name_in_owner = true -position = Vector2( 0, -3 ) -format = 1 - -[node name="Floor" type="TileMap" parent="."] -unique_name_in_owner = true -position = Vector2( 0, -3 ) -format = 1 - -[node name="Fog" type="TileMap" parent="."] -unique_name_in_owner = true -position = Vector2( 0, -3 ) -format = 1 - -[node name="Player" parent="." instance=ExtResource( 1 )] - -[node name="Monster" type="Node2D" parent="."] -script = ExtResource( 3 ) - -[node name="Monster_2" type="Node2D" parent="."] -script = ExtResource( 3 ) - -[node name="Monster_3" type="Node2D" parent="."] -script = ExtResource( 3 ) - -[node name="Monster_4" type="Node2D" parent="."] -script = ExtResource( 3 ) - -[node name="Monster_5" type="Node2D" parent="."] -script = ExtResource( 3 ) - -[node name="Monster_6" type="Node2D" parent="."] -script = ExtResource( 3 ) - -[node name="Monster_7" type="Node2D" parent="."] -script = ExtResource( 3 ) - -[node name="Monster_9" type="Node2D" parent="."] -script = ExtResource( 3 ) - -[node name="Monster_8" type="Node2D" parent="."] -script = ExtResource( 3 ) diff --git a/tscn/Player.gd b/tscn/Player.gd index 1d5597d..adb00e8 100644 --- a/tscn/Player.gd +++ b/tscn/Player.gd @@ -1,9 +1,11 @@ -extends Node2D +extends HeroV +# Hero export(Resource) var hero onready var animation = get_node("AnimationPlayer") onready var hp_bar = get_node("%HpBar") +onready var equips = get_node("Equips") var mp_bar var ap_bar # Called when the node enters the scene tree for the first time. @@ -11,9 +13,9 @@ func _ready(): pass # Replace with function body. -func _init(hero): -# ._init(hero) - self.hero = hero +func init(t): + .init(t) + self.hero = t self.hero.connect("on_cell_change",self,"r_cell_change") self.hero.connect("on_hurt",self,"r_hurt") self.hero.connect("on_plus",self,"r_plus") @@ -35,7 +37,34 @@ func _init(hero): func _unhandled_input(event): # 英雄控制组件里面 + var N = event.is_action_pressed("step_N") + var S = event.is_action_pressed("step_S") + var W = event.is_action_pressed("step_W") + var E = event.is_action_pressed("step_E") + var EN = event.is_action_pressed("step_EN") + var ES = event.is_action_pressed("step_ES") + var WN = event.is_action_pressed("step_WN") + var WS = event.is_action_pressed("step_WS") + var WAIT = event.is_action_pressed("step_WAIT") + + var GRAB = event.is_action_pressed("act_GRAB") + var DROP = event.is_action_pressed("act_DROP") + var THROW = event.is_action_pressed("act_THROW") + + if N: + hero.step(Vector2(0,-1)) + if S: + hero.step(Vector2(0,1)) + if W: + hero.step(Vector2(-1,0)) + if E: + hero.step(Vector2(1,0)) + ## todo + + if GRAB: + hero.Grab() pass + func r_cell_change(): # animation to move diff --git a/tscn/Player.tscn b/tscn/Player.tscn index f581b95..90bd635 100644 --- a/tscn/Player.tscn +++ b/tscn/Player.tscn @@ -1,15 +1,33 @@ -[gd_scene load_steps=6 format=2] +[gd_scene load_steps=8 format=2] -[ext_resource path="res://d/monsters/heros/hero_ttwings.tres" type="Resource" id=1] +[ext_resource path="res://d/heros/hero_ttwings.tres" type="Resource" id=1] [ext_resource path="res://tscn/Player.gd" type="Script" id=2] [ext_resource path="res://res/texture/player/base/shadow.png" type="Texture" id=3] [ext_resource path="res://res/texture/player/hand_right/axe_blood.png" type="Texture" id=4] [ext_resource path="res://res/texture/player/base/human_male.png" type="Texture" id=5] +[ext_resource path="res://tscn/item/EquipV.tscn" type="PackedScene" id=6] +[ext_resource path="res://addons/anima/core/player.gd" type="Script" id=7] [node name="Player" type="Node2D"] script = ExtResource( 2 ) hero = ExtResource( 1 ) +[node name="Icon" type="Sprite" parent="."] +position = Vector2( 0, -2 ) + +[node name="Brand" type="Sprite" parent="."] +position = Vector2( 0, -2 ) + +[node name="Tip" type="RichTextLabel" parent="."] +margin_top = -2.0 +margin_right = 40.0 +margin_bottom = 38.0 + +[node name="AnimaPlayer" type="Node" parent="."] +script = ExtResource( 7 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] + [node name="Shadow" type="Sprite" parent="."] texture = ExtResource( 3 ) centered = false @@ -26,11 +44,13 @@ centered = false texture = ExtResource( 5 ) centered = false -[node name="AnimationPlayer" type="AnimationPlayer" parent="."] - [node name="UI" type="Node2D" parent="."] [node name="HpBar" type="ProgressBar" parent="UI"] unique_name_in_owner = true margin_right = 4.0 margin_bottom = 14.0 + +[node name="Equips" type="Node" parent="."] + +[node name="EquipV" parent="." instance=ExtResource( 6 )] diff --git a/tscn/ThingV.gd b/tscn/ThingV.gd new file mode 100644 index 0000000..4f9f313 --- /dev/null +++ b/tscn/ThingV.gd @@ -0,0 +1,60 @@ +extends Node2D + +class_name ThingV +# class Thing view node +onready var icon = $Icon +onready var brand = $Brand +onready var tip = $Tip + +export(String) var alias = "thing" +export(String,MULTILINE) var description = "" + +#export(Texture) var sprite_path setget _set_sprite_path + +export(bool) var blocks_movement = false +export(bool) var blocks_sight = false +export(bool) var stay_visible = false + +var found = false + +# Thing +var thing + +func init(t): + thing = t + thing.alias = alias + thing.description = description + thing.blocks_movement = blocks_movement + thing.blocks_sight = blocks_sight + + +func add_tip(bbc): + tip.bbcode_enabled = true + tip.bbcode_text = bbc + +func get_icon(): + return icon.texture + +func get_brand(): + return brand.texture + +func kill(): + if GameData.player != self: + queue_free() + +func spawn(map,cell): + if is_in_group("inventory"): + remove_from_group("inventory") + if not is_in_group("world"): + add_to_group("world") + map.add_child(self) + set_map_pos(cell) + return self + +func set_map_pos(c): + return GameData.map.world_to_map(position) + +func _ready(): + add_to_group("Things") + + diff --git a/tscn/ThingView.tscn b/tscn/ThingV.tscn similarity index 60% rename from tscn/ThingView.tscn rename to tscn/ThingV.tscn index 17cfafe..326217a 100644 --- a/tscn/ThingView.tscn +++ b/tscn/ThingV.tscn @@ -1,13 +1,15 @@ [gd_scene load_steps=2 format=2] -[ext_resource path="res://tscn/ThingView.gd" type="Script" id=1] +[ext_resource path="res://tscn/ThingV.gd" type="Script" id=1] -[node name="ThingView" type="Node2D"] +[node name="ThingV" type="Node2D"] script = ExtResource( 1 ) [node name="Icon" type="Sprite" parent="."] centered = false +[node name="Brand" type="Sprite" parent="."] + [node name="Tip" type="RichTextLabel" parent="."] margin_right = 40.0 margin_bottom = 40.0 diff --git a/tscn/ThingView.gd b/tscn/ThingView.gd deleted file mode 100644 index ceb6db8..0000000 --- a/tscn/ThingView.gd +++ /dev/null @@ -1,16 +0,0 @@ -extends Node2D - - -# Declare member variables here. Examples: -# var a = 2 -# var b = "text" -onready var icon = $Icon -onready var tip = $Tip -var thing - -# Called when the node enters the scene tree for the first time. -func _ready(): - pass # Replace with function body. - -func _init(_thing): - thing = _thing diff --git a/tscn/X_5.gd b/tscn/X_5.gd index 4fa522b..76227ec 100644 --- a/tscn/X_5.gd +++ b/tscn/X_5.gd @@ -20,3 +20,10 @@ func get_effect_cells(x1,y1,x2,y2): if get_cell(i,j) != -1 : effect_cells.append(Vector2(i,j)) print(Vector2(i,j)) + +func get_target_cell(x1,y1,x2,y2): + for i in range(x1,x2): + for j in range(y1,y2): + if get_cell(i,j) == 1 : + print(get_cell(i,j)) + return Vector2(i,j) diff --git a/tscn/item/EquipV.gd b/tscn/item/EquipV.gd new file mode 100644 index 0000000..540639c --- /dev/null +++ b/tscn/item/EquipV.gd @@ -0,0 +1,29 @@ +tool +extends Node2D + +# 外观texture id +export(String) var apperence = "" +export(String,"weapon") var equip_type = "" +export(String,"hand_right") var slot = "hand_right" + +onready var icon = $Icon +onready var doll = $Doll + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + +func get_icon(): + icon.texture = load("res://res/texture/item/" + equip_type + "/" + apperence +".png") + return icon.texture + pass + +func get_doll(): + doll.texture = load("res://res/texture/player/" + slot + "/" + apperence + ".png") + return doll + pass + +func _enter_tree(): + get_icon() + get_doll() + pass diff --git a/tscn/item/EquipV.tscn b/tscn/item/EquipV.tscn new file mode 100644 index 0000000..9a12033 --- /dev/null +++ b/tscn/item/EquipV.tscn @@ -0,0 +1,15 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://tscn/item/EquipV.gd" type="Script" id=1] + +[node name="EquipV" type="Node2D"] +script = ExtResource( 1 ) +apperence = "axe" +equip_type = "weapon" + +[node name="Icon" type="Sprite" parent="."] +centered = false + +[node name="Doll" type="Sprite" parent="."] +position = Vector2( 64, 0 ) +centered = false diff --git a/tscn/map/MapV.gd b/tscn/map/MapV.gd new file mode 100644 index 0000000..3f7aaef --- /dev/null +++ b/tscn/map/MapV.gd @@ -0,0 +1,9 @@ +extends TileMap + +var map +func _init(_map): + map = _map + + +func _ready(): + pass diff --git a/tscn/map/MapV.tscn b/tscn/map/MapV.tscn new file mode 100644 index 0000000..1226002 --- /dev/null +++ b/tscn/map/MapV.tscn @@ -0,0 +1,26 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://tscn/Player.tscn" type="PackedScene" id=1] +[ext_resource path="res://res/texture/dungeon/trees.tres" type="TileSet" id=2] +[ext_resource path="res://res/texture/dungeon/floor.tres" type="TileSet" id=3] + +[sub_resource type="TileSet" id=1] + +[node name="MapV" type="TileMap"] +tile_set = SubResource( 1 ) +format = 1 + +[node name="Floor" type="TileMap" parent="."] +tile_set = ExtResource( 3 ) +format = 1 +tile_data = PoolIntArray( 0, 11, 0, 1, 12, 0, 2, 15, 0, 3, 15, 0, 4, 9, 0, 5, 18, 0, 6, 13, 0, 7, 20, 0, 8, 16, 0, 9, 16, 0, 10, 16, 0, 11, 12, 0, 12, 12, 0, 13, 13, 0, 14, 13, 0, 15, 12, 0, 16, 11, 0, 17, 11, 0, 18, 17, 0, 19, 16, 0, 20, 10, 0, 21, 11, 0, 22, 9, 0, 23, 12, 0, 24, 12, 0, 25, 17, 0, 26, 13, 0, 27, 15, 0, 28, 12, 0, 29, 19, 0, 30, 17, 0, 31, 11, 0, 32, 13, 0, 33, 13, 0, 34, 10, 0, 35, 14, 0, 36, 18, 0, 65536, 10, 0, 65537, 11, 0, 65538, 12, 0, 65539, 15, 0, 65540, 13, 0, 65541, 13, 0, 65542, 11, 0, 65543, 9, 0, 65544, 17, 0, 65545, 11, 0, 65546, 19, 0, 65547, 15, 0, 65548, 20, 0, 65549, 11, 0, 65550, 16, 0, 65551, 10, 0, 65552, 20, 0, 65553, 20, 0, 65554, 11, 0, 65555, 14, 0, 65556, 17, 0, 65557, 17, 0, 65558, 12, 0, 65559, 19, 0, 65560, 13, 0, 65561, 9, 0, 65562, 18, 0, 65563, 17, 0, 65564, 12, 0, 65565, 15, 0, 65566, 9, 0, 65567, 10, 0, 65568, 10, 0, 65569, 13, 0, 65570, 9, 0, 65571, 18, 0, 65572, 20, 0, 131072, 11, 0, 131073, 12, 0, 131074, 17, 0, 131075, 18, 0, 131076, 20, 0, 131077, 12, 0, 131078, 12, 0, 131079, 12, 0, 131080, 17, 0, 131081, 19, 0, 131082, 18, 0, 131083, 9, 0, 131084, 17, 0, 131085, 10, 0, 131086, 15, 0, 131087, 12, 0, 131088, 20, 0, 131089, 13, 0, 131090, 12, 0, 131091, 15, 0, 131092, 10, 0, 131093, 17, 0, 131094, 19, 0, 131095, 15, 0, 131096, 17, 0, 131097, 17, 0, 131098, 11, 0, 131099, 17, 0, 131100, 12, 0, 131101, 17, 0, 131102, 16, 0, 131103, 20, 0, 131104, 17, 0, 131105, 13, 0, 131106, 15, 0, 131107, 20, 0, 131108, 12, 0, 196608, 18, 0, 196609, 16, 0, 196610, 9, 0, 196611, 15, 0, 196612, 11, 0, 196613, 12, 0, 196614, 11, 0, 196615, 15, 0, 196616, 13, 0, 196617, 19, 0, 196618, 17, 0, 196619, 20, 0, 196620, 16, 0, 196621, 15, 0, 196622, 10, 0, 196623, 17, 0, 196624, 13, 0, 196625, 15, 0, 196626, 11, 0, 196627, 10, 0, 196628, 17, 0, 196629, 13, 0, 196630, 9, 0, 196631, 10, 0, 196632, 15, 0, 196633, 18, 0, 196634, 18, 0, 196635, 15, 0, 196636, 11, 0, 196637, 17, 0, 196638, 17, 0, 196639, 12, 0, 196640, 14, 0, 196641, 9, 0, 196642, 18, 0, 196643, 12, 0, 196644, 13, 0, 262144, 11, 0, 262145, 12, 0, 262146, 15, 0, 262147, 14, 0, 262148, 13, 0, 262149, 17, 0, 262150, 18, 0, 262151, 10, 0, 262152, 17, 0, 262153, 18, 0, 262154, 11, 0, 262155, 11, 0, 262156, 11, 0, 262157, 17, 0, 262158, 14, 0, 262159, 13, 0, 262160, 15, 0, 262161, 17, 0, 262162, 16, 0, 262163, 20, 0, 262164, 20, 0, 262165, 19, 0, 262166, 20, 0, 262167, 14, 0, 262168, 11, 0, 262169, 13, 0, 262170, 14, 0, 262171, 18, 0, 262172, 12, 0, 262173, 13, 0, 262174, 18, 0, 262175, 20, 0, 262176, 11, 0, 262177, 16, 0, 262178, 15, 0, 262179, 12, 0, 262180, 16, 0, 327680, 13, 0, 327681, 12, 0, 327682, 14, 0, 327683, 12, 0, 327684, 13, 0, 327685, 16, 0, 327686, 15, 0, 327687, 9, 0, 327688, 11, 0, 327689, 12, 0, 327690, 17, 0, 327691, 11, 0, 327692, 20, 0, 327693, 12, 0, 327694, 11, 0, 327695, 12, 0, 327696, 10, 0, 327697, 14, 0, 327698, 10, 0, 327699, 14, 0, 327700, 13, 0, 327701, 11, 0, 327702, 14, 0, 327703, 10, 0, 327704, 20, 0, 327705, 14, 0, 327706, 10, 0, 327707, 15, 0, 327708, 12, 0, 327709, 12, 0, 327710, 14, 0, 327711, 19, 0, 327712, 12, 0, 327713, 13, 0, 327714, 18, 0, 327715, 17, 0, 327716, 13, 0, 393216, 19, 0, 393217, 17, 0, 393218, 18, 0, 393219, 12, 0, 393220, 18, 0, 393221, 13, 0, 393222, 19, 0, 393223, 9, 0, 393224, 14, 0, 393225, 14, 0, 393226, 9, 0, 393227, 18, 0, 393228, 11, 0, 393229, 19, 0, 393230, 14, 0, 393231, 17, 0, 393232, 11, 0, 393233, 15, 0, 393234, 12, 0, 393235, 11, 0, 393236, 18, 0, 393237, 19, 0, 393238, 11, 0, 393239, 17, 0, 393240, 20, 0, 393241, 13, 0, 393242, 17, 0, 393243, 10, 0, 393244, 19, 0, 393245, 15, 0, 393246, 16, 0, 393247, 10, 0, 393248, 11, 0, 393249, 10, 0, 393250, 20, 0, 393251, 19, 0, 393252, 14, 0, 458752, 18, 0, 458753, 15, 0, 458754, 19, 0, 458755, 19, 0, 458756, 20, 0, 458757, 15, 0, 458758, 14, 0, 458759, 11, 0, 458760, 14, 0, 458761, 15, 0, 458762, 20, 0, 458763, 9, 0, 458764, 15, 0, 458765, 19, 0, 458766, 19, 0, 458767, 10, 0, 458768, 13, 0, 458769, 17, 0, 458770, 18, 0, 458771, 13, 0, 458772, 18, 0, 458773, 16, 0, 458774, 13, 0, 458775, 19, 0, 458776, 15, 0, 458777, 17, 0, 458778, 11, 0, 458779, 12, 0, 458780, 17, 0, 458781, 10, 0, 458782, 14, 0, 458783, 14, 0, 458784, 9, 0, 458785, 15, 0, 458786, 16, 0, 458787, 20, 0, 458788, 10, 0, 524288, 15, 0, 524289, 20, 0, 524290, 13, 0, 524291, 16, 0, 524292, 12, 0, 524293, 19, 0, 524294, 16, 0, 524295, 10, 0, 524296, 20, 0, 524297, 19, 0, 524298, 14, 0, 524299, 13, 0, 524300, 13, 0, 524301, 17, 0, 524302, 17, 0, 524303, 14, 0, 524304, 20, 0, 524305, 11, 0, 524306, 9, 0, 524307, 9, 0, 524308, 13, 0, 524309, 20, 0, 524310, 14, 0, 524311, 10, 0, 524312, 9, 0, 524313, 20, 0, 524314, 15, 0, 524315, 14, 0, 524316, 19, 0, 524317, 9, 0, 524318, 19, 0, 524319, 15, 0, 524320, 9, 0, 524321, 17, 0, 524322, 18, 0, 524323, 11, 0, 524324, 20, 0, 589824, 19, 0, 589825, 9, 0, 589826, 20, 0, 589827, 16, 0, 589828, 17, 0, 589829, 9, 0, 589830, 17, 0, 589831, 13, 0, 589832, 19, 0, 589833, 13, 0, 589834, 20, 0, 589835, 20, 0, 589836, 12, 0, 589837, 17, 0, 589838, 13, 0, 589839, 12, 0, 589840, 13, 0, 589841, 16, 0, 589842, 19, 0, 589843, 9, 0, 589844, 10, 0, 589845, 20, 0, 589846, 15, 0, 589847, 20, 0, 589848, 14, 0, 589849, 13, 0, 589850, 15, 0, 589851, 9, 0, 589852, 14, 0, 589853, 19, 0, 589854, 16, 0, 589855, 11, 0, 589856, 14, 0, 589857, 20, 0, 589858, 14, 0, 589859, 13, 0, 589860, 19, 0, 655360, 14, 0, 655361, 13, 0, 655362, 11, 0, 655363, 13, 0, 655364, 13, 0, 655365, 15, 0, 655366, 19, 0, 655367, 16, 0, 655368, 13, 0, 655369, 14, 0, 655370, 18, 0, 655371, 14, 0, 655372, 10, 0, 655373, 15, 0, 655374, 16, 0, 655375, 18, 0, 655376, 11, 0, 655377, 10, 0, 655378, 15, 0, 655379, 19, 0, 655380, 10, 0, 655381, 17, 0, 655382, 10, 0, 655383, 19, 0, 655384, 18, 0, 655385, 17, 0, 655386, 17, 0, 655387, 9, 0, 655388, 14, 0, 655389, 10, 0, 655390, 16, 0, 655391, 12, 0, 655392, 17, 0, 655393, 19, 0, 655394, 18, 0, 655395, 13, 0, 655396, 17, 0, 720896, 19, 0, 720897, 12, 0, 720898, 19, 0, 720899, 14, 0, 720900, 11, 0, 720901, 19, 0, 720902, 11, 0, 720903, 10, 0, 720904, 17, 0, 720905, 14, 0, 720906, 20, 0, 720907, 20, 0, 720908, 13, 0, 720909, 14, 0, 720910, 20, 0, 720911, 15, 0, 720912, 10, 0, 720913, 12, 0, 720914, 9, 0, 720915, 18, 0, 720916, 17, 0, 720917, 15, 0, 720918, 16, 0, 720919, 19, 0, 720920, 10, 0, 720921, 14, 0, 720922, 20, 0, 720923, 14, 0, 720924, 15, 0, 720925, 15, 0, 720926, 18, 0, 720927, 15, 0, 720928, 16, 0, 720929, 15, 0, 720930, 9, 0, 720931, 17, 0, 720932, 9, 0, 786432, 20, 0, 786433, 12, 0, 786434, 19, 0, 786435, 12, 0, 786436, 18, 0, 786437, 13, 0, 786438, 10, 0, 786439, 18, 0, 786440, 13, 0, 786441, 12, 0, 786442, 15, 0, 786443, 14, 0, 786444, 16, 0, 786445, 18, 0, 786446, 18, 0, 786447, 19, 0, 786448, 16, 0, 786449, 14, 0, 786450, 11, 0, 786451, 17, 0, 786452, 13, 0, 786453, 14, 0, 786454, 13, 0, 786455, 14, 0, 786456, 15, 0, 786457, 20, 0, 786458, 19, 0, 786459, 12, 0, 786460, 17, 0, 786461, 16, 0, 786462, 16, 0, 786463, 19, 0, 786464, 14, 0, 786465, 10, 0, 786466, 16, 0, 786467, 9, 0, 786468, 10, 0, 851968, 15, 0, 851969, 11, 0, 851970, 17, 0, 851971, 19, 0, 851972, 14, 0, 851973, 14, 0, 851974, 17, 0, 851975, 20, 0, 851976, 14, 0, 851977, 19, 0, 851978, 13, 0, 851979, 11, 0, 851980, 14, 0, 851981, 16, 0, 851982, 10, 0, 851983, 17, 0, 851984, 18, 0, 851985, 16, 0, 851986, 20, 0, 851987, 19, 0, 851988, 9, 0, 851989, 18, 0, 851990, 16, 0, 851991, 13, 0, 851992, 12, 0, 851993, 19, 0, 851994, 9, 0, 851995, 15, 0, 851996, 9, 0, 851997, 14, 0, 851998, 20, 0, 851999, 9, 0, 852000, 15, 0, 852001, 10, 0, 852002, 18, 0, 852003, 18, 0, 852004, 11, 0, 917504, 15, 0, 917505, 12, 0, 917506, 14, 0, 917507, 11, 0, 917508, 19, 0, 917509, 9, 0, 917510, 17, 0, 917511, 14, 0, 917512, 19, 0, 917513, 13, 0, 917514, 20, 0, 917515, 18, 0, 917516, 10, 0, 917517, 17, 0, 917518, 19, 0, 917519, 17, 0, 917520, 14, 0, 917521, 20, 0, 917522, 19, 0, 917523, 12, 0, 917524, 16, 0, 917525, 18, 0, 917526, 20, 0, 917527, 19, 0, 917528, 10, 0, 917529, 11, 0, 917530, 17, 0, 917531, 19, 0, 917532, 9, 0, 917533, 13, 0, 917534, 19, 0, 917535, 9, 0, 917536, 11, 0, 917537, 11, 0, 917538, 11, 0, 917539, 17, 0, 917540, 18, 0, 983040, 10, 0, 983041, 11, 0, 983042, 20, 0, 983043, 9, 0, 983044, 13, 0, 983045, 10, 0, 983046, 11, 0, 983047, 11, 0, 983048, 20, 0, 983049, 20, 0, 983050, 16, 0, 983051, 11, 0, 983052, 19, 0, 983053, 18, 0, 983054, 11, 0, 983055, 9, 0, 983056, 12, 0, 983057, 17, 0, 983058, 15, 0, 983059, 12, 0, 983060, 12, 0, 983061, 20, 0, 983062, 19, 0, 983063, 17, 0, 983064, 10, 0, 983065, 17, 0, 983066, 9, 0, 983067, 15, 0, 983068, 19, 0, 983069, 11, 0, 983070, 13, 0, 983071, 17, 0, 983072, 15, 0, 983073, 14, 0, 983074, 12, 0, 983075, 19, 0, 983076, 16, 0, 1048576, 17, 0, 1048577, 11, 0, 1048578, 17, 0, 1048579, 14, 0, 1048580, 15, 0, 1048581, 19, 0, 1048582, 10, 0, 1048583, 15, 0, 1048584, 18, 0, 1048585, 17, 0, 1048586, 13, 0, 1048587, 20, 0, 1048588, 20, 0, 1048589, 10, 0, 1048590, 20, 0, 1048591, 19, 0, 1048592, 9, 0, 1048593, 13, 0, 1048594, 16, 0, 1048595, 15, 0, 1048596, 10, 0, 1048597, 19, 0, 1048598, 9, 0, 1048599, 20, 0, 1048600, 16, 0, 1048601, 9, 0, 1048602, 19, 0, 1048603, 11, 0, 1048604, 13, 0, 1048605, 9, 0, 1048606, 11, 0, 1048607, 16, 0, 1048608, 14, 0, 1048609, 9, 0, 1048610, 10, 0, 1048611, 18, 0, 1048612, 18, 0, 1114112, 14, 0, 1114113, 18, 0, 1114114, 19, 0, 1114115, 20, 0, 1114116, 19, 0, 1114117, 18, 0, 1114118, 14, 0, 1114119, 18, 0, 1114120, 16, 0, 1114121, 19, 0, 1114122, 13, 0, 1114123, 13, 0, 1114124, 19, 0, 1114125, 14, 0, 1114126, 11, 0, 1114127, 10, 0, 1114128, 9, 0, 1114129, 18, 0, 1114130, 15, 0, 1114131, 10, 0, 1114132, 16, 0, 1114133, 13, 0, 1114134, 11, 0, 1114135, 13, 0, 1114136, 20, 0, 1114137, 11, 0, 1114138, 16, 0, 1114139, 20, 0, 1114140, 20, 0, 1114141, 17, 0, 1114142, 16, 0, 1114143, 16, 0, 1114144, 12, 0, 1114145, 13, 0, 1114146, 14, 0, 1114147, 17, 0, 1114148, 18, 0, 1179648, 11, 0, 1179649, 10, 0, 1179650, 15, 0, 1179651, 15, 0, 1179652, 10, 0, 1179653, 12, 0, 1179654, 18, 0, 1179655, 11, 0, 1179656, 19, 0, 1179657, 10, 0, 1179658, 17, 0, 1179659, 14, 0, 1179660, 15, 0, 1179661, 16, 0, 1179662, 13, 0, 1179663, 12, 0, 1179664, 9, 0, 1179665, 10, 0, 1179666, 17, 0, 1179667, 18, 0, 1179668, 12, 0, 1179669, 12, 0, 1179670, 10, 0, 1179671, 13, 0, 1179672, 19, 0, 1179673, 20, 0, 1179674, 11, 0, 1179675, 14, 0, 1179676, 9, 0, 1179677, 15, 0, 1179678, 19, 0, 1179679, 20, 0, 1179680, 13, 0, 1179681, 10, 0, 1179682, 17, 0, 1179683, 19, 0, 1179684, 14, 0, 1245184, 13, 0, 1245185, 18, 0, 1245186, 19, 0, 1245187, 15, 0, 1245188, 16, 0, 1245189, 16, 0, 1245190, 18, 0, 1245191, 10, 0, 1245192, 12, 0, 1245193, 19, 0, 1245194, 10, 0, 1245195, 9, 0, 1245196, 9, 0, 1245197, 12, 0, 1245198, 17, 0, 1245199, 9, 0, 1245200, 12, 0, 1245201, 11, 0, 1245202, 18, 0, 1245203, 9, 0, 1245204, 13, 0, 1245205, 17, 0, 1245206, 11, 0, 1245207, 14, 0, 1245208, 18, 0, 1245209, 19, 0, 1245210, 12, 0, 1245211, 12, 0, 1245212, 10, 0, 1245213, 18, 0, 1245214, 12, 0, 1245215, 16, 0, 1245216, 17, 0, 1245217, 15, 0, 1245218, 9, 0, 1245219, 11, 0, 1245220, 19, 0, 1310720, 18, 0, 1310721, 16, 0, 1310722, 17, 0, 1310723, 17, 0, 1310724, 11, 0, 1310725, 17, 0, 1310726, 16, 0, 1310727, 14, 0, 1310728, 10, 0, 1310729, 20, 0, 1310730, 13, 0, 1310731, 13, 0, 1310732, 12, 0, 1310733, 11, 0, 1310734, 15, 0, 1310735, 17, 0, 1310736, 20, 0, 1310737, 20, 0, 1310738, 20, 0, 1310739, 15, 0, 1310740, 19, 0, 1310741, 19, 0, 1310742, 15, 0, 1310743, 20, 0, 1310744, 20, 0, 1310745, 17, 0, 1310746, 14, 0, 1310747, 19, 0, 1310748, 13, 0, 1310749, 11, 0, 1310750, 17, 0, 1310751, 13, 0, 1310752, 17, 0, 1310753, 13, 0, 1310754, 14, 0, 1310755, 13, 0, 1310756, 18, 0, 1376256, 14, 0, 1376257, 18, 0, 1376258, 20, 0, 1376259, 13, 0, 1376260, 19, 0, 1376261, 13, 0, 1376262, 17, 0, 1376263, 16, 0, 1376264, 20, 0, 1376265, 13, 0, 1376266, 15, 0, 1376267, 9, 0, 1376268, 15, 0, 1376269, 15, 0, 1376270, 13, 0, 1376271, 16, 0, 1376272, 20, 0, 1376273, 16, 0, 1376274, 9, 0, 1376275, 12, 0, 1376276, 9, 0, 1376277, 13, 0, 1376278, 18, 0, 1376279, 10, 0, 1376280, 19, 0, 1376281, 16, 0, 1376282, 16, 0, 1376283, 20, 0, 1376284, 10, 0, 1376285, 20, 0, 1376286, 15, 0, 1376287, 10, 0, 1376288, 14, 0, 1376289, 16, 0, 1376290, 20, 0, 1376291, 14, 0, 1376292, 10, 0, 1441792, 14, 0, 1441793, 14, 0, 1441794, 20, 0, 1441795, 10, 0, 1441796, 17, 0, 1441797, 16, 0, 1441798, 12, 0, 1441799, 9, 0, 1441800, 15, 0, 1441801, 18, 0, 1441802, 15, 0, 1441803, 17, 0, 1441804, 19, 0, 1441805, 19, 0, 1441806, 13, 0, 1441807, 16, 0, 1441808, 10, 0, 1441809, 12, 0, 1441810, 13, 0, 1441811, 16, 0, 1441812, 16, 0, 1441813, 13, 0, 1441814, 15, 0, 1441815, 16, 0, 1441816, 19, 0, 1441817, 16, 0, 1441818, 11, 0, 1441819, 19, 0, 1441820, 15, 0, 1441821, 13, 0, 1441822, 19, 0, 1441823, 19, 0, 1441824, 18, 0, 1441825, 9, 0, 1441826, 10, 0, 1441827, 12, 0, 1441828, 13, 0, 1507328, 19, 0, 1507329, 20, 0, 1507330, 10, 0, 1507331, 12, 0, 1507332, 12, 0, 1507333, 19, 0, 1507334, 14, 0, 1507335, 18, 0, 1507336, 11, 0, 1507337, 12, 0, 1507338, 17, 0, 1507339, 14, 0, 1507340, 20, 0, 1507341, 14, 0, 1507342, 15, 0, 1507343, 17, 0, 1507344, 20, 0, 1507345, 11, 0, 1507346, 19, 0, 1507347, 10, 0, 1507348, 12, 0, 1507349, 12, 0, 1507350, 9, 0, 1507351, 19, 0, 1507352, 11, 0, 1507353, 19, 0, 1507354, 18, 0, 1507355, 13, 0, 1507356, 16, 0, 1507357, 17, 0, 1507358, 20, 0, 1507359, 12, 0, 1507360, 10, 0, 1507361, 14, 0, 1507362, 12, 0, 1507363, 14, 0, 1507364, 18, 0, 1572864, 20, 0, 1572865, 17, 0, 1572866, 13, 0, 1572867, 16, 0, 1572868, 17, 0, 1572869, 16, 0, 1572870, 9, 0, 1572871, 20, 0, 1572872, 10, 0, 1572873, 17, 0, 1572874, 15, 0, 1572875, 18, 0, 1572876, 15, 0, 1572877, 14, 0, 1572878, 11, 0, 1572879, 17, 0, 1572880, 13, 0, 1572881, 11, 0, 1572882, 15, 0, 1572883, 14, 0, 1572884, 12, 0, 1572885, 10, 0, 1572886, 19, 0, 1572887, 15, 0, 1572888, 14, 0, 1572889, 19, 0, 1572890, 9, 0, 1572891, 13, 0, 1572892, 15, 0, 1572893, 20, 0, 1572894, 19, 0, 1572895, 14, 0, 1572896, 10, 0, 1572897, 17, 0, 1572898, 16, 0, 1572899, 20, 0, 1572900, 16, 0, 1638400, 18, 0, 1638401, 13, 0, 1638402, 11, 0, 1638403, 10, 0, 1638404, 20, 0, 1638405, 11, 0, 1638406, 9, 0, 1638407, 18, 0, 1638408, 17, 0, 1638409, 16, 0, 1638410, 16, 0, 1638411, 18, 0, 1638412, 14, 0, 1638413, 19, 0, 1638414, 11, 0, 1638415, 18, 0, 1638416, 14, 0, 1638417, 15, 0, 1638418, 20, 0, 1638419, 12, 0, 1638420, 15, 0, 1638421, 20, 0, 1638422, 11, 0, 1638423, 12, 0, 1638424, 18, 0, 1638425, 16, 0, 1638426, 17, 0, 1638427, 16, 0, 1638428, 20, 0, 1638429, 17, 0, 1638430, 16, 0, 1638431, 19, 0, 1638432, 19, 0, 1638433, 18, 0, 1638434, 14, 0, 1638435, 20, 0, 1638436, 19, 0 ) + +[node name="Trees" type="TileMap" parent="."] +tile_set = ExtResource( 2 ) +format = 1 +tile_data = PoolIntArray( 65570, 6, 0, 196619, 3, 0, 327708, 1, 0, 393237, 1, 0, 524322, 3, 0, 589844, 8, 0, 655365, 2, 0, 720909, 2, 0, 720913, 7, 0, 851987, 4, 0, 851991, 0, 0, 917506, 7, 0, 917507, 1, 0, 917530, 7, 0, 983062, 0, 0, 1114114, 4, 0, 1114120, 5, 0, 1114143, 7, 0, 1245199, 0, 0, 1245203, 3, 0, 1441793, 5, 0, 1441818, 0, 0, 1507329, 0, 0 ) + +[node name="Monster_1" type="Node2D" parent="."] + +[node name="Player" parent="." instance=ExtResource( 1 )] +position = Vector2( 576, 320 ) diff --git a/tscn/monster/MonsterV.gd b/tscn/monster/MonsterV.gd new file mode 100644 index 0000000..8bbbf8f --- /dev/null +++ b/tscn/monster/MonsterV.gd @@ -0,0 +1,19 @@ +extends Node2D + + +onready var icon = $Icon +onready var shadow = $Shadow +onready var hpbar = $Hpbar + +var monster:Monster + + +func _init(m): + monster = m + +func update_hp_bar(): + if monster.hp/monster.max_hp == 0.9 : + hpbar.frame = 1 + +func get_damage_state(): + var diff = 1 diff --git a/tscn/monster/MonsterV.tscn b/tscn/monster/MonsterV.tscn new file mode 100644 index 0000000..1d29a3c --- /dev/null +++ b/tscn/monster/MonsterV.tscn @@ -0,0 +1,31 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://tscn/monster/MonsterV.gd" type="Script" id=1] +[ext_resource path="res://res/texture/msic/mdam-sheet.png" type="Texture" id=2] +[ext_resource path="res://res/texture/player/base/shadow.png" type="Texture" id=3] +[ext_resource path="res://addons/anima/core/player.gd" type="Script" id=4] + +[node name="MonsterV" type="Node2D"] +script = ExtResource( 1 ) + +[node name="Icon" type="Sprite" parent="."] +centered = false + +[node name="Shadow" type="Sprite" parent="."] +texture = ExtResource( 3 ) +centered = false + +[node name="Hpbar" type="Sprite" parent="."] +texture = ExtResource( 2 ) +centered = false +hframes = 7 +frame = 6 + +[node name="Tip" type="RichTextLabel" parent="."] +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="AnimaPlayer" type="Node" parent="."] +script = ExtResource( 4 ) + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] diff --git a/tscn/weapon/WeaponTexture.tscn b/tscn/weapon/WeaponTexture.tscn new file mode 100644 index 0000000..590f728 --- /dev/null +++ b/tscn/weapon/WeaponTexture.tscn @@ -0,0 +1,1330 @@ +[gd_scene load_steps=222 format=2] + +[ext_resource path="res://res/texture/player/hand_right/long_sword_slant_old.png" type="Texture" id=1] +[ext_resource path="res://res/texture/player/hand_right/mace_2_new.png" type="Texture" id=2] +[ext_resource path="res://res/texture/player/hand_right/mace_2_old.png" type="Texture" id=3] +[ext_resource path="res://res/texture/player/hand_right/axe_blood.png" type="Texture" id=4] +[ext_resource path="res://res/texture/player/hand_right/sabre.png" type="Texture" id=5] +[ext_resource path="res://res/texture/player/hand_right/rod_hammer_new.png" type="Texture" id=6] +[ext_resource path="res://res/texture/player/hand_right/quarterstaff.png" type="Texture" id=7] +[ext_resource path="res://res/texture/player/hand_right/mace_old.png" type="Texture" id=8] +[ext_resource path="res://res/texture/player/hand_right/mace_ruby_new.png" type="Texture" id=9] +[ext_resource path="res://res/texture/player/hand_right/morningstar_2_old.png" type="Texture" id=10] +[ext_resource path="res://res/texture/player/hand_right/morningstar_new.png" type="Texture" id=11] +[ext_resource path="res://res/texture/player/hand_right/pike.png" type="Texture" id=12] +[ext_resource path="res://res/texture/player/hand_right/quarterstaff_2_new.png" type="Texture" id=13] +[ext_resource path="res://res/texture/player/hand_right/mace_3.png" type="Texture" id=14] +[ext_resource path="res://res/texture/player/hand_right/pick_axe.png" type="Texture" id=15] +[ext_resource path="res://res/texture/player/hand_right/quarterstaff_4.png" type="Texture" id=16] +[ext_resource path="res://res/texture/player/hand_right/morningstar_2_new.png" type="Texture" id=17] +[ext_resource path="res://res/texture/player/hand_right/rod_aries_new.png" type="Texture" id=18] +[ext_resource path="res://res/texture/player/hand_right/rod_blue_new.png" type="Texture" id=19] +[ext_resource path="res://res/texture/player/hand_right/rod_brown_old.png" type="Texture" id=20] +[ext_resource path="res://res/texture/player/hand_right/rod_forked_old.png" type="Texture" id=21] +[ext_resource path="res://res/texture/player/hand_right/rod_magenta_new.png" type="Texture" id=22] +[ext_resource path="res://res/texture/player/hand_right/rod_moon_new.png" type="Texture" id=23] +[ext_resource path="res://res/texture/player/hand_right/mace_ruby_old.png" type="Texture" id=24] +[ext_resource path="res://res/texture/player/hand_right/quarterstaff_2_old.png" type="Texture" id=25] +[ext_resource path="res://res/texture/player/hand_right/rod_ruby_new.png" type="Texture" id=26] +[ext_resource path="res://res/texture/player/hand_right/rod_ruby_old.png" type="Texture" id=27] +[ext_resource path="res://res/texture/player/hand_right/rod_aries_old.png" type="Texture" id=28] +[ext_resource path="res://res/texture/player/hand_right/nunchaku.png" type="Texture" id=29] +[ext_resource path="res://res/texture/player/hand_right/rod_brown_new.png" type="Texture" id=30] +[ext_resource path="res://res/texture/player/hand_right/rod_emerald_old.png" type="Texture" id=31] +[ext_resource path="res://res/texture/player/hand_right/rod_thick_old.png" type="Texture" id=32] +[ext_resource path="res://res/texture/player/hand_right/rapier.png" type="Texture" id=33] +[ext_resource path="res://res/texture/player/hand_right/quarterstaff_1.png" type="Texture" id=34] +[ext_resource path="res://res/texture/player/hand_right/quarterstaff_jester.png" type="Texture" id=35] +[ext_resource path="res://res/texture/player/hand_right/pole_forked.png" type="Texture" id=36] +[ext_resource path="res://res/texture/player/hand_right/rapier_2.png" type="Texture" id=37] +[ext_resource path="res://res/texture/player/hand_right/rod_blue_old.png" type="Texture" id=38] +[ext_resource path="res://res/texture/player/hand_right/mace_new.png" type="Texture" id=39] +[ext_resource path="res://res/texture/player/hand_right/morningstar_old.png" type="Texture" id=40] +[ext_resource path="res://res/texture/player/hand_right/rod_forked_new.png" type="Texture" id=41] +[ext_resource path="res://res/texture/player/hand_right/rod_hammer_old.png" type="Texture" id=42] +[ext_resource path="res://res/texture/player/hand_right/rod_moon_old.png" type="Texture" id=43] +[ext_resource path="res://res/texture/player/hand_right/rod_thick_new.png" type="Texture" id=44] +[ext_resource path="res://res/texture/player/hand_right/rod_magenta_old.png" type="Texture" id=45] +[ext_resource path="res://res/texture/player/hand_right/quarterstaff_3.png" type="Texture" id=46] +[ext_resource path="res://res/texture/player/hand_right/rod_emerald_new.png" type="Texture" id=47] +[ext_resource path="res://res/texture/player/hand_right/scythe_2.png" type="Texture" id=48] +[ext_resource path="res://res/texture/player/hand_right/scimitar_old.png" type="Texture" id=49] +[ext_resource path="res://res/texture/player/hand_right/scythe_old.png" type="Texture" id=50] +[ext_resource path="res://res/texture/player/hand_right/short_sword.png" type="Texture" id=51] +[ext_resource path="res://res/texture/player/hand_right/scepter.png" type="Texture" id=52] +[ext_resource path="res://res/texture/player/hand_right/scythe_new.png" type="Texture" id=53] +[ext_resource path="res://res/texture/player/hand_right/short_sword_2.png" type="Texture" id=54] +[ext_resource path="res://res/texture/player/hand_right/short_sword_slant_2.png" type="Texture" id=55] +[ext_resource path="res://res/texture/player/hand_right/short_sword_slant_3.png" type="Texture" id=56] +[ext_resource path="res://res/texture/player/hand_right/scythe_slant.png" type="Texture" id=57] +[ext_resource path="res://res/texture/player/hand_right/short_sword_slant_new.png" type="Texture" id=58] +[ext_resource path="res://res/texture/player/hand_right/saruman.png" type="Texture" id=59] +[ext_resource path="res://res/texture/player/hand_right/scimitar_new.png" type="Texture" id=60] +[ext_resource path="res://res/texture/player/hand_right/spear_3.png" type="Texture" id=61] +[ext_resource path="res://res/texture/player/hand_right/staff_organic.png" type="Texture" id=62] +[ext_resource path="res://res/texture/player/hand_right/war_axe_old.png" type="Texture" id=63] +[ext_resource path="res://res/texture/player/hand_right/spear_2_old.png" type="Texture" id=64] +[ext_resource path="res://res/texture/player/hand_right/spear_1.png" type="Texture" id=65] +[ext_resource path="res://res/texture/player/hand_right/staff_large.png" type="Texture" id=66] +[ext_resource path="res://res/texture/player/hand_right/staff_scepter.png" type="Texture" id=67] +[ext_resource path="res://res/texture/player/hand_right/trident_two.png" type="Texture" id=68] +[ext_resource path="res://res/texture/player/hand_right/triple_sword_new.png" type="Texture" id=69] +[ext_resource path="res://res/texture/player/hand_right/whip_new.png" type="Texture" id=70] +[ext_resource path="res://res/texture/player/hand_right/whip_old.png" type="Texture" id=71] +[ext_resource path="res://res/texture/player/hand_right/spear_5.png" type="Texture" id=72] +[ext_resource path="res://res/texture/player/hand_right/sickle.png" type="Texture" id=73] +[ext_resource path="res://res/texture/player/hand_right/spear_2_new.png" type="Texture" id=74] +[ext_resource path="res://res/texture/player/hand_right/sword_twist.png" type="Texture" id=75] +[ext_resource path="res://res/texture/player/hand_right/triple_sword_old.png" type="Texture" id=76] +[ext_resource path="res://res/texture/player/hand_right/triple_sword_2.png" type="Texture" id=77] +[ext_resource path="res://res/texture/player/hand_right/whip_2.png" type="Texture" id=78] +[ext_resource path="res://res/texture/player/hand_right/staff_ruby.png" type="Texture" id=79] +[ext_resource path="res://res/texture/player/hand_right/staff_skull.png" type="Texture" id=80] +[ext_resource path="res://res/texture/player/hand_right/sword_black.png" type="Texture" id=81] +[ext_resource path="res://res/texture/player/hand_right/staff_fancy.png" type="Texture" id=82] +[ext_resource path="res://res/texture/player/hand_right/sword_2.png" type="Texture" id=83] +[ext_resource path="res://res/texture/player/hand_right/staff_plain.png" type="Texture" id=84] +[ext_resource path="res://res/texture/player/hand_right/sword_jag.png" type="Texture" id=85] +[ext_resource path="res://res/texture/player/hand_right/sword_thief.png" type="Texture" id=86] +[ext_resource path="res://res/texture/player/hand_right/sword_3.png" type="Texture" id=87] +[ext_resource path="res://res/texture/player/hand_right/trident.png" type="Texture" id=88] +[ext_resource path="res://res/texture/player/hand_right/trident_elec.png" type="Texture" id=89] +[ext_resource path="res://res/texture/player/hand_right/staff_evil.png" type="Texture" id=90] +[ext_resource path="res://res/texture/player/hand_right/sword_tri.png" type="Texture" id=91] +[ext_resource path="res://res/texture/player/hand_right/trident_two_2.png" type="Texture" id=92] +[ext_resource path="res://res/texture/player/hand_right/sword_seven.png" type="Texture" id=93] +[ext_resource path="res://res/texture/player/hand_right/trishula.png" type="Texture" id=94] +[ext_resource path="res://res/texture/player/hand_right/staff_ring_blue.png" type="Texture" id=95] +[ext_resource path="res://res/texture/player/hand_right/staff_mage_2.png" type="Texture" id=96] +[ext_resource path="res://res/texture/player/hand_right/stick.png" type="Texture" id=97] +[ext_resource path="res://res/texture/player/hand_right/trident_demon.png" type="Texture" id=98] +[ext_resource path="res://res/texture/player/hand_right/sling.png" type="Texture" id=99] +[ext_resource path="res://res/texture/player/hand_right/spear_4.png" type="Texture" id=100] +[ext_resource path="res://res/texture/player/hand_right/staff_mummy.png" type="Texture" id=101] +[ext_resource path="res://res/texture/player/hand_right/sword_breaker.png" type="Texture" id=102] +[ext_resource path="res://res/texture/player/hand_right/staff_mage.png" type="Texture" id=103] +[ext_resource path="res://res/texture/player/hand_right/trident_2.png" type="Texture" id=104] +[ext_resource path="res://res/texture/player/hand_right/short_sword_slant_old.png" type="Texture" id=105] +[ext_resource path="res://res/texture/player/hand_right/war_axe_new.png" type="Texture" id=106] +[ext_resource path="res://res/texture/player/hand_right/trident_3.png" type="Texture" id=107] +[ext_resource path="res://res/texture/player/hand_right/spear.png" type="Texture" id=108] +[ext_resource path="res://res/texture/player/hand_right/staff_fork.png" type="Texture" id=109] +[ext_resource path="res://res/texture/player/hand_right/great_mace.png" type="Texture" id=110] +[ext_resource path="res://res/texture/player/hand_right/great_sword_slant_2.png" type="Texture" id=111] +[ext_resource path="res://res/texture/player/hand_right/holy_scourge_1.png" type="Texture" id=112] +[ext_resource path="res://res/texture/player/hand_right/knife.png" type="Texture" id=113] +[ext_resource path="res://res/texture/player/hand_right/flail_spike_2.png" type="Texture" id=114] +[ext_resource path="res://res/texture/player/hand_right/flail_ball_old.png" type="Texture" id=115] +[ext_resource path="res://res/texture/player/hand_right/flail_spike.png" type="Texture" id=116] +[ext_resource path="res://res/texture/player/hand_right/gimli.png" type="Texture" id=117] +[ext_resource path="res://res/texture/player/hand_right/flail_ball_4.png" type="Texture" id=118] +[ext_resource path="res://res/texture/player/hand_right/great_sword.png" type="Texture" id=119] +[ext_resource path="res://res/texture/player/hand_right/greatsling.png" type="Texture" id=120] +[ext_resource path="res://res/texture/player/hand_right/hand_axe_new.png" type="Texture" id=121] +[ext_resource path="res://res/texture/player/hand_right/holy_scourge_2.png" type="Texture" id=122] +[ext_resource path="res://res/texture/player/hand_right/lance.png" type="Texture" id=123] +[ext_resource path="res://res/texture/player/hand_right/hammer_old.png" type="Texture" id=124] +[ext_resource path="res://res/texture/player/hand_right/katana.png" type="Texture" id=125] +[ext_resource path="res://res/texture/player/hand_right/flail_ball_2_new.png" type="Texture" id=126] +[ext_resource path="res://res/texture/player/hand_right/glaive_old.png" type="Texture" id=127] +[ext_resource path="res://res/texture/player/hand_right/hook.png" type="Texture" id=128] +[ext_resource path="res://res/texture/player/hand_right/falchion_old.png" type="Texture" id=129] +[ext_resource path="res://res/texture/player/hand_right/giant_club_spike_slant.png" type="Texture" id=130] +[ext_resource path="res://res/texture/player/hand_right/gandalf.png" type="Texture" id=131] +[ext_resource path="res://res/texture/player/hand_right/flail_stick.png" type="Texture" id=132] +[ext_resource path="res://res/texture/player/hand_right/glaive_three_2.png" type="Texture" id=133] +[ext_resource path="res://res/texture/player/hand_right/hammer_3.png" type="Texture" id=134] +[ext_resource path="res://res/texture/player/hand_right/great_axe.png" type="Texture" id=135] +[ext_resource path="res://res/texture/player/hand_right/halberd_new.png" type="Texture" id=136] +[ext_resource path="res://res/texture/player/hand_right/hand_crossbow.png" type="Texture" id=137] +[ext_resource path="res://res/texture/player/hand_right/hammer_2_new.png" type="Texture" id=138] +[ext_resource path="res://res/texture/player/hand_right/lance_2.png" type="Texture" id=139] +[ext_resource path="res://res/texture/player/hand_right/flail_ball_2_old.png" type="Texture" id=140] +[ext_resource path="res://res/texture/player/hand_right/halberd_old.png" type="Texture" id=141] +[ext_resource path="res://res/texture/player/hand_right/frodo.png" type="Texture" id=142] +[ext_resource path="res://res/texture/player/hand_right/legolas.png" type="Texture" id=143] +[ext_resource path="res://res/texture/player/hand_right/long_sword.png" type="Texture" id=144] +[ext_resource path="res://res/texture/player/hand_right/hammer_2_old.png" type="Texture" id=145] +[ext_resource path="res://res/texture/player/hand_right/long_sword_slant_2.png" type="Texture" id=146] +[ext_resource path="res://res/texture/player/hand_right/large_mace.png" type="Texture" id=147] +[ext_resource path="res://res/texture/player/hand_right/giant_club_spike.png" type="Texture" id=148] +[ext_resource path="res://res/texture/player/hand_right/long_sword_slant_new.png" type="Texture" id=149] +[ext_resource path="res://res/texture/player/hand_right/flail_ball_new.png" type="Texture" id=150] +[ext_resource path="res://res/texture/player/hand_right/flail_ball_3.png" type="Texture" id=151] +[ext_resource path="res://res/texture/player/hand_right/great_bow.png" type="Texture" id=152] +[ext_resource path="res://res/texture/player/hand_right/glaive_three.png" type="Texture" id=153] +[ext_resource path="res://res/texture/player/hand_right/giant_club.png" type="Texture" id=154] +[ext_resource path="res://res/texture/player/hand_right/giant_club_plain.png" type="Texture" id=155] +[ext_resource path="res://res/texture/player/hand_right/glaive_3.png" type="Texture" id=156] +[ext_resource path="res://res/texture/player/hand_right/great_mace_2.png" type="Texture" id=157] +[ext_resource path="res://res/texture/player/hand_right/great_sword_slant_new.png" type="Texture" id=158] +[ext_resource path="res://res/texture/player/hand_right/flail_great.png" type="Texture" id=159] +[ext_resource path="res://res/texture/player/hand_right/glaive_new.png" type="Texture" id=160] +[ext_resource path="res://res/texture/player/hand_right/great_sword_slant_old.png" type="Texture" id=161] +[ext_resource path="res://res/texture/player/hand_right/hammer_new.png" type="Texture" id=162] +[ext_resource path="res://res/texture/player/hand_right/flail_stick_slant.png" type="Texture" id=163] +[ext_resource path="res://res/texture/player/hand_right/flail_great_2.png" type="Texture" id=164] +[ext_resource path="res://res/texture/player/hand_right/hand_axe_old.png" type="Texture" id=165] +[ext_resource path="res://res/texture/player/hand_right/heavy_sword.png" type="Texture" id=166] +[ext_resource path="res://res/texture/player/hand_right/fork_2.png" type="Texture" id=167] +[ext_resource path="res://res/texture/player/hand_right/giant_club_slant.png" type="Texture" id=168] +[ext_resource path="res://res/texture/player/hand_right/great_staff.png" type="Texture" id=169] +[ext_resource path="res://res/texture/player/hand_right/hand_axe_2.png" type="Texture" id=170] +[ext_resource path="res://res/texture/player/hand_right/katana_slant.png" type="Texture" id=171] +[ext_resource path="res://res/texture/player/hand_right/glaive_2.png" type="Texture" id=172] +[ext_resource path="res://res/texture/player/hand_right/flail_balls.png" type="Texture" id=173] +[ext_resource path="res://res/texture/player/hand_right/arwen.png" type="Texture" id=174] +[ext_resource path="res://res/texture/player/hand_right/battleaxe.png" type="Texture" id=175] +[ext_resource path="res://res/texture/player/hand_right/black_whip_old.png" type="Texture" id=176] +[ext_resource path="res://res/texture/player/hand_right/blessed_blade.png" type="Texture" id=177] +[ext_resource path="res://res/texture/player/hand_right/bow.png" type="Texture" id=178] +[ext_resource path="res://res/texture/player/hand_right/bow_2.png" type="Texture" id=179] +[ext_resource path="res://res/texture/player/hand_right/black_sword.png" type="Texture" id=180] +[ext_resource path="res://res/texture/player/hand_right/black_whip_new.png" type="Texture" id=181] +[ext_resource path="res://res/texture/player/hand_right/broadsword.png" type="Texture" id=182] +[ext_resource path="res://res/texture/player/hand_right/bow_blue.png" type="Texture" id=183] +[ext_resource path="res://res/texture/player/hand_right/aragorn.png" type="Texture" id=184] +[ext_resource path="res://res/texture/player/hand_right/club.png" type="Texture" id=185] +[ext_resource path="res://res/texture/player/hand_right/boromir.png" type="Texture" id=186] +[ext_resource path="res://res/texture/player/hand_right/club_2.png" type="Texture" id=187] +[ext_resource path="res://res/texture/player/hand_right/club_slant.png" type="Texture" id=188] +[ext_resource path="res://res/texture/player/hand_right/crossbow_2.png" type="Texture" id=189] +[ext_resource path="res://res/texture/player/hand_right/crossbow_3.png" type="Texture" id=190] +[ext_resource path="res://res/texture/player/hand_right/axe_executioner_new.png" type="Texture" id=191] +[ext_resource path="res://res/texture/player/hand_right/crossbow_4.png" type="Texture" id=192] +[ext_resource path="res://res/texture/player/hand_right/axe_small.png" type="Texture" id=193] +[ext_resource path="res://res/texture/player/hand_right/dagger_old.png" type="Texture" id=194] +[ext_resource path="res://res/texture/player/hand_right/battleaxe_2.png" type="Texture" id=195] +[ext_resource path="res://res/texture/player/hand_right/bow_3.png" type="Texture" id=196] +[ext_resource path="res://res/texture/player/hand_right/axe_executioner_2.png" type="Texture" id=197] +[ext_resource path="res://res/texture/player/hand_right/blowgun.png" type="Texture" id=198] +[ext_resource path="res://res/texture/player/hand_right/broad_axe.png" type="Texture" id=199] +[ext_resource path="res://res/texture/player/hand_right/dagger_new.png" type="Texture" id=200] +[ext_resource path="res://res/texture/player/hand_right/axe.png" type="Texture" id=201] +[ext_resource path="res://res/texture/player/hand_right/dagger_slant_2.png" type="Texture" id=202] +[ext_resource path="res://res/texture/player/hand_right/dagger_slant_new.png" type="Texture" id=203] +[ext_resource path="res://res/texture/player/hand_right/axe_executioner_old.png" type="Texture" id=204] +[ext_resource path="res://res/texture/player/hand_right/axe_short.png" type="Texture" id=205] +[ext_resource path="res://res/texture/player/hand_right/club_3.png" type="Texture" id=206] +[ext_resource path="res://res/texture/player/hand_right/axe_double.png" type="Texture" id=207] +[ext_resource path="res://res/texture/player/hand_right/crossbow.png" type="Texture" id=208] +[ext_resource path="res://res/texture/player/hand_right/d_glaive.png" type="Texture" id=209] +[ext_resource path="res://res/texture/player/hand_right/enchantress_dagger.png" type="Texture" id=210] +[ext_resource path="res://res/texture/player/hand_right/dagger_slant_old.png" type="Texture" id=211] +[ext_resource path="res://res/texture/player/hand_right/dart.png" type="Texture" id=212] +[ext_resource path="res://res/texture/player/hand_right/double_sword_2.png" type="Texture" id=213] +[ext_resource path="res://res/texture/player/hand_right/eveningstar_old.png" type="Texture" id=214] +[ext_resource path="res://res/texture/player/hand_right/double_sword_new.png" type="Texture" id=215] +[ext_resource path="res://res/texture/player/hand_right/double_sword_old.png" type="Texture" id=216] +[ext_resource path="res://res/texture/player/hand_right/eveningstar_new.png" type="Texture" id=217] +[ext_resource path="res://res/texture/player/hand_right/falchion_2.png" type="Texture" id=218] +[ext_resource path="res://res/texture/player/hand_right/falchion_new.png" type="Texture" id=219] +[ext_resource path="res://res/texture/player/hand_right/eveningstar_2.png" type="Texture" id=220] +[ext_resource path="res://res/texture/player/hand_right/double_sword_3.png" type="Texture" id=221] + +[node name="WeaponTexture" type="Node2D"] + +[node name="Aragorn" type="Sprite" parent="."] +position = Vector2( 66, 0 ) +texture = ExtResource( 184 ) +centered = false + +[node name="Arwen" type="Sprite" parent="."] +position = Vector2( 104, 1 ) +texture = ExtResource( 174 ) +centered = false + +[node name="Axe" type="Sprite" parent="."] +position = Vector2( 155, 1 ) +texture = ExtResource( 201 ) +centered = false + +[node name="AxeBlood" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 4 ) +centered = false + +[node name="AxeDouble" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 207 ) +centered = false + +[node name="AxeExecutioner2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 197 ) +centered = false + +[node name="AxeExecutionerNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 191 ) +centered = false + +[node name="AxeExecutionerOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 204 ) +centered = false + +[node name="AxeShort" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 205 ) +centered = false + +[node name="AxeSmall" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 193 ) +centered = false + +[node name="Battleaxe" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 175 ) +centered = false + +[node name="Battleaxe2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 195 ) +centered = false + +[node name="BlackSword" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 180 ) +centered = false + +[node name="BlackWhipNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 181 ) +centered = false + +[node name="BlackWhipOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 176 ) +centered = false + +[node name="BlessedBlade" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 177 ) +centered = false + +[node name="Blowgun" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 198 ) +centered = false + +[node name="Boromir" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 186 ) +centered = false + +[node name="Bow" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 178 ) +centered = false + +[node name="Bow2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 179 ) +centered = false + +[node name="Bow3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 196 ) +centered = false + +[node name="BowBlue" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 183 ) +centered = false + +[node name="Broadsword" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 182 ) +centered = false + +[node name="BroadAxe" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 199 ) +centered = false + +[node name="Club" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 185 ) +centered = false + +[node name="Club2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 187 ) +centered = false + +[node name="Club3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 206 ) +centered = false + +[node name="ClubSlant" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 188 ) +centered = false + +[node name="Crossbow" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 208 ) +centered = false + +[node name="Crossbow2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 189 ) +centered = false + +[node name="Crossbow3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 190 ) +centered = false + +[node name="Crossbow4" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 192 ) +centered = false + +[node name="DaggerNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 200 ) +centered = false + +[node name="DaggerOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 194 ) +centered = false + +[node name="DaggerSlant2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 202 ) +centered = false + +[node name="DaggerSlantNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 203 ) +centered = false + +[node name="DaggerSlantOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 211 ) +centered = false + +[node name="Dart" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 212 ) +centered = false + +[node name="DoubleSword2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 213 ) +centered = false + +[node name="DoubleSword3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 221 ) +centered = false + +[node name="DoubleSwordNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 215 ) +centered = false + +[node name="DoubleSwordOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 216 ) +centered = false + +[node name="DGlaive" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 209 ) +centered = false + +[node name="EnchantressDagger" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 210 ) +centered = false + +[node name="Eveningstar2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 220 ) +centered = false + +[node name="EveningstarNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 217 ) +centered = false + +[node name="EveningstarOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 214 ) +centered = false + +[node name="Falchion2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 218 ) +centered = false + +[node name="FalchionNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 219 ) +centered = false + +[node name="FalchionOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 129 ) +centered = false + +[node name="FlailBalls" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 173 ) +centered = false + +[node name="FlailBall2New" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 126 ) +centered = false + +[node name="FlailBall2Old" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 140 ) +centered = false + +[node name="FlailBall3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 151 ) +centered = false + +[node name="FlailBall4" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 118 ) +centered = false + +[node name="FlailBallNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 150 ) +centered = false + +[node name="FlailBallOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 115 ) +centered = false + +[node name="FlailGreat" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 159 ) +centered = false + +[node name="FlailGreat2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 164 ) +centered = false + +[node name="FlailSpike" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 116 ) +centered = false + +[node name="FlailSpike2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 114 ) +centered = false + +[node name="FlailStick" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 132 ) +centered = false + +[node name="FlailStickSlant" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 163 ) +centered = false + +[node name="Fork2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 167 ) +centered = false + +[node name="Frodo" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 142 ) +centered = false + +[node name="Gandalf" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 131 ) +centered = false + +[node name="GiantClub" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 154 ) +centered = false + +[node name="GiantClubPlain" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 155 ) +centered = false + +[node name="GiantClubSlant" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 168 ) +centered = false + +[node name="GiantClubSpike" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 148 ) +centered = false + +[node name="GiantClubSpikeSlant" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 130 ) +centered = false + +[node name="Gimli" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 117 ) +centered = false + +[node name="Glaive2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 172 ) +centered = false + +[node name="Glaive3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 156 ) +centered = false + +[node name="GlaiveNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 160 ) +centered = false + +[node name="GlaiveOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 127 ) +centered = false + +[node name="GlaiveThree" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 153 ) +centered = false + +[node name="GlaiveThree2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 133 ) +centered = false + +[node name="Greatsling" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 120 ) +centered = false + +[node name="GreatAxe" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 135 ) +centered = false + +[node name="GreatBow" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 152 ) +centered = false + +[node name="GreatMace" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 110 ) +centered = false + +[node name="GreatMace2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 157 ) +centered = false + +[node name="GreatStaff" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 169 ) +centered = false + +[node name="GreatSword" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 119 ) +centered = false + +[node name="GreatSwordSlant2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 111 ) +centered = false + +[node name="GreatSwordSlantNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 158 ) +centered = false + +[node name="GreatSwordSlantOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 161 ) +centered = false + +[node name="HalberdNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 136 ) +centered = false + +[node name="HalberdOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 141 ) +centered = false + +[node name="Hammer2New" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 138 ) +centered = false + +[node name="Hammer2Old" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 145 ) +centered = false + +[node name="Hammer3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 134 ) +centered = false + +[node name="HammerNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 162 ) +centered = false + +[node name="HammerOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 124 ) +centered = false + +[node name="HandAxe2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 170 ) +centered = false + +[node name="HandAxeNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 121 ) +centered = false + +[node name="HandAxeOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 165 ) +centered = false + +[node name="HandCrossbow" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 137 ) +centered = false + +[node name="HeavySword" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 166 ) +centered = false + +[node name="HolyScourge1" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 112 ) +centered = false + +[node name="HolyScourge2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 122 ) +centered = false + +[node name="Hook" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 128 ) +centered = false + +[node name="Katana" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 125 ) +centered = false + +[node name="KatanaSlant" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 171 ) +centered = false + +[node name="Knife" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 113 ) +centered = false + +[node name="Lance" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 123 ) +centered = false + +[node name="Lance2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 139 ) +centered = false + +[node name="LargeMace" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 147 ) +centered = false + +[node name="Legolas" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 143 ) +centered = false + +[node name="LongSword" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 144 ) +centered = false + +[node name="LongSwordSlant2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 146 ) +centered = false + +[node name="LongSwordSlantNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 149 ) +centered = false + +[node name="LongSwordSlantOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 1 ) +centered = false + +[node name="Mace2New" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 2 ) +centered = false + +[node name="Mace2Old" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 3 ) +centered = false + +[node name="Mace3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 14 ) +centered = false + +[node name="MaceNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 39 ) +centered = false + +[node name="MaceOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 8 ) +centered = false + +[node name="MaceRubyNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 9 ) +centered = false + +[node name="MaceRubyOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 24 ) +centered = false + +[node name="Morningstar2New" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 17 ) +centered = false + +[node name="Morningstar2Old" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 10 ) +centered = false + +[node name="MorningstarNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 11 ) +centered = false + +[node name="MorningstarOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 40 ) +centered = false + +[node name="Nunchaku" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 29 ) +centered = false + +[node name="PickAxe" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 15 ) +centered = false + +[node name="Pike" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 12 ) +centered = false + +[node name="PoleForked" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 36 ) +centered = false + +[node name="Quarterstaff" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 7 ) +centered = false + +[node name="Quarterstaff1" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 34 ) +centered = false + +[node name="Quarterstaff2New" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 13 ) +centered = false + +[node name="Quarterstaff2Old" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 25 ) +centered = false + +[node name="Quarterstaff3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 46 ) +centered = false + +[node name="Quarterstaff4" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 16 ) +centered = false + +[node name="QuarterstaffJester" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 35 ) +centered = false + +[node name="Rapier" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 33 ) +centered = false + +[node name="Rapier2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 37 ) +centered = false + +[node name="RodAriesNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 18 ) +centered = false + +[node name="RodAriesOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 28 ) +centered = false + +[node name="RodBlueNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 19 ) +centered = false + +[node name="RodBlueOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 38 ) +centered = false + +[node name="RodBrownNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 30 ) +centered = false + +[node name="RodBrownOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 20 ) +centered = false + +[node name="RodEmeraldNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 47 ) +centered = false + +[node name="RodEmeraldOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 31 ) +centered = false + +[node name="RodForkedNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 41 ) +centered = false + +[node name="RodForkedOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 21 ) +centered = false + +[node name="RodHammerNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 6 ) +centered = false + +[node name="RodHammerOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 42 ) +centered = false + +[node name="RodMagentaNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 22 ) +centered = false + +[node name="RodMagentaOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 45 ) +centered = false + +[node name="RodMoonNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 23 ) +centered = false + +[node name="RodMoonOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 43 ) +centered = false + +[node name="RodRubyNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 26 ) +centered = false + +[node name="RodRubyOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 27 ) +centered = false + +[node name="RodThickNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 44 ) +centered = false + +[node name="RodThickOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 32 ) +centered = false + +[node name="Sabre" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 5 ) +centered = false + +[node name="Saruman" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 59 ) +centered = false + +[node name="Scepter" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 52 ) +centered = false + +[node name="ScimitarNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 60 ) +centered = false + +[node name="ScimitarOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 49 ) +centered = false + +[node name="Scythe2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 48 ) +centered = false + +[node name="ScytheNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 53 ) +centered = false + +[node name="ScytheOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 50 ) +centered = false + +[node name="ScytheSlant" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 57 ) +centered = false + +[node name="ShortSword" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 51 ) +centered = false + +[node name="ShortSword2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 54 ) +centered = false + +[node name="ShortSwordSlant2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 55 ) +centered = false + +[node name="ShortSwordSlant3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 56 ) +centered = false + +[node name="ShortSwordSlantNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 58 ) +centered = false + +[node name="ShortSwordSlantOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 105 ) +centered = false + +[node name="Sickle" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 73 ) +centered = false + +[node name="Sling" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 99 ) +centered = false + +[node name="Spear" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 108 ) +centered = false + +[node name="Spear1" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 65 ) +centered = false + +[node name="Spear2New" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 74 ) +centered = false + +[node name="Spear2Old" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 64 ) +centered = false + +[node name="Spear3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 61 ) +centered = false + +[node name="Spear4" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 100 ) +centered = false + +[node name="Spear5" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 72 ) +centered = false + +[node name="StaffEvil" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 90 ) +centered = false + +[node name="StaffFancy" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 82 ) +centered = false + +[node name="StaffFork" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 109 ) +centered = false + +[node name="StaffLarge" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 66 ) +centered = false + +[node name="StaffMage" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 103 ) +centered = false + +[node name="StaffMage2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 96 ) +centered = false + +[node name="StaffMummy" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 101 ) +centered = false + +[node name="StaffOrganic" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 62 ) +centered = false + +[node name="StaffPlain" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 84 ) +centered = false + +[node name="StaffRingBlue" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 95 ) +centered = false + +[node name="StaffRuby" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 79 ) +centered = false + +[node name="StaffScepter" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 67 ) +centered = false + +[node name="StaffSkull" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 80 ) +centered = false + +[node name="Stick" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 97 ) +centered = false + +[node name="Sword2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 83 ) +centered = false + +[node name="Sword3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 87 ) +centered = false + +[node name="SwordBlack" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 81 ) +centered = false + +[node name="SwordBreaker" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 102 ) +centered = false + +[node name="SwordJag" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 85 ) +centered = false + +[node name="SwordSeven" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 93 ) +centered = false + +[node name="SwordThief" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 86 ) +centered = false + +[node name="SwordTri" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 91 ) +centered = false + +[node name="SwordTwist" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 75 ) +centered = false + +[node name="Trident" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 88 ) +centered = false + +[node name="Trident2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 104 ) +centered = false + +[node name="Trident3" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 107 ) +centered = false + +[node name="TridentDemon" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 98 ) +centered = false + +[node name="TridentElec" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 89 ) +centered = false + +[node name="TridentTwo" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 68 ) +centered = false + +[node name="TridentTwo2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 92 ) +centered = false + +[node name="TripleSword2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 77 ) +centered = false + +[node name="TripleSwordNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 69 ) +centered = false + +[node name="TripleSwordOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 76 ) +centered = false + +[node name="Trishula" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 94 ) +centered = false + +[node name="WarAxeNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 106 ) +centered = false + +[node name="WarAxeOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 63 ) +centered = false + +[node name="Whip2" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 78 ) +centered = false + +[node name="WhipNew" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 70 ) +centered = false + +[node name="WhipOld" type="Sprite" parent="."] +position = Vector2( 0, 1 ) +texture = ExtResource( 71 ) +centered = false