init commit

This commit is contained in:
2025-04-26 10:41:46 -05:00
commit 8a1166fc19
94 changed files with 4374 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dysny58qsa0wo"
path="res://.godot/imported/player.aseprite-8d5db18b9e3dc11772829f1e5211ef56.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/player/player.aseprite"
dest_files=["res://.godot/imported/player.aseprite-8d5db18b9e3dc11772829f1e5211ef56.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

17
entities/player/player.gd Normal file
View File

@@ -0,0 +1,17 @@
extends CharacterBody2D
const SPEED = 300.0
func _physics_process(delta: float) -> void:
# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.
var direction := Input.get_vector("ui_left", "ui_right","ui_up", "ui_down")
if direction:
velocity = direction * SPEED
else:
velocity = lerp(velocity, Vector2.ZERO, 0.75)
move_and_slide()

View File

@@ -0,0 +1 @@
uid://boxbqdc21wrbr

View File

@@ -0,0 +1,17 @@
[gd_scene load_steps=4 format=3 uid="uid://cprggjrluc751"]
[ext_resource type="Script" uid="uid://boxbqdc21wrbr" path="res://entities/player/player.gd" id="1_symyc"]
[ext_resource type="Texture2D" uid="uid://dysny58qsa0wo" path="res://entities/player/player.aseprite" id="2_abrql"]
[sub_resource type="CircleShape2D" id="CircleShape2D_sfv1e"]
radius = 16.0
[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_symyc")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_sfv1e")
[node name="Sprite2D" type="Sprite2D" parent="."]
self_modulate = Color(0.223529, 1, 1, 1)
texture = ExtResource("2_abrql")