Compare commits

..
1 Commits
Author SHA1 Message Date
sam 8bfa979f06 Projectile Weapon
made a gun that can kill the enemy.
2026-10-03 15:58:09 -06:00
36 changed files with 7 additions and 447 deletions

No files matched your search

Binary file not shown.
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://6plxlmpgut38"
path="res://.godot/imported/0.mp3-424b0f7aeee18ccb8b3568142caab51d.mp3str"
[deps]
source_file="res://assets/sounds/0.mp3"
dest_files=["res://.godot/imported/0.mp3-424b0f7aeee18ccb8b3568142caab51d.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://du02reo6oet7e"
path="res://.godot/imported/1.mp3-8249ffbd379df4568a56660e54b71b58.mp3str"
[deps]
source_file="res://assets/sounds/1.mp3"
dest_files=["res://.godot/imported/1.mp3-8249ffbd379df4568a56660e54b71b58.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://cve6byu0v6rpo"
path="res://.godot/imported/2.mp3-c7cf5564039784282e2c058b85f31af4.mp3str"
[deps]
source_file="res://assets/sounds/2.mp3"
dest_files=["res://.godot/imported/2.mp3-c7cf5564039784282e2c058b85f31af4.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://bq1q527xfecgm"
path="res://.godot/imported/3.mp3-2a033077c34e7db70ad702adef172a25.mp3str"
[deps]
source_file="res://assets/sounds/3.mp3"
dest_files=["res://.godot/imported/3.mp3-2a033077c34e7db70ad702adef172a25.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://bt1gt743xeode"
path="res://.godot/imported/4.mp3-581be5890aecc9069741cd559013e363.mp3str"
[deps]
source_file="res://assets/sounds/4.mp3"
dest_files=["res://.godot/imported/4.mp3-581be5890aecc9069741cd559013e363.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://c1spyvwruvk67"
path="res://.godot/imported/5.mp3-02a6c6a13ed93beee6fb61e49fddc60a.mp3str"
[deps]
source_file="res://assets/sounds/5.mp3"
dest_files=["res://.godot/imported/5.mp3-02a6c6a13ed93beee6fb61e49fddc60a.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://37eyd54u7ygg"
path="res://.godot/imported/6.mp3-39861cd13677b3630721352de1304cde.mp3str"
[deps]
source_file="res://assets/sounds/6.mp3"
dest_files=["res://.godot/imported/6.mp3-39861cd13677b3630721352de1304cde.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://ckhrvslvgjttw"
path="res://.godot/imported/7.mp3-5bfdffca7ad3962d6463b89fca814bcc.mp3str"
[deps]
source_file="res://assets/sounds/7.mp3"
dest_files=["res://.godot/imported/7.mp3-5bfdffca7ad3962d6463b89fca814bcc.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://bqvnmvhrtqxpk"
path="res://.godot/imported/8.mp3-2bbbb8fe15d3a34e84b59a93aaccc2ce.mp3str"
[deps]
source_file="res://assets/sounds/8.mp3"
dest_files=["res://.godot/imported/8.mp3-2bbbb8fe15d3a34e84b59a93aaccc2ce.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
BIN
View File
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://dnpyhwaknblo5"
path="res://.godot/imported/9.mp3-c14e3c8e4465cc4bf59970048975e72f.mp3str"
[deps]
source_file="res://assets/sounds/9.mp3"
dest_files=["res://.godot/imported/9.mp3-c14e3c8e4465cc4bf59970048975e72f.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4
+1 -5
View File
@@ -3,15 +3,11 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://xlg0kyp0jhet"
path="res://.godot/imported/coin.png-c8309bf0f8fb5f3a7d1e96a4eb3f02ce.ctex"
metadata={
"vram_texture": false
}
valid=false
[deps]
source_file="res://assets/sprites/coin.png"
dest_files=["res://.godot/imported/coin.png-c8309bf0f8fb5f3a7d1e96a4eb3f02ce.ctex"]
[params]
+1 -5
View File
@@ -3,15 +3,11 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://coer7bk56ksye"
path="res://.godot/imported/fruit.png-3735163b668af10c2b35b52cba81b68a.ctex"
metadata={
"vram_texture": false
}
valid=false
[deps]
source_file="res://assets/sprites/fruit.png"
dest_files=["res://.godot/imported/fruit.png-3735163b668af10c2b35b52cba81b68a.ctex"]
[params]
+1 -5
View File
@@ -3,15 +3,11 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bt61g6xdrepd"
path="res://.godot/imported/knight.png-7c67c83d34932624952797d9e971a644.ctex"
metadata={
"vram_texture": false
}
valid=false
[deps]
source_file="res://assets/sprites/knight.png"
dest_files=["res://.godot/imported/knight.png-7c67c83d34932624952797d9e971a644.ctex"]
[params]
Binary file not shown.
-40
View File
@@ -1,40 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://hbkkhhlechol"
path="res://.godot/imported/phonephreak.png-e57daefd5201fd666bc927a15f0fb805.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sprites/phonephreak.png"
dest_files=["res://.godot/imported/phonephreak.png-e57daefd5201fd666bc927a15f0fb805.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
+1 -5
View File
@@ -3,15 +3,11 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://b7cc0lt1g041f"
path="res://.godot/imported/platforms.png-3869606db457611ed4193d705dc364e4.ctex"
metadata={
"vram_texture": false
}
valid=false
[deps]
source_file="res://assets/sprites/platforms.png"
dest_files=["res://.godot/imported/platforms.png-3869606db457611ed4193d705dc364e4.ctex"]
[params]
+1 -5
View File
@@ -3,15 +3,11 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bfp7d2c8w5d5j"
path="res://.godot/imported/slime_green.png-f6349164bf3a0f5189bb927b97af9c58.ctex"
metadata={
"vram_texture": false
}
valid=false
[deps]
source_file="res://assets/sprites/slime_green.png"
dest_files=["res://.godot/imported/slime_green.png-f6349164bf3a0f5189bb927b97af9c58.ctex"]
[params]
+1 -5
View File
@@ -3,15 +3,11 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://cjx7y6aru1j2v"
path="res://.godot/imported/slime_purple.png-26dc5ddef235ce6a400e78e0d532b050.ctex"
metadata={
"vram_texture": false
}
valid=false
[deps]
source_file="res://assets/sprites/slime_purple.png"
dest_files=["res://.godot/imported/slime_purple.png-26dc5ddef235ce6a400e78e0d532b050.ctex"]
[params]
+1 -5
View File
@@ -3,15 +3,11 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bdtdnto04r82s"
path="res://.godot/imported/world_tileset.png-61a32465f33c3d9d3bfecb75b6485009.ctex"
metadata={
"vram_texture": false
}
valid=false
[deps]
source_file="res://assets/sprites/world_tileset.png"
dest_files=["res://.godot/imported/world_tileset.png-61a32465f33c3d9d3bfecb75b6485009.ctex"]
[params]
-4
View File
@@ -24,10 +24,6 @@ GloblaData="*uid://chv42jjv2lka4"
window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
[filesystem]
import/blender/enabled=false
[input]
left={
-37
View File
@@ -1,37 +0,0 @@
[gd_scene format=3 uid="uid://btj7tpfvqfelu"]
[ext_resource type="Script" uid="uid://c7fhd1eqlgwr4" path="res://scripts/Phonephreak.gd" id="1_knn0u"]
[ext_resource type="FontFile" uid="uid://dkytywan8eapf" path="res://assets/fonts/PixelOperator8.ttf" id="2_bg4gc"]
[ext_resource type="Texture2D" uid="uid://hbkkhhlechol" path="res://assets/sprites/phonephreak.png" id="3_ba2os"]
[node name="Phonephreak" type="Node2D" unique_id=1830177910]
script = ExtResource("1_knn0u")
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=519900134]
[node name="Button0" type="Button" parent="." unique_id=1619377723]
offset_left = 568.0
offset_top = 494.0
offset_right = 613.0
offset_bottom = 541.0
flat = true
[node name="Label" type="Label" parent="Button0" unique_id=1004291322]
layout_mode = 0
offset_right = 44.0
offset_bottom = 51.0
theme_override_fonts/font = ExtResource("2_bg4gc")
theme_override_font_sizes/font_size = 50
text = "0"
[node name="ColorRect" type="ColorRect" parent="Button0" unique_id=582830561]
layout_mode = 0
offset_right = 43.0
offset_bottom = 47.0
mouse_filter = 2
color = Color(1, 1, 1, 0)
[node name="Phonephreak" type="Sprite2D" parent="." unique_id=1607325509]
position = Vector2(253, 328)
scale = Vector2(2.17, 2.17)
texture = ExtResource("3_ba2os")
-77
View File
@@ -1,77 +0,0 @@
extends Node
var Rounds: int = 5
var pieces: Array[int] = []
var guessed: Array[int] = []
var to_play: Array[int] = []
var buttons: Array[Button] = []
const PhoneSounds = [
preload("res://assets/sounds/0.mp3"),
preload("res://assets/sounds/1.mp3"),
preload("res://assets/sounds/2.mp3"),
preload("res://assets/sounds/3.mp3"),
preload("res://assets/sounds/4.mp3"),
preload("res://assets/sounds/5.mp3"),
preload("res://assets/sounds/6.mp3"),
preload("res://assets/sounds/7.mp3"),
preload("res://assets/sounds/8.mp3"),
preload("res://assets/sounds/9.mp3"),
]
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
var origin = Vector2(150, 225)
var offset = Vector2(135, 120)
$Button0.position.y = origin.y + 3 * offset.y + 3 * -10
$Button0.position.x = origin.x + 1 * offset.x + 2 * -5
$Button0.move_to_front()
buttons.append($Button0)
for i in range(0, 9):
var row = i % 3
var col = i / 3
var b: Button = $Button0.duplicate()
var label: Label = b.get_child(0)
label.text = "%s" %(i+1)
var rect: ColorRect = b.get_child(1)
rect.color = Color.from_rgba8(255, 255, 255, 0)
b.position.y = origin.y + col * offset.y + row * -10
b.position.x = origin.x + row * offset.x + col+1 * -5
b.pressed.connect(_on_button_pressed.bind(i+1))
buttons.append(b)
b.name = "Button%i" %(i)
add_child(b)
$Button0.pressed.connect(_on_button_pressed.bind(0))
for i in Rounds:
var item = randi() % len(PhoneSounds)
pieces.append(item)
to_play.append(item)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if guessed.size() >= pieces.size():
if guessed == pieces:
print("Got it")
else:
print("Nope")
if !$AudioStreamPlayer2D.playing and !to_play.is_empty():
actuate_button(to_play.pop_front())
for b in buttons:
var rect: ColorRect = b.get_child(1)
if rect.color.a8 != 0:
rect.color = Color.from_rgba8(255, 255, 255, rect.color.a8 - 5)
func _on_button_pressed(button: int) -> void:
guessed.append(button)
actuate_button(button)
func actuate_button(button: int) -> void:
var rect: ColorRect = buttons[button].get_child(1)
rect.color = Color.from_rgba8(255, 255, 255, 255)
$AudioStreamPlayer2D.stream = PhoneSounds[button]
$AudioStreamPlayer2D.play()
-1
View File
@@ -1 +0,0 @@
uid://c7fhd1eqlgwr4
-26
View File
@@ -1,26 +0,0 @@
extends CharacterBody2D
var SPEED = Vector2(5, 0)
const JUMP_VELOCITY = -400.0
func _ready() -> void:
$Timer.start()
func _physics_process(delta: float) -> void:
velocity += get_gravity() * delta
move_and_slide()
patrol()
func patrol():
position += SPEED
func _on_timer_timeout() -> void:
SPEED = -SPEED
$Timer.start()
-1
View File
@@ -1 +0,0 @@
uid://2jmspsmp5wpm