mirror of
https://git.kittycat.homes/zoe/codename-routes.git
synced 2024-08-15 03:18:26 +00:00
dskfjkdsf
This commit is contained in:
parent
59ddadb46a
commit
74e9d94977
9 changed files with 8 additions and 8 deletions
|
@ -1,3 +1,3 @@
|
||||||
source_md5="72b25c45d4743c578ac08e56b209be81"
|
source_md5="d864960022980c4270042a1ed80b9ac4"
|
||||||
dest_md5="73042650bec74eec84c50b98d4bafc70"
|
dest_md5="5f766eea69301dc969f05fac899cb4cb"
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.9 KiB |
|
@ -1,4 +1,8 @@
|
||||||
extends TileMap
|
extends TileMap
|
||||||
|
|
||||||
func set_tile_graphics(pos: Vector2, id: int):
|
func set_tile_graphics(pos: Vector2, id: int):
|
||||||
set_cell(pos.x,pos.y,0,false,false,false,Vector2(1,2))
|
var flip = true
|
||||||
|
set_cell(pos.x,pos.y,0,false,false,false,get_atlas_vec_for_id(id))
|
||||||
|
|
||||||
|
func get_atlas_vec_for_id(id: int) -> Vector2:
|
||||||
|
return Vector2(randi() % 4, id)
|
||||||
|
|
|
@ -9,7 +9,6 @@ position = Vector2( -2, 0 )
|
||||||
mode = 1
|
mode = 1
|
||||||
tile_set = ExtResource( 1 )
|
tile_set = ExtResource( 1 )
|
||||||
cell_size = Vector2( 32, 16 )
|
cell_size = Vector2( 32, 16 )
|
||||||
cell_tile_origin = 1
|
|
||||||
collision_layer = 0
|
collision_layer = 0
|
||||||
collision_mask = 0
|
collision_mask = 0
|
||||||
format = 1
|
format = 1
|
||||||
|
|
|
@ -11,6 +11,3 @@ func respawn_tilemaps(amount: int):
|
||||||
map.z_index = i
|
map.z_index = i
|
||||||
add_child(map)
|
add_child(map)
|
||||||
tilemaps.push_back(map)
|
tilemaps.push_back(map)
|
||||||
|
|
||||||
func is_tile_in_view(pos: Vector2):
|
|
||||||
pass
|
|
||||||
|
|
Binary file not shown.
|
@ -21,7 +21,7 @@ impl World {
|
||||||
for y in 0..self.ysize {
|
for y in 0..self.ysize {
|
||||||
for z in 0..self.zsize {
|
for z in 0..self.zsize {
|
||||||
ret.push(Vector3::new(x as f32, y as f32, z as f32));
|
ret.push(Vector3::new(x as f32, y as f32, z as f32));
|
||||||
self.tiles[x][y][z] = tiles::Tiletypes::Dirt;
|
self.tiles[x][y][z] = tiles::Tiletypes::Grass;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue