diff --git a/ResourceTest.tscn b/ResourceTest.tscn new file mode 100644 index 0000000..c9c295e --- /dev/null +++ b/ResourceTest.tscn @@ -0,0 +1,46 @@ +[gd_scene format=3 uid="uid://cbn8gkhh54biw"] + +[ext_resource type="Script" uid="uid://xjow2vrn307m" path="res://test_enemy.gd" id="1_wrqmu"] +[ext_resource type="Script" uid="uid://0nsrno5ksdeh" path="res://scripts/ExampleResource.gd" id="2_2fskf"] +[ext_resource type="Resource" uid="uid://cy58t3vbkogtu" path="res://resources/example_resource1.tres" id="2_4vrue"] +[ext_resource type="Texture2D" uid="uid://dy743vehs0t1t" path="res://icon.svg" id="3_nascw"] + +[sub_resource type="Resource" id="Resource_nascw"] +script = ExtResource("2_2fskf") +speed = 5.0 +metadata/_custom_type_script = "uid://0nsrno5ksdeh" + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vrue"] + +[node name="ResourceTest" type="Node2D" unique_id=1938241335] + +[node name="TestEnemy" type="Area2D" parent="." unique_id=197600973] +position = Vector2(177, 252) +script = ExtResource("1_wrqmu") +example_resource = SubResource("Resource_nascw") + +[node name="Sprite2D" type="Sprite2D" parent="TestEnemy" unique_id=392517985] +position = Vector2(19, -111) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="TestEnemy" unique_id=1888418400] +shape = SubResource("RectangleShape2D_4vrue") + +[node name="TestEnemy2a" type="Area2D" parent="." unique_id=681188134] +position = Vector2(60, 166) +script = ExtResource("1_wrqmu") +example_resource = ExtResource("2_4vrue") + +[node name="Sprite2D" type="Sprite2D" parent="TestEnemy2a" unique_id=479189583] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="TestEnemy2a" unique_id=1055590466] +shape = SubResource("RectangleShape2D_4vrue") + +[node name="TestEnemy2b" type="Area2D" parent="." unique_id=148383400] +position = Vector2(176, 93) +script = ExtResource("1_wrqmu") +example_resource = ExtResource("2_4vrue") + +[node name="Sprite2D" type="Sprite2D" parent="TestEnemy2b" unique_id=2119219440] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="TestEnemy2b" unique_id=656950543] +shape = SubResource("RectangleShape2D_4vrue") diff --git a/export_presets.cfg b/export_presets.cfg index 18b8bca..f28ad74 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -8,7 +8,7 @@ custom_features="" export_filter="all_resources" include_filter="*" exclude_filter="" -export_path="../../Downloads/2026-03-11 102729 The Third Place/index.html" +export_path="../../Downloads/2026-03-10 105009 The Third Place/index.html" patches=PackedStringArray() patch_delta_encoding=false patch_delta_compression_level_zstd=19 diff --git a/resources/bullet_stats.tres b/resources/bullet_stats.tres new file mode 100644 index 0000000..a751c9c --- /dev/null +++ b/resources/bullet_stats.tres @@ -0,0 +1,7 @@ +[gd_resource type="Resource" script_class="BulletResource" format=3 uid="uid://ds8pfhnj8c303"] + +[ext_resource type="Script" uid="uid://64l0xhnsdh7x" path="res://scripts/bullet_stats.gd" id="1_c83q5"] + +[resource] +script = ExtResource("1_c83q5") +metadata/_custom_type_script = "uid://64l0xhnsdh7x" diff --git a/resources/example_resource1.tres b/resources/example_resource1.tres new file mode 100644 index 0000000..dab11fb --- /dev/null +++ b/resources/example_resource1.tres @@ -0,0 +1,10 @@ +[gd_resource type="Resource" script_class="ExampleResource" format=3 uid="uid://cy58t3vbkogtu"] + +[ext_resource type="Script" uid="uid://0nsrno5ksdeh" path="res://scripts/ExampleResource.gd" id="1_aogvj"] +[ext_resource type="Texture2D" uid="uid://deyu1prtitqcp" path="res://_graphics/Mini Pixel Pack 3/Enemies/Bon_Bon (16 x 16).png" id="2_xrkta"] + +[resource] +script = ExtResource("1_aogvj") +speed = 5.0 +sprite = ExtResource("2_xrkta") +metadata/_custom_type_script = "uid://0nsrno5ksdeh" diff --git a/scenes/boss.tscn b/scenes/boss.tscn index 2100dce..b5d4845 100644 --- a/scenes/boss.tscn +++ b/scenes/boss.tscn @@ -9,8 +9,8 @@ [ext_resource type="Texture2D" uid="uid://c4nhwvs13x5bc" path="res://sprites/heart.png" id="7_2cdgk"] [ext_resource type="Script" uid="uid://b01h56iyb6pp2" path="res://scenes/heart.gd" id="7_qsl3t"] [ext_resource type="AudioStream" uid="uid://c7q8cq4h58pfo" path="res://sounds/pew.wav" id="8_5f346"] -[ext_resource type="AudioStream" uid="uid://cegj71o1vqd21" path="res://sounds/web_ready/horse.mp3" id="9_0onds"] -[ext_resource type="AudioStream" uid="uid://by8o1dkunerkg" path="res://sounds/web_ready/chicken_thunk.mp3" id="11_lfs1x"] +[ext_resource type="AudioStream" uid="uid://p1cak78qhthj" path="res://sounds/horse.wav" id="9_0onds"] +[ext_resource type="AudioStream" uid="uid://bwdkcyrjnxfhu" path="res://sounds/chicken_thunk.wav" id="9_2avx2"] [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_qsl3t"] particle_flag_disable_z = true @@ -211,7 +211,7 @@ tracks/1/keys = { "clips": [{ "end_offset": 0.0, "start_offset": 0.0, -"stream": ExtResource("11_lfs1x") +"stream": ExtResource("9_2avx2") }], "times": PackedFloat32Array(0.23333333) } diff --git a/scenes/bullet.gd b/scenes/bullet.gd index 90fb834..aada869 100644 --- a/scenes/bullet.gd +++ b/scenes/bullet.gd @@ -1,8 +1,11 @@ extends Area2D @onready var bullet = $Bullet +#@export var speed = -250 +@export var stats: Resource + +#var bullet_data = load("res://resources/bullet_resource.tres") -@export var speed = -250 var shader_active = false var pause = false var target = null @@ -20,7 +23,7 @@ func start(pos): func _process(delta): if pause == true: return - position.y += speed * delta + position.y += stats.speed * delta #if target: #var direction = (target.position - position).normalized() diff --git a/scenes/bullet.tscn b/scenes/bullet.tscn index f26189c..4f837a0 100644 --- a/scenes/bullet.tscn +++ b/scenes/bullet.tscn @@ -2,6 +2,7 @@ [ext_resource type="Script" uid="uid://c6oorp45vpqpc" path="res://scenes/bullet.gd" id="1_v8qja"] [ext_resource type="Shader" uid="uid://dfywtah53il1m" path="res://shaders/player_hit.gdshader" id="2_eoqba"] +[ext_resource type="Script" uid="uid://64l0xhnsdh7x" path="res://scripts/bullet_stats.gd" id="2_tamys"] [ext_resource type="Texture2D" uid="uid://bnc77g20gb20h" path="res://sprites/david-head.png" id="2_y25gk"] [ext_resource type="Texture2D" uid="uid://dwd6pycecukqb" path="res://sprites/david-headshot.png" id="3_l5glv"] [ext_resource type="AudioStream" uid="uid://cy01lrl2la6bn" path="res://sounds/splat_alt.wav" id="5_qncy5"] @@ -20,6 +21,7 @@ size = Vector2(12, 11) [node name="Bullet" type="Area2D" unique_id=1850257077] z_index = -1 script = ExtResource("1_v8qja") +stats = ExtResource("2_tamys") [node name="Sprite2D" type="Sprite2D" parent="." unique_id=29933687] material = SubResource("ShaderMaterial_qncy5") diff --git a/scenes/enemy_bullet.gd b/scenes/enemy_bullet.gd index 37666af..7968067 100644 --- a/scenes/enemy_bullet.gd +++ b/scenes/enemy_bullet.gd @@ -1,15 +1,17 @@ extends Area2D +#bullet_data: BulletResource +var bullet_data = load("res://resources/bullet_resource.tres") +#@export var speed = 150 -@export var speed = 150 func start(pos): position = pos func _process(delta): - position.y += speed * delta + position.y += bullet_data.speed * delta func _on_visible_on_screen_notifier_2d_screen_exited(): queue_free() diff --git a/scenes/enemy_chicken.tscn b/scenes/enemy_chicken.tscn index b257299..c57936e 100644 --- a/scenes/enemy_chicken.tscn +++ b/scenes/enemy_chicken.tscn @@ -3,8 +3,8 @@ [ext_resource type="Script" uid="uid://i0r17jo6838m" path="res://scenes/enemy_chicken.gd" id="1_s7c3p"] [ext_resource type="Texture2D" uid="uid://cy4jggxmnohbb" path="res://sprites/chicken.png" id="2_h1rgn"] [ext_resource type="Texture2D" uid="uid://bm7fgqwqfqmf4" path="res://sprites/explosion_pallete-swap.png" id="3_s7c3p"] -[ext_resource type="AudioStream" uid="uid://by8o1dkunerkg" path="res://sounds/web_ready/chicken_thunk.mp3" id="4_od8vd"] -[ext_resource type="AudioStream" uid="uid://bo88av3ourdju" path="res://sounds/web_ready/pew.mp3" id="5_x465u"] +[ext_resource type="AudioStream" uid="uid://bwdkcyrjnxfhu" path="res://sounds/chicken_thunk.wav" id="4_7ellt"] +[ext_resource type="AudioStream" uid="uid://c7q8cq4h58pfo" path="res://sounds/pew.wav" id="5_od8vd"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_4gyqm"] size = Vector2(28.57145, 28.571442) @@ -222,11 +222,11 @@ libraries/ = SubResource("AnimationLibrary_7ellt") autoplay = &"flap" [node name="ChickenHit" type="AudioStreamPlayer2D" parent="." unique_id=484642092] -stream = ExtResource("4_od8vd") +stream = ExtResource("4_7ellt") volume_db = -9.26 [node name="Pew" type="AudioStreamPlayer2D" parent="." unique_id=2040231846] -stream = ExtResource("5_x465u") +stream = ExtResource("5_od8vd") volume_db = -16.0 max_polyphony = 4 diff --git a/scenes/enemy_crt.tscn b/scenes/enemy_crt.tscn index 07eefa3..7b4dc60 100644 --- a/scenes/enemy_crt.tscn +++ b/scenes/enemy_crt.tscn @@ -4,9 +4,9 @@ [ext_resource type="Texture2D" uid="uid://b5pswf7r8b7j4" path="res://sprites/crt.png" id="2_emiuq"] [ext_resource type="Texture2D" uid="uid://cy4jggxmnohbb" path="res://sprites/chicken.png" id="2_ugdur"] [ext_resource type="Texture2D" uid="uid://bm7fgqwqfqmf4" path="res://sprites/explosion_pallete-swap.png" id="3_emiuq"] -[ext_resource type="AudioStream" uid="uid://cq7lebefb2e05" path="res://sounds/web_ready/CRT_IMPACT.mp3" id="5_r7ajx"] -[ext_resource type="AudioStream" uid="uid://4sx6ofrtqqc4" path="res://sounds/web_ready/crt_block.mp3" id="6_cb474"] -[ext_resource type="AudioStream" uid="uid://bo88av3ourdju" path="res://sounds/web_ready/pew.mp3" id="7_cuvsu"] +[ext_resource type="AudioStream" uid="uid://cbi5q575w1g1n" path="res://sounds/CRT_IMPACT.wav" id="6_gas3w"] +[ext_resource type="AudioStream" uid="uid://drnkea24pvbar" path="res://sounds/crt_block.wav" id="6_r7ajx"] +[ext_resource type="AudioStream" uid="uid://c7q8cq4h58pfo" path="res://sounds/pew.wav" id="7_r7ajx"] [sub_resource type="Shader" id="Shader_emiuq"] code = "shader_type canvas_item; @@ -255,15 +255,15 @@ one_shot = true libraries/ = SubResource("AnimationLibrary_7ellt") [node name="ImpactCRT" type="AudioStreamPlayer2D" parent="." unique_id=518408763] -stream = ExtResource("5_r7ajx") +stream = ExtResource("6_gas3w") volume_db = -16.028 [node name="BlockCRT" type="AudioStreamPlayer2D" parent="." unique_id=2105873606] -stream = ExtResource("6_cb474") +stream = ExtResource("6_r7ajx") volume_db = -1.424 [node name="Pew" type="AudioStreamPlayer2D" parent="." unique_id=1064680598] -stream = ExtResource("7_cuvsu") +stream = ExtResource("7_r7ajx") volume_db = -20.82 pitch_scale = 0.95 max_polyphony = 2 diff --git a/scenes/enemy_mirror.tscn b/scenes/enemy_mirror.tscn index 5c364f0..e4f39db 100644 --- a/scenes/enemy_mirror.tscn +++ b/scenes/enemy_mirror.tscn @@ -3,7 +3,7 @@ [ext_resource type="Script" uid="uid://dp8e0btv8lktd" path="res://scenes/enemy_mirror.gd" id="1_ucqiy"] [ext_resource type="Script" uid="uid://dno2nntxrik2j" path="res://scenes/sink.gd" id="2_alyar"] [ext_resource type="Texture2D" uid="uid://bs5540jcnaf7o" path="res://sprites/sink_and_mirror.png" id="2_il73p"] -[ext_resource type="AudioStream" uid="uid://cq7lebefb2e05" path="res://sounds/web_ready/CRT_IMPACT.mp3" id="4_alyar"] +[ext_resource type="AudioStream" uid="uid://cbi5q575w1g1n" path="res://sounds/CRT_IMPACT.wav" id="4_alyar"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_tcthq"] size = Vector2(26, 18) diff --git a/scenes/enemy_table.tscn b/scenes/enemy_table.tscn index cdb695f..15fc817 100644 --- a/scenes/enemy_table.tscn +++ b/scenes/enemy_table.tscn @@ -2,7 +2,7 @@ [ext_resource type="Shader" uid="uid://x02irwg8ynvp" path="res://shaders/pixel_highlight.gdshader" id="1_d4l8f"] [ext_resource type="Texture2D" uid="uid://cklakjbjislch" path="res://sprites/table.png" id="1_kcy6j"] -[ext_resource type="AudioStream" uid="uid://bqqdkm4whlcxa" path="res://sounds/web_ready/MIRROR_SHATTER.mp3" id="3_twce5"] +[ext_resource type="AudioStream" uid="uid://cs4pq5u144agp" path="res://sounds/MIRROR_SHATTER.wav" id="3_twce5"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_twce5"] shader = ExtResource("1_d4l8f") diff --git a/scenes/main.gd b/scenes/main.gd index 380bb3e..0c05efd 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -3,8 +3,6 @@ extends Node2D var player = preload("res://scenes/player.tscn") var instance = null var playing: bool = false -var input_locked: bool = false - var enemy_wave: int @@ -89,14 +87,12 @@ func _on_player_died(): EventBus.goose_talk.emit(7) instance.queue_free() game_over.show() - input_locked = true $LevelAudio.stop() await get_tree().create_timer(2).timeout game_over.hide() $CanvasLayer/Title.show() start_button.show() playing = false - input_locked = false func new_game(): $CanvasLayer/Title.hide() @@ -145,9 +141,6 @@ func new_game(): func _input(EventInput): - - if input_locked == true: - return if EventInput is InputEventScreenTouch: if EventInput.pressed: @@ -180,28 +173,24 @@ func _on_win_game(value: int): if value == 1: # Heart Taken playing = false - input_locked = true $Player._on_player_victory(1) await $Player._on_player_victory(1) game_over.show() - await get_tree().create_timer(8).timeout + await get_tree().create_timer(5).timeout game_over.hide() $CanvasLayer/Title.show() start_button.show() - input_locked = false if value == 2: #Heart Broken playing = false - input_locked = true $Player._on_player_victory(2) await $Player._on_player_victory(2) game_over.show() - await get_tree().create_timer(8).timeout + await get_tree().create_timer(5).timeout game_over.hide() $CanvasLayer/Title.show() start_button.show() - input_locked = false func _on_flash_screen(duration: float = .25): diff --git a/scenes/main.tscn b/scenes/main.tscn index 9a1f6fa..ed92e3f 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -11,12 +11,12 @@ [ext_resource type="Texture2D" uid="uid://bubqwoum50gf8" path="res://_graphics/Mini Pixel Pack 3/UI objects/GAME_OVER (72 x 8).png" id="6_7mycd"] [ext_resource type="Shader" uid="uid://blxo4qgrkjiup" path="res://shaders/flash.gdshader" id="8_eb6dy"] [ext_resource type="PackedScene" uid="uid://cd1kwb8klcsb5" path="res://scenes/goose.tscn" id="9_85g3d"] +[ext_resource type="AudioStream" uid="uid://c3e8sdfqcikp6" path="res://sounds/welcome.wav" id="10_choun"] [ext_resource type="Texture2D" uid="uid://bkvmydfn5saxg" path="res://addons/virtual_joystick/textures/joystick_tip.png" id="10_muem4"] [ext_resource type="PackedScene" uid="uid://drf1k1iulvy6f" path="res://scenes/wave.tscn" id="11_ya4ey"] -[ext_resource type="AudioStream" uid="uid://ia32cbqcvanp" path="res://sounds/web_ready/welcome.mp3" id="13_muem4"] -[ext_resource type="AudioStream" uid="uid://drm2pdos48jc3" path="res://sounds/web_ready/Ambient 2.0.mp3" id="14_muem4"] -[ext_resource type="AudioStream" uid="uid://t1wms0jp1tjg" path="res://sounds/web_ready/radio_tune.mp3" id="16_dp3eg"] -[ext_resource type="AudioStream" uid="uid://d1m7fyfktoa5o" path="res://sounds/web_ready/ambient_hiss.mp3" id="17_0ld40"] +[ext_resource type="AudioStream" uid="uid://i61hg7wispq6" path="res://sounds/Ambient 2.0.wav" id="12_trceg"] +[ext_resource type="AudioStream" uid="uid://mjhprrmwn7qk" path="res://sounds/radio_tune.wav" id="14_a8y0u"] +[ext_resource type="AudioStream" uid="uid://btna02f5ajd7y" path="res://sounds/ambient_hiss.wav" id="15_jkv2x"] [sub_resource type="Animation" id="Animation_1bvp3"] length = 0.001 @@ -70,7 +70,7 @@ shader = ExtResource("8_eb6dy") shader_parameter/intensity = 1.0 [sub_resource type="CircleShape2D" id="CircleShape2D_dp3eg"] -radius = 66.89 +radius = 46.98 [sub_resource type="ShaderMaterial" id="ShaderMaterial_5vw27"] @@ -136,7 +136,6 @@ offset_top = 228.0 offset_right = 297.0 offset_bottom = 528.0 pressed_color = Color(0.7477647, 0.718735, 0.89654267, 1) -deadzone_size = 5.0 clampzone_size = 40.0 visibility_mode = 1 action_left = "left" @@ -170,24 +169,24 @@ position = Vector2(301, 272) [node name="Welcome" type="AudioStreamPlayer2D" parent="." unique_id=1716491479] position = Vector2(118, 162) -stream = ExtResource("13_muem4") +stream = ExtResource("10_choun") volume_db = 0.5 [node name="LevelAudio" type="AudioStreamPlayer2D" parent="." unique_id=2125260365] -stream = ExtResource("14_muem4") +stream = ExtResource("12_trceg") [node name="Wave" parent="." unique_id=2117861058 instance=ExtResource("11_ya4ey")] [node name="SFX" type="Node2D" parent="." unique_id=2059049976] [node name="Tuner" type="AudioStreamPlayer2D" parent="SFX" unique_id=751830572] -stream = ExtResource("16_dp3eg") +stream = ExtResource("14_a8y0u") volume_db = -27.781 pitch_scale = 0.8 max_polyphony = 2 [node name="AmbientHiss" type="AudioStreamPlayer2D" parent="SFX" unique_id=2084228487] -stream = ExtResource("17_0ld40") +stream = ExtResource("15_jkv2x") volume_db = -17.0 pitch_scale = 0.71 diff --git a/scenes/player.gd b/scenes/player.gd index 548e188..8593c3d 100644 --- a/scenes/player.gd +++ b/scenes/player.gd @@ -155,7 +155,6 @@ func _on_area_entered(area): EventBus.heart_beat.emit(2.0) ship.frame = 0 can_win = true - can_shoot = false EventBus.ending.emit(1) #if area.is_in_group("boss") and can_win == true: @@ -189,7 +188,7 @@ func _on_player_victory(ending: int) -> void: await get_tree().create_timer(4).timeout # $Ship/Boosters/BoosterBurst.show() var tween = create_tween() - tween.tween_property(self, "position:y", 60 * -1, .5).set_ease(tween.EASE_IN) + tween.tween_property(self, "position:y", 60 * -1, .25).set_ease(tween.EASE_IN) await tween.finished queue_free() @@ -203,6 +202,6 @@ func _on_player_victory(ending: int) -> void: await get_tree().create_timer(4).timeout # $Ship/Boosters/BoosterBurst.show() var tween = create_tween() - tween.tween_property(self, "position:y", 60 * -1, 4).set_ease(tween.EASE_IN) + tween.tween_property(self, "position:y", 60 * -1, .25).set_ease(tween.EASE_IN) await tween.finished queue_free() diff --git a/scenes/player.tscn b/scenes/player.tscn index a91032e..d7c031c 100644 --- a/scenes/player.tscn +++ b/scenes/player.tscn @@ -10,7 +10,7 @@ [ext_resource type="PackedScene" uid="uid://4jvu41vu2557" path="res://scenes/explosion.tscn" id="8_dw050"] [ext_resource type="Texture2D" uid="uid://bnc77g20gb20h" path="res://sprites/david-head.png" id="8_ur7pv"] [ext_resource type="Texture2D" uid="uid://bm7fgqwqfqmf4" path="res://sprites/explosion_pallete-swap.png" id="10_d2wvv"] -[ext_resource type="AudioStream" uid="uid://q3wgdjrv0era" path="res://sounds/web_ready/HeadInflatePOP 2.0.mp3" id="11_d2wvv"] +[ext_resource type="AudioStream" uid="uid://co6fdp24nloo1" path="res://sounds/HeadInflatePOP 2.0.wav" id="11_d2wvv"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_b26j0"] resource_local_to_scene = true diff --git a/scenes/wave.gd b/scenes/wave.gd index f291c85..a8ee87a 100644 --- a/scenes/wave.gd +++ b/scenes/wave.gd @@ -63,7 +63,7 @@ func spawn_enemies(): t.position = Vector2(screensize.x / 2, position.y + 125) #await get_tree().create_timer(1.5).timeout var ts = t.get_child(2) - await get_tree().create_timer(4).timeout + await get_tree().create_timer(.9).timeout ts.play() ts = t.get_child(0) ts.frame = 1 diff --git a/scripts/EnemyResource.gd b/scripts/EnemyResource.gd new file mode 100644 index 0000000..c7145e8 --- /dev/null +++ b/scripts/EnemyResource.gd @@ -0,0 +1,11 @@ +extends Resource +class_name EnemyResource + +var primary_enemy_bullet: BulletResource = preload("res://scripts/BulletResource.gd") +var exploding: bool + +@export var enemy_type: String +@export var health: int +@export var speed: int +var start_pos: float +@export var tween_speed: float diff --git a/scripts/EnemyResource.gd.uid b/scripts/EnemyResource.gd.uid new file mode 100644 index 0000000..46b2431 --- /dev/null +++ b/scripts/EnemyResource.gd.uid @@ -0,0 +1 @@ +uid://dxmlb4jyoucud diff --git a/scripts/ExampleResource.gd b/scripts/ExampleResource.gd new file mode 100644 index 0000000..fd4e7f4 --- /dev/null +++ b/scripts/ExampleResource.gd @@ -0,0 +1,7 @@ +extends Resource +class_name ExampleResource + +@export var type: String = "Example" +@export var speed: float = 10.0 +@export var sprite: Texture2D = preload("res://icon.svg") +@export var new_type: bool = false diff --git a/scripts/ExampleResource.gd.uid b/scripts/ExampleResource.gd.uid new file mode 100644 index 0000000..d599d5d --- /dev/null +++ b/scripts/ExampleResource.gd.uid @@ -0,0 +1 @@ +uid://0nsrno5ksdeh diff --git a/scripts/bullet_stats.gd b/scripts/bullet_stats.gd new file mode 100644 index 0000000..2ff2c87 --- /dev/null +++ b/scripts/bullet_stats.gd @@ -0,0 +1,15 @@ +class_name BulletStats +extends Resource + +@export var bullet_type: String +@export var bullet: String + +@export var damage: int +@export var speed: int + + +func _init(bullet_type:String = "normal", bullet:String = "res://resources/bullet_resource.tres", damage:int = 1, speed:int = 150): + self.bullet_type = bullet_type + self.bullet = bullet + self.damage = damage + self.speed = speed diff --git a/scripts/bullet_stats.gd.uid b/scripts/bullet_stats.gd.uid new file mode 100644 index 0000000..0410443 --- /dev/null +++ b/scripts/bullet_stats.gd.uid @@ -0,0 +1 @@ +uid://64l0xhnsdh7x diff --git a/sounds/web_ready/Ambient 1.0.mp3 b/sounds/web_ready/Ambient 1.0.mp3 deleted file mode 100644 index 82cce3a..0000000 Binary files a/sounds/web_ready/Ambient 1.0.mp3 and /dev/null differ diff --git a/sounds/web_ready/Ambient 1.0.mp3.import b/sounds/web_ready/Ambient 1.0.mp3.import deleted file mode 100644 index 359d9ce..0000000 --- a/sounds/web_ready/Ambient 1.0.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://cmfoge28taxp0" -path="res://.godot/imported/Ambient 1.0.mp3-758efedd0872a2adb51603f19b1e0823.mp3str" - -[deps] - -source_file="res://sounds/web_ready/Ambient 1.0.mp3" -dest_files=["res://.godot/imported/Ambient 1.0.mp3-758efedd0872a2adb51603f19b1e0823.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/Ambient 2.0.mp3 b/sounds/web_ready/Ambient 2.0.mp3 deleted file mode 100644 index a734185..0000000 Binary files a/sounds/web_ready/Ambient 2.0.mp3 and /dev/null differ diff --git a/sounds/web_ready/Ambient 2.0.mp3.import b/sounds/web_ready/Ambient 2.0.mp3.import deleted file mode 100644 index d11b3dc..0000000 --- a/sounds/web_ready/Ambient 2.0.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://drm2pdos48jc3" -path="res://.godot/imported/Ambient 2.0.mp3-b294adb1fe4b8f26136be2002d6e230f.mp3str" - -[deps] - -source_file="res://sounds/web_ready/Ambient 2.0.mp3" -dest_files=["res://.godot/imported/Ambient 2.0.mp3-b294adb1fe4b8f26136be2002d6e230f.mp3str"] - -[params] - -loop=true -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/CRT_IMPACT.mp3 b/sounds/web_ready/CRT_IMPACT.mp3 deleted file mode 100644 index 88991a0..0000000 Binary files a/sounds/web_ready/CRT_IMPACT.mp3 and /dev/null differ diff --git a/sounds/web_ready/CRT_IMPACT.mp3.import b/sounds/web_ready/CRT_IMPACT.mp3.import deleted file mode 100644 index f1cb72d..0000000 --- a/sounds/web_ready/CRT_IMPACT.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://cq7lebefb2e05" -path="res://.godot/imported/CRT_IMPACT.mp3-6fcae10c80ca1532ca6c3122cd172bb0.mp3str" - -[deps] - -source_file="res://sounds/web_ready/CRT_IMPACT.mp3" -dest_files=["res://.godot/imported/CRT_IMPACT.mp3-6fcae10c80ca1532ca6c3122cd172bb0.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/HeadInflatePOP 2.0.mp3 b/sounds/web_ready/HeadInflatePOP 2.0.mp3 deleted file mode 100644 index 5fdc314..0000000 Binary files a/sounds/web_ready/HeadInflatePOP 2.0.mp3 and /dev/null differ diff --git a/sounds/web_ready/HeadInflatePOP 2.0.mp3.import b/sounds/web_ready/HeadInflatePOP 2.0.mp3.import deleted file mode 100644 index bd4a0a9..0000000 --- a/sounds/web_ready/HeadInflatePOP 2.0.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://q3wgdjrv0era" -path="res://.godot/imported/HeadInflatePOP 2.0.mp3-3f60ddb254488d08b6805a19cd344d4a.mp3str" - -[deps] - -source_file="res://sounds/web_ready/HeadInflatePOP 2.0.mp3" -dest_files=["res://.godot/imported/HeadInflatePOP 2.0.mp3-3f60ddb254488d08b6805a19cd344d4a.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/HeadInflatePOP.mp3 b/sounds/web_ready/HeadInflatePOP.mp3 deleted file mode 100644 index 74dacbd..0000000 Binary files a/sounds/web_ready/HeadInflatePOP.mp3 and /dev/null differ diff --git a/sounds/web_ready/HeadInflatePOP.mp3.import b/sounds/web_ready/HeadInflatePOP.mp3.import deleted file mode 100644 index 07b031f..0000000 --- a/sounds/web_ready/HeadInflatePOP.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://d4fob1ebp0aqo" -path="res://.godot/imported/HeadInflatePOP.mp3-d5c6fd4def46b7f48f8c5aaf2e0e40a7.mp3str" - -[deps] - -source_file="res://sounds/web_ready/HeadInflatePOP.mp3" -dest_files=["res://.godot/imported/HeadInflatePOP.mp3-d5c6fd4def46b7f48f8c5aaf2e0e40a7.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/MIRROR_SHATTER.mp3 b/sounds/web_ready/MIRROR_SHATTER.mp3 deleted file mode 100644 index 9ddc461..0000000 Binary files a/sounds/web_ready/MIRROR_SHATTER.mp3 and /dev/null differ diff --git a/sounds/web_ready/MIRROR_SHATTER.mp3.import b/sounds/web_ready/MIRROR_SHATTER.mp3.import deleted file mode 100644 index f5fe75a..0000000 --- a/sounds/web_ready/MIRROR_SHATTER.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://bqqdkm4whlcxa" -path="res://.godot/imported/MIRROR_SHATTER.mp3-e4afccd74e04003813627383dd1f54a2.mp3str" - -[deps] - -source_file="res://sounds/web_ready/MIRROR_SHATTER.mp3" -dest_files=["res://.godot/imported/MIRROR_SHATTER.mp3-e4afccd74e04003813627383dd1f54a2.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/ambient_hiss.mp3 b/sounds/web_ready/ambient_hiss.mp3 deleted file mode 100644 index 6835011..0000000 Binary files a/sounds/web_ready/ambient_hiss.mp3 and /dev/null differ diff --git a/sounds/web_ready/ambient_hiss.mp3.import b/sounds/web_ready/ambient_hiss.mp3.import deleted file mode 100644 index d159fed..0000000 --- a/sounds/web_ready/ambient_hiss.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://d1m7fyfktoa5o" -path="res://.godot/imported/ambient_hiss.mp3-10be24c3900bcf7f6381e8cbababf06d.mp3str" - -[deps] - -source_file="res://sounds/web_ready/ambient_hiss.mp3" -dest_files=["res://.godot/imported/ambient_hiss.mp3-10be24c3900bcf7f6381e8cbababf06d.mp3str"] - -[params] - -loop=true -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/chicken_thunk.mp3 b/sounds/web_ready/chicken_thunk.mp3 deleted file mode 100644 index bcce686..0000000 Binary files a/sounds/web_ready/chicken_thunk.mp3 and /dev/null differ diff --git a/sounds/web_ready/chicken_thunk.mp3.import b/sounds/web_ready/chicken_thunk.mp3.import deleted file mode 100644 index 8db18ce..0000000 --- a/sounds/web_ready/chicken_thunk.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://by8o1dkunerkg" -path="res://.godot/imported/chicken_thunk.mp3-6ab6f9b601248ce3a12f4b657d6d9e56.mp3str" - -[deps] - -source_file="res://sounds/web_ready/chicken_thunk.mp3" -dest_files=["res://.godot/imported/chicken_thunk.mp3-6ab6f9b601248ce3a12f4b657d6d9e56.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/crt_block.mp3 b/sounds/web_ready/crt_block.mp3 deleted file mode 100644 index b7eeb61..0000000 Binary files a/sounds/web_ready/crt_block.mp3 and /dev/null differ diff --git a/sounds/web_ready/crt_block.mp3.import b/sounds/web_ready/crt_block.mp3.import deleted file mode 100644 index 5e1793c..0000000 --- a/sounds/web_ready/crt_block.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://4sx6ofrtqqc4" -path="res://.godot/imported/crt_block.mp3-3a438480f072cec05e978702884c6e23.mp3str" - -[deps] - -source_file="res://sounds/web_ready/crt_block.mp3" -dest_files=["res://.godot/imported/crt_block.mp3-3a438480f072cec05e978702884c6e23.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/horse.mp3 b/sounds/web_ready/horse.mp3 deleted file mode 100644 index a99ac52..0000000 Binary files a/sounds/web_ready/horse.mp3 and /dev/null differ diff --git a/sounds/web_ready/horse.mp3.import b/sounds/web_ready/horse.mp3.import deleted file mode 100644 index 70d16e9..0000000 --- a/sounds/web_ready/horse.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://cegj71o1vqd21" -path="res://.godot/imported/horse.mp3-442e2a7c248f9df2d450b09410f0809d.mp3str" - -[deps] - -source_file="res://sounds/web_ready/horse.mp3" -dest_files=["res://.godot/imported/horse.mp3-442e2a7c248f9df2d450b09410f0809d.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/pew.mp3 b/sounds/web_ready/pew.mp3 deleted file mode 100644 index a01b71f..0000000 Binary files a/sounds/web_ready/pew.mp3 and /dev/null differ diff --git a/sounds/web_ready/pew.mp3.import b/sounds/web_ready/pew.mp3.import deleted file mode 100644 index 5abf3df..0000000 --- a/sounds/web_ready/pew.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://bo88av3ourdju" -path="res://.godot/imported/pew.mp3-37c20b43d7473ff91cb9da452e6f85cd.mp3str" - -[deps] - -source_file="res://sounds/web_ready/pew.mp3" -dest_files=["res://.godot/imported/pew.mp3-37c20b43d7473ff91cb9da452e6f85cd.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/radio_tune.mp3 b/sounds/web_ready/radio_tune.mp3 deleted file mode 100644 index 5779273..0000000 Binary files a/sounds/web_ready/radio_tune.mp3 and /dev/null differ diff --git a/sounds/web_ready/radio_tune.mp3.import b/sounds/web_ready/radio_tune.mp3.import deleted file mode 100644 index 73decd5..0000000 --- a/sounds/web_ready/radio_tune.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://t1wms0jp1tjg" -path="res://.godot/imported/radio_tune.mp3-c0a71b16f7275a4a7f04d35742d8c97b.mp3str" - -[deps] - -source_file="res://sounds/web_ready/radio_tune.mp3" -dest_files=["res://.godot/imported/radio_tune.mp3-c0a71b16f7275a4a7f04d35742d8c97b.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/splat.mp3 b/sounds/web_ready/splat.mp3 deleted file mode 100644 index 66011aa..0000000 Binary files a/sounds/web_ready/splat.mp3 and /dev/null differ diff --git a/sounds/web_ready/splat.mp3.import b/sounds/web_ready/splat.mp3.import deleted file mode 100644 index b5fe0ef..0000000 --- a/sounds/web_ready/splat.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://c7juvhgu5mwkq" -path="res://.godot/imported/splat.mp3-34936bed3c9717acda3be411ea67e351.mp3str" - -[deps] - -source_file="res://sounds/web_ready/splat.mp3" -dest_files=["res://.godot/imported/splat.mp3-34936bed3c9717acda3be411ea67e351.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/splat_alt.mp3 b/sounds/web_ready/splat_alt.mp3 deleted file mode 100644 index 9f741c6..0000000 Binary files a/sounds/web_ready/splat_alt.mp3 and /dev/null differ diff --git a/sounds/web_ready/splat_alt.mp3.import b/sounds/web_ready/splat_alt.mp3.import deleted file mode 100644 index 3827659..0000000 --- a/sounds/web_ready/splat_alt.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://mbp5oshimxgf" -path="res://.godot/imported/splat_alt.mp3-7e6c3b87ab72071c7eabf8c913778c08.mp3str" - -[deps] - -source_file="res://sounds/web_ready/splat_alt.mp3" -dest_files=["res://.godot/imported/splat_alt.mp3-7e6c3b87ab72071c7eabf8c913778c08.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/sounds/web_ready/welcome.mp3 b/sounds/web_ready/welcome.mp3 deleted file mode 100644 index 615a418..0000000 Binary files a/sounds/web_ready/welcome.mp3 and /dev/null differ diff --git a/sounds/web_ready/welcome.mp3.import b/sounds/web_ready/welcome.mp3.import deleted file mode 100644 index 7ce3bb6..0000000 --- a/sounds/web_ready/welcome.mp3.import +++ /dev/null @@ -1,19 +0,0 @@ -[remap] - -importer="mp3" -type="AudioStreamMP3" -uid="uid://ia32cbqcvanp" -path="res://.godot/imported/welcome.mp3-6ecf631fa68143d29ba0107998d49dbb.mp3str" - -[deps] - -source_file="res://sounds/web_ready/welcome.mp3" -dest_files=["res://.godot/imported/welcome.mp3-6ecf631fa68143d29ba0107998d49dbb.mp3str"] - -[params] - -loop=false -loop_offset=0 -bpm=0 -beat_count=0 -bar_beats=4 diff --git a/test_enemy.gd b/test_enemy.gd new file mode 100644 index 0000000..843deef --- /dev/null +++ b/test_enemy.gd @@ -0,0 +1,14 @@ +extends Area2D + +@export var example_resource: ExampleResource +var speed: float = 0 +var type: String = "null" + +func _ready() -> void: + #resource_sprite.texture = example_resource.sprite + $Sprite2D.texture = example_resource.sprite + #$Sprite2D/Sprite2D.texture = example_resource.sprite + speed = example_resource.speed + type = example_resource.type + + diff --git a/test_enemy.gd.uid b/test_enemy.gd.uid new file mode 100644 index 0000000..0736fc4 --- /dev/null +++ b/test_enemy.gd.uid @@ -0,0 +1 @@ +uid://xjow2vrn307m