diff options
author | Victor Andrade de Almeida <vct.a.almeida@gmail.com> | 2022-07-17 04:09:19 -0300 |
---|---|---|
committer | Victor Andrade de Almeida <vct.a.almeida@gmail.com> | 2022-07-17 04:09:19 -0300 |
commit | 795ffde4e100b83175cdb386481fb770c82c8b77 (patch) | |
tree | 9d8cb9e3f52bbe0e03a6bc7f1720ebe707ed4ead | |
parent | e5a6000694f2f27d3eac1c77b79dfd792bd9f14e (diff) | |
download | gamejam-gmtk-2022-795ffde4e100b83175cdb386481fb770c82c8b77.tar.gz gamejam-gmtk-2022-795ffde4e100b83175cdb386481fb770c82c8b77.tar.bz2 gamejam-gmtk-2022-795ffde4e100b83175cdb386481fb770c82c8b77.zip |
Recolor dice
-rw-r--r-- | Assets/1_dot_blue.png | bin | 0 -> 11169 bytes | |||
-rw-r--r-- | Assets/1_dot_blue.png.import | 37 | ||||
-rw-r--r-- | Assets/2_dots_blue.png | bin | 0 -> 11108 bytes | |||
-rw-r--r-- | Assets/2_dots_blue.png.import | 37 | ||||
-rw-r--r-- | Assets/3_dots_blue.png | bin | 0 -> 12614 bytes | |||
-rw-r--r-- | Assets/3_dots_blue.png.import | 37 | ||||
-rw-r--r-- | Assets/DiceFaceMaterial.tres | 2 | ||||
-rw-r--r-- | Scenes/Entity.gd | 2 | ||||
-rw-r--r-- | Scenes/PlateDamage.gd | 8 | ||||
-rw-r--r-- | Scenes/PlateDamage.tscn | 2 | ||||
-rw-r--r-- | Scenes/Player.gd | 2 | ||||
-rw-r--r-- | Scenes/Player.tscn | 6 |
12 files changed, 120 insertions, 13 deletions
diff --git a/Assets/1_dot_blue.png b/Assets/1_dot_blue.png Binary files differnew file mode 100644 index 0000000..63a7ccc --- /dev/null +++ b/Assets/1_dot_blue.png diff --git a/Assets/1_dot_blue.png.import b/Assets/1_dot_blue.png.import new file mode 100644 index 0000000..2ee00fa --- /dev/null +++ b/Assets/1_dot_blue.png.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="StreamTexture" +path.s3tc="res://.import/1_dot_blue.png-883e97b4f587b16ce9a2d04d35905fd9.s3tc.stex" +path.etc="res://.import/1_dot_blue.png-883e97b4f587b16ce9a2d04d35905fd9.etc.stex" +metadata={ +"imported_formats": [ "s3tc", "etc" ], +"vram_texture": true +} + +[deps] + +source_file="res://Assets/1_dot_blue.png" +dest_files=[ "res://.import/1_dot_blue.png-883e97b4f587b16ce9a2d04d35905fd9.s3tc.stex", "res://.import/1_dot_blue.png-883e97b4f587b16ce9a2d04d35905fd9.etc.stex" ] + +[params] + +compress/mode=2 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=true +flags/filter=true +flags/mipmaps=true +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/Assets/2_dots_blue.png b/Assets/2_dots_blue.png Binary files differnew file mode 100644 index 0000000..ec46c47 --- /dev/null +++ b/Assets/2_dots_blue.png diff --git a/Assets/2_dots_blue.png.import b/Assets/2_dots_blue.png.import new file mode 100644 index 0000000..f61ce9f --- /dev/null +++ b/Assets/2_dots_blue.png.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="StreamTexture" +path.s3tc="res://.import/2_dots_blue.png-4374610b3285160a6b4db4f7792350a4.s3tc.stex" +path.etc="res://.import/2_dots_blue.png-4374610b3285160a6b4db4f7792350a4.etc.stex" +metadata={ +"imported_formats": [ "s3tc", "etc" ], +"vram_texture": true +} + +[deps] + +source_file="res://Assets/2_dots_blue.png" +dest_files=[ "res://.import/2_dots_blue.png-4374610b3285160a6b4db4f7792350a4.s3tc.stex", "res://.import/2_dots_blue.png-4374610b3285160a6b4db4f7792350a4.etc.stex" ] + +[params] + +compress/mode=2 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=true +flags/filter=true +flags/mipmaps=true +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/Assets/3_dots_blue.png b/Assets/3_dots_blue.png Binary files differnew file mode 100644 index 0000000..76bed68 --- /dev/null +++ b/Assets/3_dots_blue.png diff --git a/Assets/3_dots_blue.png.import b/Assets/3_dots_blue.png.import new file mode 100644 index 0000000..39e8e61 --- /dev/null +++ b/Assets/3_dots_blue.png.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="StreamTexture" +path.s3tc="res://.import/3_dots_blue.png-8a2d52828e533b2895e7416f5de740d4.s3tc.stex" +path.etc="res://.import/3_dots_blue.png-8a2d52828e533b2895e7416f5de740d4.etc.stex" +metadata={ +"imported_formats": [ "s3tc", "etc" ], +"vram_texture": true +} + +[deps] + +source_file="res://Assets/3_dots_blue.png" +dest_files=[ "res://.import/3_dots_blue.png-8a2d52828e533b2895e7416f5de740d4.s3tc.stex", "res://.import/3_dots_blue.png-8a2d52828e533b2895e7416f5de740d4.etc.stex" ] + +[params] + +compress/mode=2 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=true +flags/filter=true +flags/mipmaps=true +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/Assets/DiceFaceMaterial.tres b/Assets/DiceFaceMaterial.tres index c09595a..e47eb32 100644 --- a/Assets/DiceFaceMaterial.tres +++ b/Assets/DiceFaceMaterial.tres @@ -1,6 +1,6 @@ [gd_resource type="SpatialMaterial" load_steps=2 format=2] -[ext_resource path="res://Assets/1_dot.png" type="Texture" id=1] +[ext_resource path="res://Assets/1_dot_blue.png" type="Texture" id=1] [resource] albedo_texture = ExtResource( 1 ) diff --git a/Scenes/Entity.gd b/Scenes/Entity.gd index 63ab008..649d01b 100644 --- a/Scenes/Entity.gd +++ b/Scenes/Entity.gd @@ -50,7 +50,7 @@ func cor_shake(args : Array): var time = 0 var zero = translation - var intensity = 0.02 + var intensity = 0.03 while true: time = min(time + get_process_delta_time(), duration) diff --git a/Scenes/PlateDamage.gd b/Scenes/PlateDamage.gd index 310ac39..d910f76 100644 --- a/Scenes/PlateDamage.gd +++ b/Scenes/PlateDamage.gd @@ -1,19 +1,17 @@ extends Plate -export(int) var damage - func activate(entity : Entity, dungeon): if entity is Player: entity.add_action("cor_shake", [0.2]) - Global.turns -= damage + Global.turns -= int(entity.get_top()) return if entity is Monster: - if entity.health - damage <= 0: + if entity.health - 1 <= 0: entity.alive = false entity.add_action("cor_dies", []) dungeon.kill_entity(entity) else: - entity.health -= damage + entity.health -= 1 entity.add_action("cor_shake", [0.2]) return diff --git a/Scenes/PlateDamage.tscn b/Scenes/PlateDamage.tscn index 039597f..f3a0ec9 100644 --- a/Scenes/PlateDamage.tscn +++ b/Scenes/PlateDamage.tscn @@ -7,8 +7,6 @@ size = Vector3( 0.1, 0.1, 0.1 ) [node name="PlateDamage" type="Spatial"] script = ExtResource( 1 ) -valid_symbols = [ "2", "3", "4", "5", "6", "" ] -damage = 3 [node name="Mesh" type="MeshInstance" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.45, 0.05, 0.45 ) diff --git a/Scenes/Player.gd b/Scenes/Player.gd index 5af227b..21d182e 100644 --- a/Scenes/Player.gd +++ b/Scenes/Player.gd @@ -141,7 +141,7 @@ func cor_shake(args : Array): var time = 0 var zero = Vector3(0, 0.5, 0) - var intensity = 0.02 + var intensity = 0.03 while true: time = min(time + get_process_delta_time(), duration) diff --git a/Scenes/Player.tscn b/Scenes/Player.tscn index 4d67f5e..0ec3d52 100644 --- a/Scenes/Player.tscn +++ b/Scenes/Player.tscn @@ -1,11 +1,11 @@ [gd_scene load_steps=14 format=2] [ext_resource path="res://Scenes/Player.gd" type="Script" id=1] +[ext_resource path="res://Assets/2_dots_blue.png" type="Texture" id=2] [ext_resource path="res://Assets/5_dots.png" type="Texture" id=3] [ext_resource path="res://Assets/DiceFaceMaterial.tres" type="Material" id=4] -[ext_resource path="res://Assets/3_dots.png" type="Texture" id=5] +[ext_resource path="res://Assets/3_dots_blue.png" type="Texture" id=5] [ext_resource path="res://Assets/4_dots.png" type="Texture" id=6] -[ext_resource path="res://Assets/2_dots.png" type="Texture" id=7] [ext_resource path="res://Assets/6_dots.png" type="Texture" id=8] [sub_resource type="QuadMesh" id=5] @@ -14,7 +14,7 @@ albedo_texture = ExtResource( 8 ) [sub_resource type="SpatialMaterial" id=7] -albedo_texture = ExtResource( 7 ) +albedo_texture = ExtResource( 2 ) [sub_resource type="SpatialMaterial" id=8] albedo_texture = ExtResource( 3 ) |