fix?
parent
658c5811dd
commit
e280b7dc72
|
@ -16,7 +16,6 @@ texture = ExtResource("1_ukrsa")
|
|||
3:0/0/custom_data_0 = true
|
||||
3:0/0/custom_data_2 = 1
|
||||
3:0/8 = 8
|
||||
0:2/0 = 0
|
||||
1:2/0 = 0
|
||||
3:2/next_alternative_id = 5
|
||||
3:2/0 = 0
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -46,10 +46,10 @@ const OBJECT_I_TREE_CUT: Vector2i = Vector2i(5, 0)
|
|||
const OBJECT_COLLECTION_BERRY_SOURCE: Array[Vector2i] = [OBJECT_I_FILLED_BUSH, OBJECT_I_BERRY]
|
||||
const OBJECT_COLLECTION_FIREPIT: Array[Vector2i] = [OBJECT_I_FIREPIT_OFF, OBJECT_I_FIREPIT_ON]
|
||||
const OBJECT_COLLECTION_BOAT_PARTS: Array[Vector2i] = [ # @formatter:off
|
||||
OBJECT_I_BOAT_PART_GENERIC,
|
||||
OBJECT_I_BOAT_PART_ENGINE, OBJECT_I_BOAT_PART_FUEL, OBJECT_I_BOAT_PART_ANCHOR,
|
||||
OBJECT_I_BOAT_PART_CHEST, OBJECT_I_BOAT_PART_GEARS, OBJECT_I_BOAT_PART_MEDIKIT,
|
||||
OBJECT_I_BOAT_PART_PADDLE, OBJECT_I_BOAT_PART_GAS_STOVE
|
||||
OBJECT_I_BOAT_PART_GENERIC,
|
||||
OBJECT_I_BOAT_PART_ENGINE, OBJECT_I_BOAT_PART_FUEL, OBJECT_I_BOAT_PART_ANCHOR,
|
||||
OBJECT_I_BOAT_PART_CHEST, OBJECT_I_BOAT_PART_GEARS, OBJECT_I_BOAT_PART_MEDIKIT,
|
||||
OBJECT_I_BOAT_PART_PADDLE, OBJECT_I_BOAT_PART_GAS_STOVE
|
||||
] # @formatter:on
|
||||
#
|
||||
# temperature, sid = 2
|
||||
|
@ -72,12 +72,12 @@ const PLAYER_COLLECTION: Array[Vector2i] = [PLAYER_DOWN, PLAYER_UP, PLAYER_LEFT,
|
|||
|
||||
|
||||
func player_sprite_from_direction(direction: Vector2i) -> Vector2i:
|
||||
if direction == Vector2i(0, 1):
|
||||
return PLAYER_DOWN
|
||||
if direction == Vector2i(0, -1):
|
||||
return PLAYER_UP
|
||||
if direction == Vector2i(-1, 0):
|
||||
return PLAYER_LEFT
|
||||
if direction == Vector2i(1, 0):
|
||||
return PLAYER_RIGHT
|
||||
return PLAYER_DOWN
|
||||
if direction == Vector2i(0, 1):
|
||||
return PLAYER_DOWN
|
||||
if direction == Vector2i(0, -1):
|
||||
return PLAYER_UP
|
||||
if direction == Vector2i(-1, 0):
|
||||
return PLAYER_LEFT
|
||||
if direction == Vector2i(1, 0):
|
||||
return PLAYER_RIGHT
|
||||
return PLAYER_DOWN
|
||||
|
|
Loading…
Reference in New Issue