mirror of
https://codeberg.org/ProgramSnail/konkr_game_3d.git
synced 2026-01-01 19:28:16 +00:00
init
This commit is contained in:
commit
5408d75267
2834 changed files with 377523 additions and 0 deletions
25
scenes/barbarian.tscn
Normal file
25
scenes/barbarian.tscn
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://characters/character_barbarianArmLeft.obj" type="ArrayMesh" id=1]
|
||||
[ext_resource path="res://characters/character_barbarianArmRight.obj" type="ArrayMesh" id=2]
|
||||
[ext_resource path="res://characters/character_barbarianHead.obj" type="ArrayMesh" id=3]
|
||||
[ext_resource path="res://characters/character_barbarianBody.obj" type="ArrayMesh" id=4]
|
||||
[ext_resource path="res://characters/character_barbarianHat.obj" type="ArrayMesh" id=5]
|
||||
|
||||
[node name="Barbarian" type="Spatial"]
|
||||
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0 )
|
||||
|
||||
[node name="character_barbarianArmLeft" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 1 )
|
||||
|
||||
[node name="character_barbarianArmRight" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 2 )
|
||||
|
||||
[node name="character_barbarianBody" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
|
||||
[node name="character_barbarianHat" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 5 )
|
||||
|
||||
[node name="character_barbarianHead" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 3 )
|
||||
92
scenes/buildings.tscn
Normal file
92
scenes/buildings.tscn
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
[gd_scene load_steps=23 format=2]
|
||||
|
||||
[ext_resource path="res://buildings/farm_plot.obj" type="ArrayMesh" id=1]
|
||||
[ext_resource path="res://buildings/forest.obj" type="ArrayMesh" id=4]
|
||||
[ext_resource path="res://buildings/market.obj" type="ArrayMesh" id=5]
|
||||
[ext_resource path="res://buildings/watermill_wheel.obj" type="ArrayMesh" id=8]
|
||||
[ext_resource path="res://buildings/watchtower.obj" type="ArrayMesh" id=9]
|
||||
[ext_resource path="res://buildings/barracks.obj" type="ArrayMesh" id=11]
|
||||
[ext_resource path="res://buildings/castle.obj" type="ArrayMesh" id=12]
|
||||
[ext_resource path="res://buildings/detail_rocks.obj" type="ArrayMesh" id=13]
|
||||
[ext_resource path="res://buildings/mill_blades.obj" type="ArrayMesh" id=14]
|
||||
[ext_resource path="res://buildings/archeryrange.obj" type="ArrayMesh" id=16]
|
||||
[ext_resource path="res://buildings/well.obj" type="ArrayMesh" id=17]
|
||||
[ext_resource path="res://buildings/house.obj" type="ArrayMesh" id=18]
|
||||
[ext_resource path="res://buildings/watermill.obj" type="ArrayMesh" id=19]
|
||||
[ext_resource path="res://buildings/detail_forestB.obj" type="ArrayMesh" id=22]
|
||||
[ext_resource path="res://buildings/detail_forestA.obj" type="ArrayMesh" id=23]
|
||||
[ext_resource path="res://buildings/mine.obj" type="ArrayMesh" id=24]
|
||||
[ext_resource path="res://buildings/detail_rocks_small.obj" type="ArrayMesh" id=26]
|
||||
[ext_resource path="res://buildings/detail_hill.obj" type="ArrayMesh" id=27]
|
||||
[ext_resource path="res://buildings/farm_wheat.obj" type="ArrayMesh" id=28]
|
||||
[ext_resource path="res://buildings/mountain.obj" type="ArrayMesh" id=29]
|
||||
[ext_resource path="res://buildings/mill.obj" type="ArrayMesh" id=31]
|
||||
[ext_resource path="res://buildings/lumbermill.obj" type="ArrayMesh" id=32]
|
||||
|
||||
[node name="Buildings" type="Spatial"]
|
||||
|
||||
[node name="archeryrange" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 16 )
|
||||
|
||||
[node name="barracks" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 11 )
|
||||
|
||||
[node name="castle" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 12 )
|
||||
|
||||
[node name="detail_forestA" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 23 )
|
||||
|
||||
[node name="detail_forestB" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 22 )
|
||||
|
||||
[node name="detail_hill" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 27 )
|
||||
|
||||
[node name="detail_rocks" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 13 )
|
||||
|
||||
[node name="detail_rocks_small" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 26 )
|
||||
|
||||
[node name="farm_plot" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 1 )
|
||||
|
||||
[node name="farm_wheat" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 28 )
|
||||
|
||||
[node name="forest" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
|
||||
[node name="house" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 18 )
|
||||
|
||||
[node name="lumbermill" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 32 )
|
||||
|
||||
[node name="market" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 5 )
|
||||
|
||||
[node name="mill" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 31 )
|
||||
|
||||
[node name="mill_blades" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 14 )
|
||||
|
||||
[node name="mine" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 24 )
|
||||
|
||||
[node name="mountain" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 29 )
|
||||
|
||||
[node name="watchtower" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 9 )
|
||||
|
||||
[node name="watermill" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 19 )
|
||||
|
||||
[node name="watermill_wheel" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 8 )
|
||||
|
||||
[node name="well" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 17 )
|
||||
56
scenes/character.tscn
Normal file
56
scenes/character.tscn
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/Character.gd" type="Script" id=1]
|
||||
[ext_resource path="res://scenes/barbarian.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://scenes/rogue.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://scenes/mage.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://scenes/knight.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://scenes/worker.tscn" type="PackedScene" id=6]
|
||||
|
||||
[sub_resource type="Animation" id=22]
|
||||
resource_name = "Active"
|
||||
loop = true
|
||||
tracks/0/type = "transform"
|
||||
tracks/0/path = NodePath(".")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = PoolRealArray( 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0.6, 1, 0, 2, 0, 0, 0, 0, 1, 1, 1, 1 )
|
||||
|
||||
[sub_resource type="Animation" id=23]
|
||||
resource_name = "NotActive"
|
||||
loop = true
|
||||
tracks/0/type = "transform"
|
||||
tracks/0/path = NodePath(".")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = PoolRealArray( 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1 )
|
||||
|
||||
[node name="Character" type="Spatial"]
|
||||
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0 )
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="CharacterModel" type="Spatial" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
||||
|
||||
[node name="Worker" parent="CharacterModel" instance=ExtResource( 6 )]
|
||||
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0 )
|
||||
|
||||
[node name="Barbarian" parent="CharacterModel" instance=ExtResource( 2 )]
|
||||
visible = false
|
||||
|
||||
[node name="Knight" parent="CharacterModel" instance=ExtResource( 5 )]
|
||||
visible = false
|
||||
|
||||
[node name="Mage" parent="CharacterModel" instance=ExtResource( 4 )]
|
||||
visible = false
|
||||
|
||||
[node name="Rogue" parent="CharacterModel" instance=ExtResource( 3 )]
|
||||
visible = false
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="CharacterModel"]
|
||||
anims/Active = SubResource( 22 )
|
||||
anims/NotActive = SubResource( 23 )
|
||||
34
scenes/destruction.tscn
Normal file
34
scenes/destruction.tscn
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/Destruction.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="ParticlesMaterial" id=40]
|
||||
lifetime_randomness = 0.5
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 0.1
|
||||
direction = Vector3( 0, 1, 0 )
|
||||
spread = 90.0
|
||||
gravity = Vector3( 0, 0, 0 )
|
||||
initial_velocity = 3.0
|
||||
initial_velocity_random = 0.5
|
||||
linear_accel = -3.0
|
||||
scale = 2.0
|
||||
scale_random = 1.0
|
||||
|
||||
[sub_resource type="SphereMesh" id=41]
|
||||
radius = 0.2
|
||||
height = 0.4
|
||||
|
||||
[node name="Destruction" type="Spatial"]
|
||||
|
||||
[node name="Particles" type="Particles" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
||||
emitting = false
|
||||
amount = 16
|
||||
lifetime = 0.6
|
||||
one_shot = true
|
||||
explosiveness = 1.0
|
||||
visibility_aabb = AABB( -2, -2, -2, 4, 4, 4 )
|
||||
process_material = SubResource( 40 )
|
||||
draw_pass_1 = SubResource( 41 )
|
||||
script = ExtResource( 1 )
|
||||
20
scenes/environment_tiles.tscn
Normal file
20
scenes/environment_tiles.tscn
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://tiles_hex/hex_forest.obj" type="ArrayMesh" id=1]
|
||||
[ext_resource path="res://tiles_hex/hex_water.obj" type="ArrayMesh" id=2]
|
||||
[ext_resource path="res://tiles_hex/hex_sand.obj" type="ArrayMesh" id=3]
|
||||
[ext_resource path="res://tiles_hex/hex_rock.obj" type="ArrayMesh" id=4]
|
||||
|
||||
[node name="Tiles" type="Spatial"]
|
||||
|
||||
[node name="hex_forest" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 1 )
|
||||
|
||||
[node name="hex_rock" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
|
||||
[node name="hex_sand" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 3 )
|
||||
|
||||
[node name="hex_water" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 2 )
|
||||
22
scenes/house_info.tscn
Normal file
22
scenes/house_info.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/HouseInfo.gd" type="Script" id=1]
|
||||
[ext_resource path="res://fonts/droid-sans/DroidSans-Bold.ttf" type="DynamicFontData" id=2]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 48
|
||||
outline_size = 10
|
||||
outline_color = Color( 0, 0, 0, 1 )
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[node name="HouseInfo" type="Spatial"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Info" type="Label3D" parent="."]
|
||||
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.7, 0 )
|
||||
cast_shadow = 0
|
||||
alpha_cut = 1
|
||||
text = "HOUSE"
|
||||
font = SubResource( 1 )
|
||||
29
scenes/knight.tscn
Normal file
29
scenes/knight.tscn
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://characters/character_knightBody.obj" type="ArrayMesh" id=1]
|
||||
[ext_resource path="res://characters/character_knightHelmetVisor.obj" type="ArrayMesh" id=2]
|
||||
[ext_resource path="res://characters/character_knightArmLeft.obj" type="ArrayMesh" id=4]
|
||||
[ext_resource path="res://characters/character_knightArmRight.obj" type="ArrayMesh" id=5]
|
||||
[ext_resource path="res://characters/character_knightHelmet.obj" type="ArrayMesh" id=6]
|
||||
[ext_resource path="res://characters/character_barbarianHead.obj" type="ArrayMesh" id=7]
|
||||
|
||||
[node name="Knight" type="Spatial"]
|
||||
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0 )
|
||||
|
||||
[node name="character_knightArmLeft" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
|
||||
[node name="character_knightArmRight" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 5 )
|
||||
|
||||
[node name="character_knightBody" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 1 )
|
||||
|
||||
[node name="character_knightHelmet" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 6 )
|
||||
|
||||
[node name="character_knightHelmetVisor" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 2 )
|
||||
|
||||
[node name="character_barbarianHead" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 7 )
|
||||
219
scenes/level.tscn
Normal file
219
scenes/level.tscn
Normal file
File diff suppressed because one or more lines are too long
25
scenes/mage.tscn
Normal file
25
scenes/mage.tscn
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://characters/character_mageArnLeft.obj" type="ArrayMesh" id=1]
|
||||
[ext_resource path="res://characters/character_mageArmRight.obj" type="ArrayMesh" id=2]
|
||||
[ext_resource path="res://characters/character_barbarianHead.obj" type="ArrayMesh" id=3]
|
||||
[ext_resource path="res://characters/character_mageHat.obj" type="ArrayMesh" id=4]
|
||||
[ext_resource path="res://characters/character_mageBody.obj" type="ArrayMesh" id=5]
|
||||
|
||||
[node name="Mage" type="Spatial"]
|
||||
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0 )
|
||||
|
||||
[node name="character_mageArmRight" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 2 )
|
||||
|
||||
[node name="character_mageArnLeft" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 1 )
|
||||
|
||||
[node name="character_mageBody" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 5 )
|
||||
|
||||
[node name="character_mageHat" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
|
||||
[node name="character_barbarianHead" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 3 )
|
||||
99
scenes/main.tscn
Normal file
99
scenes/main.tscn
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://buildings.tres" type="MeshLibrary" id=1]
|
||||
[ext_resource path="res://environment_tiles.tres" type="MeshLibrary" id=2]
|
||||
[ext_resource path="res://scenes/character.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://scripts/Camera.gd" type="Script" id=4]
|
||||
[ext_resource path="res://scripts/Cursor.gd" type="Script" id=5]
|
||||
[ext_resource path="res://scripts/Map.gd" type="Script" id=6]
|
||||
[ext_resource path="res://player_tiles.tres" type="MeshLibrary" id=7]
|
||||
[ext_resource path="res://scripts/Characters.gd" type="Script" id=8]
|
||||
[ext_resource path="res://scripts/Money.gd" type="Script" id=9]
|
||||
[ext_resource path="res://scripts/Utils.gd" type="Script" id=10]
|
||||
[ext_resource path="res://scripts/PlayerActions.gd" type="Script" id=11]
|
||||
|
||||
[sub_resource type="SphereMesh" id=33]
|
||||
radius = 0.2
|
||||
height = 0.4
|
||||
|
||||
[node name="Level" type="Spatial"]
|
||||
|
||||
[node name="DirectionalLight" type="DirectionalLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 0.761855, 0.647748, 0, -0.647748, 0.761855, 0, 17.466, 20.703 )
|
||||
|
||||
[node name="Camera" type="Camera" parent="."]
|
||||
transform = Transform( -4.37114e-08, -0.707107, 0.707107, 0, 0.707107, 0.707107, -1, 3.09086e-08, -3.09086e-08, 14, 11.6391, 5.7063 )
|
||||
current = true
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Map" type="Spatial" parent="."]
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="Characters" type="Spatial" parent="Map"]
|
||||
script = ExtResource( 8 )
|
||||
|
||||
[node name="Money" type="Spatial" parent="Map"]
|
||||
script = ExtResource( 9 )
|
||||
|
||||
[node name="Utils" type="Spatial" parent="Map"]
|
||||
script = ExtResource( 10 )
|
||||
|
||||
[node name="PlayerActions" type="Spatial" parent="Map"]
|
||||
script = ExtResource( 11 )
|
||||
|
||||
[node name="Tiles" type="GridMap" parent="Map"]
|
||||
mesh_library = ExtResource( 7 )
|
||||
cell_size = Vector3( 1, 1, 0.87 )
|
||||
cell_center_y = false
|
||||
data = {
|
||||
"cells": PoolIntArray( 2, 1, 0, 6, 1, 0, 65532, 1, 1, 65534, 1, 1, 3, 3, 0, 5, 3, 0, 7, 3, 0, 65533, 3, 1, 2, 5, 1, 4, 5, 1, 6, 5, 0, 65534, 5, 1, 1, 7, 1, 3, 7, 1, 5, 7, 1, 2, 9, 1, 3, 65527, 1, 5, 65527, 1, 4, 65529, 1, 6, 65529, 0, 5, 65531, 0, 2, 65533, 0, 4, 65533, 0, 6, 65533, 0, 8, 65533, 2, 10, 65533, 2, 1, 65535, 0, 3, 65535, 0, 5, 65535, 0, 9, 65535, 2, 65533, 65535, 1, 65535, 65535, 1 )
|
||||
}
|
||||
__meta__ = {
|
||||
"_editor_clip_": 0,
|
||||
"_editor_floor_": Vector3( 0, 0, 0 )
|
||||
}
|
||||
|
||||
[node name="Buildings" type="GridMap" parent="Map"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
||||
mesh_library = ExtResource( 1 )
|
||||
cell_size = Vector3( 1, 1, 0.87 )
|
||||
cell_center_y = false
|
||||
data = {
|
||||
"cells": PoolIntArray( 4, 5, 18, 3, 7, 11, 131062, 65528, 29, 9, 65535, 13 )
|
||||
}
|
||||
__meta__ = {
|
||||
"_editor_clip_": 0,
|
||||
"_editor_floor_": Vector3( 0, 0, 0 )
|
||||
}
|
||||
|
||||
[node name="Player0" parent="Map" instance=ExtResource( 3 )]
|
||||
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 2.531, 0, 8.28 )
|
||||
|
||||
[node name="Decorations" type="GridMap" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
||||
mesh_library = ExtResource( 1 )
|
||||
cell_size = Vector3( 1, 1, 0.87 )
|
||||
cell_center_y = false
|
||||
data = {
|
||||
"cells": PoolIntArray( 0, 1, 10, 6, 1, 4, 65534, 1, 4, 1, 3, 10, 65535, 3, 10, 0, 5, 5, 5, 7, 4, 65535, 7, 10, 0, 9, 10, 5, 11, 17, 4, 65525, 10, 131062, 65528, 29, 6, 65529, 4, 3, 65531, 5, 11, 65531, 10, 2, 65533, 4, 8, 65533, 4 )
|
||||
}
|
||||
__meta__ = {
|
||||
"_editor_clip_": 0,
|
||||
"_editor_floor_": Vector3( 0, 0, 0 )
|
||||
}
|
||||
|
||||
[node name="EnvironmentTiles" type="GridMap" parent="."]
|
||||
mesh_library = ExtResource( 2 )
|
||||
cell_size = Vector3( 1, 1, 0.87 )
|
||||
cell_center_y = false
|
||||
data = {
|
||||
"cells": PoolIntArray( 0, 1, 0, 4, 1, 3, 8, 1, 3, 10, 1, 3, 12, 1, 3, 65530, 1, 3, 1, 3, 0, 9, 3, 3, 11, 3, 3, 65531, 3, 3, 65535, 3, 0, 0, 5, 0, 8, 5, 3, 65532, 5, 3, 7, 7, 3, 65531, 7, 3, 65533, 7, 3, 65535, 7, 0, 0, 9, 0, 4, 9, 3, 6, 9, 3, 8, 9, 3, 65532, 9, 3, 65534, 9, 3, 1, 11, 3, 3, 11, 3, 5, 11, 0, 7, 11, 3, 65535, 11, 3, 4, 13, 3, 6, 13, 3, 1, 65523, 3, 3, 65523, 3, 5, 65523, 3, 2, 65525, 3, 4, 65525, 0, 6, 65525, 3, 8, 65525, 3, 1, 65527, 3, 7, 65527, 3, 11, 65527, 3, 13, 65527, 3, 2, 65529, 3, 8, 65529, 3, 10, 65529, 3, 12, 65529, 3, 1, 65531, 3, 3, 65531, 0, 7, 65531, 3, 9, 65531, 3, 11, 65531, 0, 13, 65531, 3, 65535, 65531, 3, 0, 65533, 3, 12, 65533, 3, 65532, 65533, 3, 65534, 65533, 3, 7, 65535, 3, 11, 65535, 3, 65531, 65535, 3 )
|
||||
}
|
||||
__meta__ = {
|
||||
"_editor_clip_": 0,
|
||||
"_editor_floor_": Vector3( 0, 0, 0 )
|
||||
}
|
||||
|
||||
[node name="Cursor" type="MeshInstance" parent="."]
|
||||
mesh = SubResource( 33 )
|
||||
script = ExtResource( 5 )
|
||||
87
scenes/player_tiles.tscn
Normal file
87
scenes/player_tiles.tscn
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://tiles_hex/hex_forest.obj" type="ArrayMesh" id=4]
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=2]
|
||||
albedo_color = Color( 0, 0, 0, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=1]
|
||||
albedo_color = Color( 0.243137, 0.745098, 0.27451, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=3]
|
||||
albedo_color = Color( 0.827451, 0.129412, 0.129412, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=4]
|
||||
albedo_color = Color( 0.611765, 0.266667, 0.768627, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=5]
|
||||
albedo_color = Color( 0.217, 0.6517, 0.7, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=6]
|
||||
albedo_color = Color( 0.737255, 0.74902, 0.203922, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=11]
|
||||
albedo_color = Color( 0.48, 1.5, 0.54, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=10]
|
||||
albedo_color = Color( 3.32, 0.52, 0.52, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=9]
|
||||
albedo_color = Color( 1.22, 0.54, 1.54, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=8]
|
||||
albedo_color = Color( 0.44, 1.3, 1.4, 1 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=7]
|
||||
albedo_color = Color( 1.48, 1.5, 0.4, 1 )
|
||||
|
||||
[node name="Tiles" type="Spatial"]
|
||||
|
||||
[node name="nothing" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
material/0 = SubResource( 2 )
|
||||
|
||||
[node name="green" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
material/0 = SubResource( 1 )
|
||||
|
||||
[node name="red" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
material/0 = SubResource( 3 )
|
||||
|
||||
[node name="purple" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
material/0 = SubResource( 4 )
|
||||
|
||||
[node name="blue" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
material/0 = SubResource( 5 )
|
||||
|
||||
[node name="yellow" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
material/0 = SubResource( 6 )
|
||||
|
||||
[node name="green_active" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
skeleton = NodePath("../red")
|
||||
material/0 = SubResource( 11 )
|
||||
|
||||
[node name="red_active" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
skeleton = NodePath("../red")
|
||||
material/0 = SubResource( 10 )
|
||||
|
||||
[node name="purple_active" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
skeleton = NodePath("../red")
|
||||
material/0 = SubResource( 9 )
|
||||
|
||||
[node name="blue_active" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
skeleton = NodePath("../red")
|
||||
material/0 = SubResource( 8 )
|
||||
|
||||
[node name="yellow_active" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
skeleton = NodePath("../red")
|
||||
material/0 = SubResource( 7 )
|
||||
22
scenes/rogue.tscn
Normal file
22
scenes/rogue.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://characters/character_rogueArmLeft.obj" type="ArrayMesh" id=1]
|
||||
[ext_resource path="res://characters/character_rogueArmRight.obj" type="ArrayMesh" id=2]
|
||||
[ext_resource path="res://characters/character_rogueBody.obj" type="ArrayMesh" id=5]
|
||||
[ext_resource path="res://characters/extra heads/skull.obj" type="ArrayMesh" id=6]
|
||||
|
||||
[node name="Rogue" type="Spatial"]
|
||||
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0 )
|
||||
|
||||
[node name="character_rogueArmLeft" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 1 )
|
||||
|
||||
[node name="character_rogueArmRight" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 2 )
|
||||
|
||||
[node name="character_rogueBody" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 5 )
|
||||
|
||||
[node name="skull" type="MeshInstance" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0 )
|
||||
mesh = ExtResource( 6 )
|
||||
21
scenes/worker.tscn
Normal file
21
scenes/worker.tscn
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://characters/character_barbarianHead.obj" type="ArrayMesh" id=1]
|
||||
[ext_resource path="res://characters/character_rogueArmLeft.obj" type="ArrayMesh" id=2]
|
||||
[ext_resource path="res://characters/character_rogueArmRight.obj" type="ArrayMesh" id=3]
|
||||
[ext_resource path="res://characters/character_rogueBody.obj" type="ArrayMesh" id=4]
|
||||
|
||||
[node name="Worker" type="Spatial"]
|
||||
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 1, 0 )
|
||||
|
||||
[node name="character_barbarianHead" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 1 )
|
||||
|
||||
[node name="character_rogueArmLeft" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 2 )
|
||||
|
||||
[node name="character_rogueArmRight" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 3 )
|
||||
|
||||
[node name="character_rogueBody" type="MeshInstance" parent="."]
|
||||
mesh = ExtResource( 4 )
|
||||
Loading…
Add table
Add a link
Reference in a new issue