diff --git a/Troup.tscn b/Troup.tscn new file mode 100644 index 0000000..38caa23 --- /dev/null +++ b/Troup.tscn @@ -0,0 +1,28 @@ +[gd_scene format=3 uid="uid://dmvsd7af0j8os"] + +[ext_resource type="Script" uid="uid://ctevs31eqx4h8" path="res://troup.gd" id="1_xfhet"] +[ext_resource type="PackedScene" uid="uid://coebykrbnhlif" path="res://currency/members/MemberSprite.tscn" id="2_v0at3"] +[ext_resource type="Resource" uid="uid://ihsvxienxbeu" path="res://currency/sentient/knight.tres" id="3_qcrkc"] +[ext_resource type="Resource" uid="uid://dfbgxc6nlcjct" path="res://allegiance/bad.tres" id="4_sitmf"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_riqys"] +size = Vector2(98, 100) + +[node name="CharacterBody2D" type="CharacterBody2D" unique_id=1581641385] +script = ExtResource("1_xfhet") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1841709482] +position = Vector2(50, 49) +shape = SubResource("RectangleShape2D_riqys") + +[node name="MemberSprite" parent="." unique_id=283117283 instance=ExtResource("2_v0at3")] +instance_shader_parameters/border_color = Color(1, 0, 0, 1) +instance_shader_parameters/border_width = 0.16 +instance_shader_parameters/fill_color = Color(1, 0.7529412, 0.79607844, 1) +custom_minimum_size = Vector2(100, 100) +offset_right = 100.0 +offset_bottom = 100.0 +currency = ExtResource("3_qcrkc") +allegiance = ExtResource("4_sitmf") + +[editable path="MemberSprite"] diff --git a/currency/sentient/dinosaur.tres b/currency/sentient/dinosaur.tres index 897379f..c3b5d8b 100644 --- a/currency/sentient/dinosaur.tres +++ b/currency/sentient/dinosaur.tres @@ -3,6 +3,7 @@ [ext_resource type="Script" uid="uid://hcvynq5fjypj" path="res://currency/sentient_currency.gd" id="1_0dcki"] [ext_resource type="Script" uid="uid://dddyxbkq0ienn" path="res://currency/production.gd" id="1_qayfp"] [ext_resource type="Resource" uid="uid://6xylw7p78fvf" path="res://currency/sentient/wizard.tres" id="3_2x36w"] +[ext_resource type="Texture2D" uid="uid://c4snl0k8eu4n5" path="res://thumbnails/dino.jpg" id="3_bufop"] [ext_resource type="Resource" uid="uid://dfj4jwdmff6bu" path="res://currency/sentient/spy.tres" id="4_bufop"] [ext_resource type="Resource" uid="uid://dmctedq3pav0t" path="res://currency/inanimate/corpse.tres" id="5_w8bqw"] [ext_resource type="Resource" uid="uid://dsohovjbf3s2p" path="res://currency/sentient/chicken.tres" id="6_eu6eo"] @@ -126,6 +127,7 @@ metadata/_custom_type_script = "uid://dddyxbkq0ienn" script = ExtResource("1_0dcki") name = "Dinosaur" description = "*rawrs at you gayly and prehistorically*" +thumbnail = ExtResource("3_bufop") color = Color(1, 0.48235294, 0, 1) wants = Array[ExtResource("1_qayfp")]([SubResource("Resource_unbv5"), SubResource("Resource_awlnm"), SubResource("Resource_jihtj"), SubResource("Resource_utj6b"), SubResource("Resource_2b5sm"), SubResource("Resource_yq4u0"), SubResource("Resource_hi66y"), SubResource("Resource_mf31s"), SubResource("Resource_gdovn"), SubResource("Resource_ts66k"), SubResource("Resource_gt1pn"), SubResource("Resource_evrxh"), SubResource("Resource_b1bj4"), SubResource("Resource_mjehd"), SubResource("Resource_c6wya"), SubResource("Resource_c4cgt"), SubResource("Resource_n7bnc")]) metadata/_custom_type_script = "uid://hcvynq5fjypj" diff --git a/currency/sentient/farmer.tres b/currency/sentient/farmer.tres index 1f7d75d..6a51baa 100644 --- a/currency/sentient/farmer.tres +++ b/currency/sentient/farmer.tres @@ -13,6 +13,12 @@ [ext_resource type="Resource" uid="uid://dsohovjbf3s2p" path="res://currency/sentient/chicken.tres" id="9_i5hpk"] [ext_resource type="Resource" uid="uid://y4ssn47oa8tm" path="res://currency/inanimate/fertilizer.tres" id="10_n23mm"] +[sub_resource type="Resource" id="Resource_i7808"] +script = ExtResource("1_35xhy") +currency = ExtResource("7_uh6l7") +amount = 2 +metadata/_custom_type_script = "uid://dddyxbkq0ienn" + [sub_resource type="Resource" id="Resource_p1wox"] script = ExtResource("1_35xhy") currency = ExtResource("5_uddvy") @@ -52,7 +58,7 @@ metadata/_custom_type_script = "uid://dddyxbkq0ienn" [resource] script = ExtResource("1_kipvp") name = "Farmer" -production = Array[ExtResource("1_35xhy")]([ExtResource("2_jkjll"), ExtResource("3_kfqfp")]) +production = Array[ExtResource("1_35xhy")]([ExtResource("2_jkjll"), ExtResource("3_kfqfp"), SubResource("Resource_i7808")]) description = "When something is farm, but more." color = Color(0.43529412, 0.84705883, 1, 1) wants = Array[ExtResource("1_35xhy")]([SubResource("Resource_p1wox"), SubResource("Resource_bu4yr"), SubResource("Resource_dynkd"), SubResource("Resource_t37mv"), SubResource("Resource_ou8s7"), SubResource("Resource_4ts75")]) diff --git a/currency/sentient_currency.gd b/currency/sentient_currency.gd index d4a2705..fe730b6 100644 --- a/currency/sentient_currency.gd +++ b/currency/sentient_currency.gd @@ -1,2 +1,5 @@ extends Currency class_name SentientCurrency + + +var selected = false diff --git a/map.tscn b/map.tscn index a8a83fa..29e28b6 100644 --- a/map.tscn +++ b/map.tscn @@ -2,6 +2,13 @@ [ext_resource type="Texture2D" uid="uid://bntb4uxiugjq3" path="res://Map/EHAP_map.png" id="1_c7s6e"] [ext_resource type="Script" uid="uid://ws5ruc64db3v" path="res://CameraMove.gd" id="2_wijl4"] +[ext_resource type="PackedScene" uid="uid://dmvsd7af0j8os" path="res://Troup.tscn" id="3_e0an3"] +[ext_resource type="Resource" uid="uid://dpaj2dk3qm7ow" path="res://currency/sentient/miner.tres" id="4_gqbix"] +[ext_resource type="Resource" uid="uid://dlxnbyiurne1s" path="res://currency/sentient/calvary.tres" id="4_iw27f"] +[ext_resource type="Resource" uid="uid://b7lxfjhx4qhts" path="res://allegiance/good.tres" id="5_71pa8"] +[ext_resource type="Resource" uid="uid://dn0c1pfq04obw" path="res://currency/sentient/farmer.tres" id="6_05x41"] +[ext_resource type="Resource" uid="uid://l8osuuxl7exe" path="res://currency/sentient/archer.tres" id="8_oysan"] +[ext_resource type="Resource" uid="uid://clx8tbrad4m7c" path="res://currency/sentient/dinosaur.tres" id="9_sb2pt"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_bhunq"] size = Vector2(184, 20) @@ -154,3 +161,132 @@ shape = SubResource("RectangleShape2D_6qsgm") position = Vector2(1612.9999, -1555.9999) rotation = -0.5846853 shape = SubResource("RectangleShape2D_ooc2g") + +[node name="CharacterBody2D" parent="." unique_id=1581641385 instance=ExtResource("3_e0an3")] +position = Vector2(886, 970) + +[node name="MemberSprite" parent="CharacterBody2D" index="1" unique_id=283117283] +currency = ExtResource("4_gqbix") +allegiance = ExtResource("5_71pa8") + +[node name="CharacterBody2D2" parent="." unique_id=559452664 instance=ExtResource("3_e0an3")] +position = Vector2(628, 935) + +[node name="MemberSprite" parent="CharacterBody2D2" index="1" unique_id=283117283] +currency = ExtResource("4_iw27f") +allegiance = ExtResource("5_71pa8") + +[node name="CharacterBody2D3" parent="." unique_id=1323337635 instance=ExtResource("3_e0an3")] +position = Vector2(1129, 814) + +[node name="MemberSprite" parent="CharacterBody2D3" index="1" unique_id=283117283] +allegiance = ExtResource("5_71pa8") + +[node name="CharacterBody2D4" parent="." unique_id=327546409 instance=ExtResource("3_e0an3")] +position = Vector2(670, 1108) + +[node name="MemberSprite" parent="CharacterBody2D4" index="1" unique_id=283117283] +currency = ExtResource("6_05x41") +allegiance = ExtResource("5_71pa8") + +[node name="CharacterBody2D5" parent="." unique_id=1552478458 instance=ExtResource("3_e0an3")] +position = Vector2(1326, 1196) + +[node name="CollisionShape2D" parent="CharacterBody2D5" index="0" unique_id=1841709482] +position = Vector2(-106, 27) + +[node name="MemberSprite" parent="CharacterBody2D5" index="1" unique_id=283117283] +offset_left = -156.0 +offset_top = -24.0 +offset_right = -56.0 +offset_bottom = 76.0 +currency = ExtResource("6_05x41") +allegiance = ExtResource("5_71pa8") + +[node name="CharacterBody2D6" parent="." unique_id=134953058 instance=ExtResource("3_e0an3")] +position = Vector2(1486, 1226) + +[node name="MemberSprite" parent="CharacterBody2D6" index="1" unique_id=283117283] +currency = ExtResource("6_05x41") +allegiance = ExtResource("5_71pa8") + +[node name="CharacterBody2D7" parent="." unique_id=851750866 instance=ExtResource("3_e0an3")] +position = Vector2(375, 1212) + +[node name="MemberSprite" parent="CharacterBody2D7" index="1" unique_id=283117283] +currency = ExtResource("6_05x41") +allegiance = ExtResource("5_71pa8") + +[node name="CharacterBody2D8" parent="." unique_id=1378409198 instance=ExtResource("3_e0an3")] +position = Vector2(1174, -1313) + +[node name="MemberSprite" parent="CharacterBody2D8" index="1" unique_id=283117283] +currency = ExtResource("6_05x41") + +[node name="CharacterBody2D9" parent="." unique_id=436272629 instance=ExtResource("3_e0an3")] +position = Vector2(1460, -1375) + +[node name="MemberSprite" parent="CharacterBody2D9" index="1" unique_id=283117283] +currency = ExtResource("6_05x41") + +[node name="CharacterBody2D10" parent="." unique_id=562112085 instance=ExtResource("3_e0an3")] +position = Vector2(638, -1300) + +[node name="MemberSprite" parent="CharacterBody2D10" index="1" unique_id=283117283] +currency = ExtResource("6_05x41") + +[node name="CharacterBody2D11" parent="." unique_id=1209762473 instance=ExtResource("3_e0an3")] +position = Vector2(368, -1353) + +[node name="MemberSprite" parent="CharacterBody2D11" index="1" unique_id=283117283] +currency = ExtResource("6_05x41") + +[node name="CharacterBody2D12" parent="." unique_id=2114526449 instance=ExtResource("3_e0an3")] +position = Vector2(388, -1138) + +[node name="MemberSprite" parent="CharacterBody2D12" index="1" unique_id=283117283] +currency = ExtResource("8_oysan") + +[node name="CharacterBody2D13" parent="." unique_id=799583982 instance=ExtResource("3_e0an3")] +position = Vector2(679, -1035) + +[node name="MemberSprite" parent="CharacterBody2D13" index="1" unique_id=283117283] +currency = ExtResource("4_iw27f") + +[node name="CharacterBody2D14" parent="." unique_id=848046283 instance=ExtResource("3_e0an3")] +position = Vector2(1186, -1035) + +[node name="MemberSprite" parent="CharacterBody2D14" index="1" unique_id=283117283] +currency = ExtResource("9_sb2pt") + +[node name="CharacterBody2D15" parent="." unique_id=106802383 instance=ExtResource("3_e0an3")] +position = Vector2(1461, -1107) + +[editable path="CharacterBody2D"] +[editable path="CharacterBody2D/MemberSprite"] +[editable path="CharacterBody2D2"] +[editable path="CharacterBody2D2/MemberSprite"] +[editable path="CharacterBody2D3"] +[editable path="CharacterBody2D3/MemberSprite"] +[editable path="CharacterBody2D4"] +[editable path="CharacterBody2D4/MemberSprite"] +[editable path="CharacterBody2D5"] +[editable path="CharacterBody2D5/MemberSprite"] +[editable path="CharacterBody2D6"] +[editable path="CharacterBody2D6/MemberSprite"] +[editable path="CharacterBody2D7"] +[editable path="CharacterBody2D7/MemberSprite"] +[editable path="CharacterBody2D8"] +[editable path="CharacterBody2D8/MemberSprite"] +[editable path="CharacterBody2D9"] +[editable path="CharacterBody2D9/MemberSprite"] +[editable path="CharacterBody2D10"] +[editable path="CharacterBody2D10/MemberSprite"] +[editable path="CharacterBody2D11"] +[editable path="CharacterBody2D11/MemberSprite"] +[editable path="CharacterBody2D12"] +[editable path="CharacterBody2D12/MemberSprite"] +[editable path="CharacterBody2D13"] +[editable path="CharacterBody2D13/MemberSprite"] +[editable path="CharacterBody2D14"] +[editable path="CharacterBody2D14/MemberSprite"] diff --git a/project.godot b/project.godot index 55460fc..f02b472 100644 --- a/project.godot +++ b/project.godot @@ -34,11 +34,13 @@ directories/dtl_directory={ "counteroffer request": "res://test/counteroffer request.dtl", "counteroffer_response": "res://counteroffer_response.dtl", "dino": "res://test/dino.dtl", +"dino ending": "res://test/dino ending.dtl", "double_agent": "res://test/double_agent.dtl", "drought": "res://test/drought.dtl", "from_farmer_to_table": "res://test/from_farmer_to_table.dtl", "goldrush": "res://test/goldrush.dtl", "new intel": "res://test/new intel.dtl", +"newsboy_caps": "res://test/newsboy_caps.dtl", "outbreak": "res://test/outbreak.dtl", "outro": "res://test/outro.dtl", "outro but you win actually": "res://test/outro but you win actually.dtl", @@ -46,6 +48,7 @@ directories/dtl_directory={ "random life expense letter": "res://test/random life expense letter.dtl", "sending recruitment offer to individual npc": "res://test/sending recruitment offer to individual npc.dtl", "talking to npcs": "res://test/talking to npcs.dtl", +"taunt": "res://test/taunt.dtl", "timeline": "res://test/timeline.dtl", "union reps letters": "res://test/union reps letters.dtl", "wizard": "res://test/wizard.dtl" @@ -66,6 +69,7 @@ variables={ "player_goal": "killing", "player_name": "Player Gaymerman", "special": { +"archie_increment": 1, "renamed_kingdom": "", "spy_name": "" } diff --git a/random events/newsboy_caps.tres b/random events/newsboy_caps.tres new file mode 100644 index 0000000..888ac3a --- /dev/null +++ b/random events/newsboy_caps.tres @@ -0,0 +1,26 @@ +[gd_resource type="Resource" script_class="Event" format=3 uid="uid://byienlsc413ra"] + +[ext_resource type="Script" uid="uid://dddyxbkq0ienn" path="res://currency/production.gd" id="1_2ebyl"] +[ext_resource type="Script" uid="uid://diwdxofo6exg3" path="res://event.gd" id="2_7uy82"] +[ext_resource type="Resource" uid="uid://dq70tpr5osjkk" path="res://currency/sentient/messenger.tres" id="2_ho2g0"] +[ext_resource type="Resource" uid="uid://chsv8oeajty8j" path="res://currency/sentient/town_crier.tres" id="3_8y6t6"] +[ext_resource type="Resource" uid="uid://8annrf4d7a2n" path="res://test/newsboy_caps.dtl" id="5_8y6t6"] + +[sub_resource type="Resource" id="Resource_u1vo1"] +script = ExtResource("1_2ebyl") +currency = ExtResource("2_ho2g0") +amount = 15 +metadata/_custom_type_script = "uid://dddyxbkq0ienn" + +[sub_resource type="Resource" id="Resource_p3a4f"] +script = ExtResource("1_2ebyl") +currency = ExtResource("3_8y6t6") +amount = 15 +metadata/_custom_type_script = "uid://dddyxbkq0ienn" + +[resource] +script = ExtResource("2_7uy82") +modified_resource = SubResource("Resource_p3a4f") +extra_mods = Array[ExtResource("1_2ebyl")]([SubResource("Resource_u1vo1")]) +timeline = ExtResource("5_8y6t6") +metadata/_custom_type_script = "uid://diwdxofo6exg3" diff --git a/random events/taunt.tres b/random events/taunt.tres new file mode 100644 index 0000000..d62ead9 --- /dev/null +++ b/random events/taunt.tres @@ -0,0 +1,10 @@ +[gd_resource type="Resource" script_class="Event" format=3 uid="uid://cqurm0kdk1ao"] + +[ext_resource type="Script" uid="uid://dddyxbkq0ienn" path="res://currency/production.gd" id="1_0o4pj"] +[ext_resource type="Script" uid="uid://diwdxofo6exg3" path="res://event.gd" id="2_c2rsl"] +[ext_resource type="Resource" uid="uid://du5glqfoifigj" path="res://test/taunt.dtl" id="3_c2rsl"] + +[resource] +script = ExtResource("2_c2rsl") +timeline = ExtResource("3_c2rsl") +metadata/_custom_type_script = "uid://diwdxofo6exg3" diff --git a/random events/wizard.tres b/random events/wizard.tres index c84c8f0..2214b57 100644 --- a/random events/wizard.tres +++ b/random events/wizard.tres @@ -3,6 +3,7 @@ [ext_resource type="Script" uid="uid://diwdxofo6exg3" path="res://event.gd" id="1_kjsek"] [ext_resource type="Resource" uid="uid://6xylw7p78fvf" path="res://currency/sentient/wizard.tres" id="1_wgvj8"] [ext_resource type="Script" uid="uid://dddyxbkq0ienn" path="res://currency/production.gd" id="2_8hlcg"] +[ext_resource type="Resource" uid="uid://b4y6p8k4m8chh" path="res://test/wizard.dtl" id="4_8hlcg"] [sub_resource type="Resource" id="Resource_iwd2d"] script = ExtResource("2_8hlcg") @@ -13,4 +14,5 @@ metadata/_custom_type_script = "uid://dddyxbkq0ienn" [resource] script = ExtResource("1_kjsek") modified_resource = SubResource("Resource_iwd2d") +timeline = ExtResource("4_8hlcg") metadata/_custom_type_script = "uid://diwdxofo6exg3" diff --git a/test/dino ending.dtl b/test/dino ending.dtl new file mode 100644 index 0000000..3096e91 --- /dev/null +++ b/test/dino ending.dtl @@ -0,0 +1,12 @@ +Wha- +[wait time="2.0"] +[b]I WALKED AWAY FOR LIKE 2 MINUTES[/b] +[i][b]HOW THE HELL DID YOU GET EATEN BY A DINOSAUR?!!?[/b][/i] +if {special.archie_increment} >= 4.0: + [wait time="1.0"] + You've recived a letter from Archie Nemisye. + "Well, guess I didn't need to bother with feeding you do the dinos anyway! Nice job numb-nuts!" + ~~ From the Court of Archie Nemisye ~~\ + ~~ With All His Highness' Respect ~~ + [wait time="2.0"] +congarjulations,, yourr did it and unlooked the secrt dino ending 🦖🦖🦖🦖🦖 \ No newline at end of file diff --git a/test/dino ending.dtl.uid b/test/dino ending.dtl.uid new file mode 100644 index 0000000..ed6ff7e --- /dev/null +++ b/test/dino ending.dtl.uid @@ -0,0 +1 @@ +uid://dxjgtv26imfaf diff --git a/test/newsboy_caps.dtl b/test/newsboy_caps.dtl new file mode 100644 index 0000000..eb354c6 --- /dev/null +++ b/test/newsboy_caps.dtl @@ -0,0 +1,7 @@ +Extra! Extra!\ +Sire! Sire! You've gotta hear! +Newsboy caps are back in style!\ +We've got a flashmob at the gates made up entirely of Criers and Messangers!\ +Never will mail go undelivered again! +They're just like me!\ +Extra! Extra! \ No newline at end of file diff --git a/test/newsboy_caps.dtl.uid b/test/newsboy_caps.dtl.uid new file mode 100644 index 0000000..c2c9152 --- /dev/null +++ b/test/newsboy_caps.dtl.uid @@ -0,0 +1 @@ +uid://8annrf4d7a2n diff --git a/test/taunt.dtl b/test/taunt.dtl new file mode 100644 index 0000000..25a5d12 --- /dev/null +++ b/test/taunt.dtl @@ -0,0 +1,41 @@ +set {special.archie_increment} = 7.0 + +You've recived a letter from Archie Nemisye. +if {special.archie_increment} == 1.0: + "Howdy, nemisis! It's me, your Nemisye!" + "(Heh, see what I did there? Clever huh?)" + "Aaaanyway, I hope you're ready to get [i]totally freakin' [b]shredded[/b][/i] by my awesome army. +elif {special.archie_increment} == 2.0: + "How've you been lately anyway? We haven't spoken in a while." + "Come to think of it, I'm not sure we've ever even spoken in the first place!" +elif {special.archie_increment} == 3.0: + "I do hope you're getting these, by the way."\ + "As much as I positively [i][b]despise[b][i] you and your {player_goal} ways. You may well be the only other in the land who can relate to me and my [i]royally[/i] blasé existance." +elif {special.archie_increment} == 4.0: + "I dunno, gets awful lonely being king, so one must find ways to entertain oneself. Even if it means fraternizing with one's worst enemy!" + "Lucky for you though, you won't need to bother with that for much longer, I'll have you thrown to the dinos once [i]I'm[/i] in charge!" +elif {special.archie_increment} == 5.0: + "You are getting these aren't you? Very un-rulerly of you to simply leave mail [i]without[/i] a reply." + "I suppose maybe I'll just need to come over there and confront you myself once I've had my way with your troops." +elif {special.archie_increment} == 6.0: + "Okay well now this lack of response is just plain rude." +else: + "I suppose diplomacy really isn't your strongsuit huh? Well I guess that's alright, just another thing I get to be better than you at!" + + + +~~ From the Court of Archie Nemisye ~~\ +~~ With All His Highness' Respect ~~ + +if {special.archie_increment} == 4.0: + "P.S.\ + I was lying about the whole feeding you to dinosaur's part." +elif {special.archie_increment} == 7.0 + "P.S.\ + This is the last time you'll hear from me, frankly it's late and I'm getting tired of writing these letters." + "Goodnight, sleep loose, let the bed bugs eat you alive or something.\ + \ + - Archie" +set {special.archie_increment} += 1.0 + +# If special.archie_increment >= 7 then set the probability of the taunt event to zero \ No newline at end of file diff --git a/test/taunt.dtl.uid b/test/taunt.dtl.uid new file mode 100644 index 0000000..8c30b75 --- /dev/null +++ b/test/taunt.dtl.uid @@ -0,0 +1 @@ +uid://du5glqfoifigj diff --git a/thumbnails/attributions/attributions.txt b/thumbnails/attributions/attributions.txt index 031ea07..31dc359 100644 --- a/thumbnails/attributions/attributions.txt +++ b/thumbnails/attributions/attributions.txt @@ -5,3 +5,5 @@ beer.png - from: "Straight beer glass.png" by Etamme, https://commons.wikimedia. bread.jpg - cropped from: "Bread on blue plate from an angle.jpg" by Kansattica, https://commons.wikimedia.org/wiki/File:Bread_on_blue_plate_from_an_angle.jpg, licensed under https://creativecommons.org/licenses/by/4.0/ doctor.jpg - cropped from: "Effect inferno 2022 movie frame 01.jpg" by Sergey A. Demidov, https://commons.wikimedia.org/wiki/File:Effect_inferno_2022_movie_frame_01.jpg, licensed under https://creativecommons.org/licenses/by/4.0/ + +dino.jpg - cropped from: "Dino cosumes at Knockengorroch 2023.jpeg" by Sara Thomas, https://commons.wikimedia.org/wiki/File:Dino_cosumes_at_Knockengorroch_2023.jpeg, licensed under https://creativecommons.org/licenses/by/4.0/ diff --git a/thumbnails/dino.jpg b/thumbnails/dino.jpg new file mode 100644 index 0000000..1d4c107 --- /dev/null +++ b/thumbnails/dino.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c32129269b7b8a373fe7131e0017b3c571abdb0f11d1bb769133b80ba8295f71 +size 42193 diff --git a/thumbnails/dino.jpg.import b/thumbnails/dino.jpg.import new file mode 100644 index 0000000..4efd66c --- /dev/null +++ b/thumbnails/dino.jpg.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c4snl0k8eu4n5" +path="res://.godot/imported/dino.jpg-9bb8574a9aff5590cbd8265f55c761d9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://thumbnails/dino.jpg" +dest_files=["res://.godot/imported/dino.jpg-9bb8574a9aff5590cbd8265f55c761d9.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/troup.gd b/troup.gd new file mode 100644 index 0000000..c0b416e --- /dev/null +++ b/troup.gd @@ -0,0 +1,33 @@ +extends CharacterBody2D + + +const SPEED = 100.0 +const JUMP_VELOCITY = -400.0 +@export var target : Node2D + + +func _get_target(event) -> void: + if target != null: + return + if UserContext.selected_member == self: + pass + +#func _Direction() -> Vector2: + #self.position = self.position.move_toward(target.transform.position, speed * delta) + +func _physics_process(delta: float) -> void: + if target != null: + #print(self.global_position.distance_to(target.global_position)) + var num = abs(abs(self.global_position) - abs(target.global_position)) + #print(num) + var direction = (target.global_position - self.global_position).normalized() * SPEED * delta + #if (num > Vector2(2,2)): + if (self.global_position.distance_to(target.global_position) > 0.2): + self.velocity = direction + #self.global_position = self.global_position.move_toward(target.global_position, SPEED * delta) + elif (target.is_class("SentientCurrency")): + pass + else: + pass + #target = null + move_and_slide() diff --git a/troup.gd.uid b/troup.gd.uid new file mode 100644 index 0000000..a80b822 --- /dev/null +++ b/troup.gd.uid @@ -0,0 +1 @@ +uid://ctevs31eqx4h8