init commit
This commit is contained in:
16
entities/block/block.tscn
Normal file
16
entities/block/block.tscn
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cs3b6wqwqh4dn"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kl3cb"]
|
||||
size = Vector2(32, 32)
|
||||
|
||||
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_v713e"]
|
||||
size = Vector2(32, 32)
|
||||
|
||||
[node name="Block" type="StaticBody2D"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_kl3cb")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
self_modulate = Color(0.109804, 0.0117647, 0.0431373, 1)
|
||||
texture = SubResource("PlaceholderTexture2D_v713e")
|
||||
BIN
entities/player/player.aseprite
Normal file
BIN
entities/player/player.aseprite
Normal file
Binary file not shown.
34
entities/player/player.aseprite.import
Normal file
34
entities/player/player.aseprite.import
Normal 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
17
entities/player/player.gd
Normal 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()
|
||||
1
entities/player/player.gd.uid
Normal file
1
entities/player/player.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://boxbqdc21wrbr
|
||||
17
entities/player/player.tscn
Normal file
17
entities/player/player.tscn
Normal 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")
|
||||
BIN
entities/terrain/grass/grass.aseprite
Normal file
BIN
entities/terrain/grass/grass.aseprite
Normal file
Binary file not shown.
34
entities/terrain/grass/grass.aseprite.import
Normal file
34
entities/terrain/grass/grass.aseprite.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://134x6njync81"
|
||||
path="res://.godot/imported/grass.aseprite-9dd5d05c0ac7235409737001dca84e2c.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/terrain/grass/grass.aseprite"
|
||||
dest_files=["res://.godot/imported/grass.aseprite-9dd5d05c0ac7235409737001dca84e2c.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
|
||||
Reference in New Issue
Block a user