New layout for player/character
This commit is contained in:
parent
fdd3402377
commit
d124fa594b
17 changed files with 367 additions and 1100 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
@ -6,3 +6,4 @@
|
||||||
*.material filter=lfs diff=lfs merge=lfs -text
|
*.material filter=lfs diff=lfs merge=lfs -text
|
||||||
*.anim filter=lfs diff=lfs merge=lfs -text
|
*.anim filter=lfs diff=lfs merge=lfs -text
|
||||||
*.mesh filter=lfs diff=lfs merge=lfs -text
|
*.mesh filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.psd filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
18
player.gd
18
player.gd
|
@ -8,26 +8,20 @@ const SPEED = 500.0
|
||||||
func _physics_process(delta):
|
func _physics_process(delta):
|
||||||
|
|
||||||
|
|
||||||
|
#region Movement
|
||||||
# Get the input direction and handle the movement/deceleration.
|
# Get the input direction and handle the movement/deceleration.
|
||||||
# As good practice, you should replace UI actions with custom gameplay actions.
|
# As good practice, you should replace UI actions with custom gameplay actions.
|
||||||
var directionX = Input.get_axis("ui_left", "ui_right")
|
var directionX = Input.get_axis("move_left", "move_right")
|
||||||
var directionY = Input.get_axis("ui_up", "ui_down")
|
var directionY = Input.get_axis("move_up", "move_down")
|
||||||
|
|
||||||
if directionX :
|
if directionX :
|
||||||
velocity.x = directionX * SPEED
|
velocity.x = directionX * SPEED
|
||||||
else:
|
else:
|
||||||
velocity.x = move_toward(velocity.x, 0, SPEED)
|
velocity.x = move_toward(velocity.x, 0, SPEED)
|
||||||
|
|
||||||
|
|
||||||
if directionY:
|
if directionY:
|
||||||
velocity.y = directionY * SPEED
|
velocity.y = directionY * SPEED
|
||||||
else:
|
else:
|
||||||
velocity.y = move_toward(velocity.y, 0, SPEED)
|
velocity.y = move_toward(velocity.y, 0, SPEED)
|
||||||
|
#endregion
|
||||||
#if velocity.x > 0:
|
|
||||||
#$AnimationPlayer.play("player_WalkRight")
|
|
||||||
#if velocity.x < 0 :
|
|
||||||
#$AnimationPlayer.play("player_WalkLeft")
|
|
||||||
#if (velocity.x == 0 and velocity.y == 0):
|
|
||||||
#$AnimationPlayer.play("idle")
|
|
||||||
|
|
||||||
move_and_slide()
|
move_and_slide()
|
||||||
|
|
1220
player.tscn
1220
player.tscn
File diff suppressed because it is too large
Load diff
BIN
player/archer.png
(Stored with Git LFS)
Normal file
BIN
player/archer.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
player/archer.png.import
Normal file
34
player/archer.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dc0ryln54y2hw"
|
||||||
|
path="res://.godot/imported/archer.png-4a4554f7c1f05b30b963279b0f0fd63b.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://player/archer.png"
|
||||||
|
dest_files=["res://.godot/imported/archer.png-4a4554f7c1f05b30b963279b0f0fd63b.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
|
6
player/currentCloth.tres
Normal file
6
player/currentCloth.tres
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[gd_resource type="CanvasTexture" load_steps=2 format=3 uid="uid://5pmqr3y62guu"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dptor7en7li7e" path="res://player/hermandad-black.png" id="1_bh8p5"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
diffuse_texture = ExtResource("1_bh8p5")
|
BIN
player/hermandad-beige.png
(Stored with Git LFS)
Normal file
BIN
player/hermandad-beige.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
player/hermandad-beige.png.import
Normal file
34
player/hermandad-beige.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dyc587uwlcfy2"
|
||||||
|
path="res://.godot/imported/hermandad-beige.png-67161087b415043ee4d8909c324527e2.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://player/hermandad-beige.png"
|
||||||
|
dest_files=["res://.godot/imported/hermandad-beige.png-67161087b415043ee4d8909c324527e2.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
|
BIN
player/hermandad-black.png
(Stored with Git LFS)
Normal file
BIN
player/hermandad-black.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
player/hermandad-black.png.import
Normal file
34
player/hermandad-black.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dptor7en7li7e"
|
||||||
|
path="res://.godot/imported/hermandad-black.png-f537a854f0057b54811a4ea752e2f73a.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://player/hermandad-black.png"
|
||||||
|
dest_files=["res://.godot/imported/hermandad-black.png-f537a854f0057b54811a4ea752e2f73a.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
|
BIN
player/hermandad-brown.png
(Stored with Git LFS)
Normal file
BIN
player/hermandad-brown.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
player/hermandad-brown.png.import
Normal file
34
player/hermandad-brown.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dvpva5dpajyge"
|
||||||
|
path="res://.godot/imported/hermandad-brown.png-1c96d58b1942229876ff9d7f0d8434f3.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://player/hermandad-brown.png"
|
||||||
|
dest_files=["res://.godot/imported/hermandad-brown.png-1c96d58b1942229876ff9d7f0d8434f3.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
|
BIN
player/player-layout.jpg
Normal file
BIN
player/player-layout.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
34
player/player-layout.jpg.import
Normal file
34
player/player-layout.jpg.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://ctsllsisn5ykr"
|
||||||
|
path="res://.godot/imported/player-layout.jpg-efb2fae2dafee2fc7180977836d17ae8.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://player/player-layout.jpg"
|
||||||
|
dest_files=["res://.godot/imported/player-layout.jpg-efb2fae2dafee2fc7180977836d17ae8.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
|
BIN
player/witch.png
(Stored with Git LFS)
Normal file
BIN
player/witch.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
player/witch.png.import
Normal file
34
player/witch.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bkr5mxvjo28ae"
|
||||||
|
path="res://.godot/imported/witch.png-2c2137107dd652427d34f0c64e9e561c.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://player/witch.png"
|
||||||
|
dest_files=["res://.godot/imported/witch.png-2c2137107dd652427d34f0c64e9e561c.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
|
BIN
source/player_skins.psd
(Stored with Git LFS)
Normal file
BIN
source/player_skins.psd
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in a new issue