forked from 2121578/gai-ca2
anzeigen hinzugefuegt
commit
e36bbd36dc
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
{"layers":[{"cels":[{"frame":0,"image":"tilemaps\\tilemap_ground.png"}],"name":"ground"},{"cels":[{"frame":0,"image":"tilemaps\\tilemap_objects.png"}],"name":"objects"},{"cels":[{"frame":0,"image":"tilemaps\\tilemap_temperature.png"}],"name":"temperature"},{"cels":[{"frame":0,"image":"tilemaps\\tilemap_player.png"}],"name":"player"}],"height":320,"filename":"tilemaps.aseprite","frames":[{"duration":0.1}],"width":320}
|
{"frames":[{"duration":0.1}],"height":320,"filename":"tilemaps.aseprite","layers":[{"name":"ground","cels":[{"frame":0,"image":"tilemaps/tilemap_ground.png"}]},{"name":"objects","cels":[{"frame":0,"image":"tilemaps/tilemap_objects.png"}]},{"name":"temperature","cels":[{"frame":0,"image":"tilemaps/tilemap_temperature.png"}]},{"name":"player","cels":[{"frame":0,"image":"tilemaps/tilemap_player.png"}]}],"width":320}
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
|
@ -7,21 +7,25 @@
|
||||||
|
|
||||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_114re"]
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_114re"]
|
||||||
texture = ExtResource("1_ukrsa")
|
texture = ExtResource("1_ukrsa")
|
||||||
0:0/0 = 0
|
|
||||||
0:0/0/custom_data_0 = true
|
|
||||||
0:0/0/custom_data_2 = 4
|
|
||||||
1:0/0 = 0
|
1:0/0 = 0
|
||||||
1:0/0/custom_data_2 = 1
|
1:0/0/custom_data_2 = 1
|
||||||
2:0/0 = 0
|
2:0/0 = 0
|
||||||
2:0/0/custom_data_2 = 1
|
2:0/0/custom_data_2 = 1
|
||||||
|
3:0/next_alternative_id = 9
|
||||||
3:0/0 = 0
|
3:0/0 = 0
|
||||||
3:0/0/custom_data_0 = true
|
3:0/0/custom_data_0 = true
|
||||||
3:0/0/custom_data_2 = 1
|
3:0/0/custom_data_2 = 1
|
||||||
0:2/0 = 0
|
3:0/8 = 8
|
||||||
1:2/0 = 0
|
1:2/0 = 0
|
||||||
|
3:2/next_alternative_id = 5
|
||||||
3:2/0 = 0
|
3:2/0 = 0
|
||||||
3:3/0 = 0
|
3:2/4 = 4
|
||||||
3:4/0 = 0
|
0:0/0 = 0
|
||||||
|
0:0/0/custom_data_0 = true
|
||||||
|
0:0/0/custom_data_2 = 4
|
||||||
|
3:1/next_alternative_id = 3
|
||||||
|
3:1/0 = 0
|
||||||
|
3:1/2 = 2
|
||||||
|
|
||||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_x77e4"]
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_x77e4"]
|
||||||
texture = ExtResource("2_15xge")
|
texture = ExtResource("2_15xge")
|
||||||
|
|
|
||||||
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_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_FIREPIT: Array[Vector2i] = [OBJECT_I_FIREPIT_OFF, OBJECT_I_FIREPIT_ON]
|
||||||
const OBJECT_COLLECTION_BOAT_PARTS: Array[Vector2i] = [ # @formatter:off
|
const OBJECT_COLLECTION_BOAT_PARTS: Array[Vector2i] = [ # @formatter:off
|
||||||
OBJECT_I_BOAT_PART_GENERIC,
|
OBJECT_I_BOAT_PART_GENERIC,
|
||||||
OBJECT_I_BOAT_PART_ENGINE, OBJECT_I_BOAT_PART_FUEL, OBJECT_I_BOAT_PART_ANCHOR,
|
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_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_PADDLE, OBJECT_I_BOAT_PART_GAS_STOVE
|
||||||
] # @formatter:on
|
] # @formatter:on
|
||||||
#
|
#
|
||||||
# temperature, sid = 2
|
# 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:
|
func player_sprite_from_direction(direction: Vector2i) -> Vector2i:
|
||||||
if direction == Vector2i(0, 1):
|
if direction == Vector2i(0, 1):
|
||||||
return PLAYER_DOWN
|
return PLAYER_DOWN
|
||||||
if direction == Vector2i(0, -1):
|
if direction == Vector2i(0, -1):
|
||||||
return PLAYER_UP
|
return PLAYER_UP
|
||||||
if direction == Vector2i(-1, 0):
|
if direction == Vector2i(-1, 0):
|
||||||
return PLAYER_LEFT
|
return PLAYER_LEFT
|
||||||
if direction == Vector2i(1, 0):
|
if direction == Vector2i(1, 0):
|
||||||
return PLAYER_RIGHT
|
return PLAYER_RIGHT
|
||||||
return PLAYER_DOWN
|
return PLAYER_DOWN
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue