Deleted non-CC0 assets
Managed room7 camera pushes
This commit is contained in:
BIN
game/characters/worker/png/worker.png
Normal file
BIN
game/characters/worker/png/worker.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
34
game/characters/worker/png/worker.png.import
Normal file
34
game/characters/worker/png/worker.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/worker.png-a022373c4d07e9d1625b2ef5f79479e3.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://game/characters/worker/png/worker.png"
|
||||
dest_files=[ "res://.import/worker.png-a022373c4d07e9d1625b2ef5f79479e3.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
||||
BIN
game/characters/worker/png/worker_talk_down.png
Normal file
BIN
game/characters/worker/png/worker_talk_down.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
34
game/characters/worker/png/worker_talk_down.png.import
Normal file
34
game/characters/worker/png/worker_talk_down.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/worker_talk_down.png-9a23a485fb917ad26f1591e211007d48.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://game/characters/worker/png/worker_talk_down.png"
|
||||
dest_files=[ "res://.import/worker_talk_down.png-9a23a485fb917ad26f1591e211007d48.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
||||
BIN
game/characters/worker/png/worker_talk_down_right.png
Normal file
BIN
game/characters/worker/png/worker_talk_down_right.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
34
game/characters/worker/png/worker_talk_down_right.png.import
Normal file
34
game/characters/worker/png/worker_talk_down_right.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/worker_talk_down_right.png-c759aff731b8078f39a89eef8fcd169d.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://game/characters/worker/png/worker_talk_down_right.png"
|
||||
dest_files=[ "res://.import/worker_talk_down_right.png-c759aff731b8078f39a89eef8fcd169d.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
||||
BIN
game/characters/worker/png/worker_talk_right.png
Normal file
BIN
game/characters/worker/png/worker_talk_right.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
34
game/characters/worker/png/worker_talk_right.png.import
Normal file
34
game/characters/worker/png/worker_talk_right.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/worker_talk_right.png-59d924592e234d1dea3fa8951d482fd8.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://game/characters/worker/png/worker_talk_right.png"
|
||||
dest_files=[ "res://.import/worker_talk_right.png-59d924592e234d1dea3fa8951d482fd8.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
||||
BIN
game/characters/worker/png/worker_talk_up.png
Normal file
BIN
game/characters/worker/png/worker_talk_up.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 666 B |
34
game/characters/worker/png/worker_talk_up.png.import
Normal file
34
game/characters/worker/png/worker_talk_up.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/worker_talk_up.png-88891486953f9b6730d26429b6ae4e1d.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://game/characters/worker/png/worker_talk_up.png"
|
||||
dest_files=[ "res://.import/worker_talk_up.png-88891486953f9b6730d26429b6ae4e1d.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
||||
32
game/characters/worker/worker.tscn
Normal file
32
game/characters/worker/worker.tscn
Normal file
@@ -0,0 +1,32 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/eschotspot.gd" type="Script" id=2]
|
||||
[ext_resource path="res://game/characters/worker/png/worker.png" type="Texture" id=4]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 40.4907, 142.11 )
|
||||
|
||||
[node name="worker" type="Area2D"]
|
||||
script = ExtResource( 2 )
|
||||
global_id = "worker"
|
||||
interaction_direction = 3
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": null
|
||||
}
|
||||
|
||||
[node name="sprite" type="Sprite" parent="."]
|
||||
position = Vector2( 0.0280151, -0.221287 )
|
||||
scale = Vector2( 4, 4 )
|
||||
texture = ExtResource( 4 )
|
||||
offset = Vector2( -0.0280151, -30.9602 )
|
||||
hframes = 24
|
||||
region_rect = Rect2( 0, 0, 25, 70 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( -1.162, -120.608 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="dialog_pos" type="Position2D" parent="."]
|
||||
position = Vector2( 0.0280151, -310.487 )
|
||||
scale = Vector2( 4, 4 )
|
||||
90
game/characters/worker/worker_anims.gd
Normal file
90
game/characters/worker/worker_anims.gd
Normal file
@@ -0,0 +1,90 @@
|
||||
#const dir_angles = [
|
||||
# 0, # 0 NORTH FACE CAMERA
|
||||
# 45, # 1 NORTHEAST
|
||||
# 90, # 2 EAST
|
||||
# 135, # 3 SOUTHEAST
|
||||
# 180, # 4 SOUTH BACK TO CAMERA
|
||||
# 225, # 5 SOUTHWEST
|
||||
# 270, # 6 WEST
|
||||
# 315, # 7 NORTHWEST
|
||||
#]
|
||||
|
||||
# Angle is [from_angle, area_angle]
|
||||
# example : on a clock, [180, 45] starts exactly from 6 o'clock (180°)
|
||||
# and stops between 7 o'clock and 8 o'clock (45° from 6 o'clock)
|
||||
const dir_angles = [
|
||||
[340, 40], # 0 UP
|
||||
[20, 50], # 1 RIGHT UP
|
||||
[70, 40], # 2 RIGHT
|
||||
[110, 50], # 3 RIGHT DOWN
|
||||
[160, 40], # 4 DOWN
|
||||
[200, 50], # 5 LEFT DOWN
|
||||
[250, 40], # 6 LEFT
|
||||
[290, 50] # 7 LEFT UP
|
||||
]
|
||||
|
||||
# Array of animations for each direction, from UP to RIGHT_UP clockwise
|
||||
# [animation_name, scale] : scale parameter can be set to -1 to mirror the animation
|
||||
const directions = [
|
||||
["walk_up", 1], # 0 UP
|
||||
["walk_up", 1], # 1 RIGHT UP
|
||||
["walk_right", 1], # 2 RIGHT
|
||||
["walk_down", 1], # 3 RIGHT DOWN
|
||||
["walk_down", 1], # 4 DOWN
|
||||
["walk_down", 1], # 5 LEFT DOWN
|
||||
["walk_right", -1], # 6 LEFT
|
||||
["walk_up", 1] # 7 LEFT UP
|
||||
]
|
||||
|
||||
const idles = [
|
||||
["idle_up", 1], # 0 UP
|
||||
["idle_up", 1], # 1 RIGHT UP
|
||||
["idle_right", 1], # 2 RIGHT
|
||||
["idle_down_right", 1], # 3 RIGHT DOWN
|
||||
["idle_down", 1], # 4 DOWN
|
||||
["idle_down_left", 1], # 5 LEFT DOWN
|
||||
["idle_left", 1], # 6 LEFT
|
||||
["idle_up", 1] # 7 LEFT UP
|
||||
]
|
||||
|
||||
const speaks = [
|
||||
["speak_up", 1], # 0 UP
|
||||
["speak_up", 1], # 1 RIGHT UP
|
||||
["speak_right", 1], # 2 RIGHT
|
||||
["speak_down", 1], # 3 RIGHT DOWN
|
||||
["speak_down", 1], # 4 DOWN
|
||||
["speak_down", 1], # 5 LEFT DOWN
|
||||
["speak_right", -1], # 6 LEFT
|
||||
["speak_up", 1] # 7 LEFT UP
|
||||
]
|
||||
|
||||
|
||||
#const directions = ["walk_left", -1, # 0
|
||||
# "walk_left", -1, # 1
|
||||
# "walk_back", 1, # 2
|
||||
# "walk_back", 1, # 3
|
||||
# "walk_left", 1, # 4
|
||||
# "walk_left", 1, # 5
|
||||
# "walk_front", 1, # 6
|
||||
# "walk_front", 1 # 7
|
||||
# ]
|
||||
#
|
||||
#const idles = [ "idle_front_right", 1, # 0
|
||||
# "idle_front_right", 1, # 1
|
||||
# "idle_back", 1, # 2
|
||||
# "idle_back", 1, # 3
|
||||
# "idle_front_left", 1, # 4
|
||||
# "idle_front_left", 1, # 5
|
||||
# "idle_front", 1, # 6
|
||||
# "idle_front", 1 # 7
|
||||
# ]
|
||||
#
|
||||
#const speaks = ["idle_front_left", 1, # 0
|
||||
# "idle_front_left", 1, # 1
|
||||
# "idle_back", 1, # 2
|
||||
# "idle_back", 1, # 3
|
||||
# "idle_front_right", 1, # 4
|
||||
# "idle_front_right", 1, # 5
|
||||
# "idle_front", 1, # 6
|
||||
# "idle_front", 1 # 7
|
||||
# ]
|
||||
Reference in New Issue
Block a user