Added visuals for weapon systems

pull/1/head
DAMO238 2020-08-16 17:19:42 +01:00
parent c0b97e4c78
commit 256be6d741
15 changed files with 158 additions and 3 deletions

BIN
Images/Battery.xcf Normal file

Binary file not shown.

BIN
Images/BatteryBackground.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/BatteryBackground.png-6f72c72e50b260a430d77730fd43915f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images/BatteryBackground.png"
dest_files=[ "res://.import/BatteryBackground.png-6f72c72e50b260a430d77730fd43915f.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images/BatteryBolt.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/BatteryBolt.png-6b33434acdc257f5923cf33fe88fccf4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images/BatteryBolt.png"
dest_files=[ "res://.import/BatteryBolt.png-6b33434acdc257f5923cf33fe88fccf4.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images/BatteryFilling.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/BatteryFilling.png-eee2638059fa72688c7a005441519033.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images/BatteryFilling.png"
dest_files=[ "res://.import/BatteryFilling.png-eee2638059fa72688c7a005441519033.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Models/Material_002.material (Stored with Git LFS)

Binary file not shown.

BIN
Models/gun_barrel.tres (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Models/gun_body.tres (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Models/spaceship-gun.glb (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Models/spaceship-gun.glb.import (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Models/spaceship-gun.tscn (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=2]
[gd_scene load_steps=14 format=2]
[ext_resource path="res://Scripts/Player.gd" type="Script" id=1]
[ext_resource path="res://Models/Arrow.obj" type="ArrayMesh" id=2]
@ -9,6 +9,7 @@
[ext_resource path="res://Scenes/EngineParticles.tscn" type="PackedScene" id=7]
[ext_resource path="res://Images/TurnEndBanner.png" type="Texture" id=8]
[ext_resource path="res://Animations/TurnEndBanner.anim" type="Animation" id=9]
[ext_resource path="res://Models/spaceship-gun.tscn" type="PackedScene" id=10]
[sub_resource type="CapsuleShape" id=1]
radius = 0.15
@ -17,6 +18,14 @@ height = 0.6
[sub_resource type="CanvasItemMaterial" id=2]
light_mode = 1
[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 1, 0, 0, 1 )
emission_enabled = true
emission = Color( 1, 0, 0, 1 )
emission_energy = 10.0
emission_operator = 0
emission_on_uv2 = false
[node name="Player" type="RigidBody"]
gravity_scale = -128.0
script = ExtResource( 1 )
@ -426,6 +435,24 @@ __meta__ = {
[node name="AnimationPlayer" type="AnimationPlayer" parent="TurnEndBanner"]
autoplay = "ShowEndTurnBanner"
anims/ShowEndTurnBanner = ExtResource( 9 )
[node name="GunContainer" type="Spatial" parent="."]
transform = Transform( -4.37114e-09, 4.37114e-09, 0.1, 0.1, -4.37114e-09, 4.37114e-09, 4.37114e-09, 0.1, -4.37114e-09, 0, -0.0222926, 0.382747 )
[node name="spaceship-gun" parent="GunContainer" instance=ExtResource( 10 )]
transform = Transform( 1, 0, 1.64203e-15, 0, 1, 0, 1.64203e-15, 0, 1, 4.47035e-08, 0.811224, -3.54597e-08 )
[node name="RayCast" type="RayCast" parent="GunContainer"]
transform = Transform( 1, 0, 1.64203e-15, 0, 1, 0, 1.64203e-15, 0, 1, 7.45058e-08, 1.76881, -7.73171e-08 )
enabled = true
cast_to = Vector3( 0, 1, 0 )
[node name="CSGCylinder" type="CSGCylinder" parent="GunContainer/RayCast"]
transform = Transform( 1, 0, 1.64203e-15, 0, 1, 0, 1.64203e-15, 0, 1, 7.45058e-08, 1.445, -6.3163e-08 )
visible = false
material_override = SubResource( 3 )
radius = 0.09
sides = 32
[connection signal="value_changed" from="MainPanel/TimeBar" to="." method="_on_TimeBar_value_changed"]
[connection signal="pressed" from="MainPanel/AddButton" to="." method="_on_AddButton_pressed"]
[connection signal="pressed" from="MainPanel/PlayButton" to="." method="_on_PlayButton_pressed"]

View File

@ -8,7 +8,9 @@
script = ExtResource( 1 )
[node name="Lobby" parent="." instance=ExtResource( 2 )]
margin_left = 1.0
margin_top = 1.0
margin_right = 1.0
margin_bottom = 1.0
[node name="ConsoleOutput" type="TextEdit" parent="."]